Interface TransitGatewayAttachment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TransitGatewayAttachment.Builder,
,TransitGatewayAttachment> SdkBuilder<TransitGatewayAttachment.Builder,
,TransitGatewayAttachment> SdkPojo
- Enclosing class:
TransitGatewayAttachment
-
Method Summary
Modifier and TypeMethodDescriptiondefault TransitGatewayAttachment.Builder
association
(Consumer<TransitGatewayAttachmentAssociation.Builder> association) The association.association
(TransitGatewayAttachmentAssociation association) The association.creationTime
(Instant creationTime) The creation time.resourceId
(String resourceId) The ID of the resource.resourceOwnerId
(String resourceOwnerId) The ID of the Amazon Web Services account that owns the resource.resourceType
(String resourceType) The resource type.resourceType
(TransitGatewayAttachmentResourceType resourceType) The resource type.The attachment state.The attachment state.tags
(Collection<Tag> tags) The tags for the attachment.tags
(Consumer<Tag.Builder>... tags) The tags for the attachment.The tags for the attachment.transitGatewayAttachmentId
(String transitGatewayAttachmentId) The ID of the attachment.transitGatewayId
(String transitGatewayId) The ID of the transit gateway.transitGatewayOwnerId
(String transitGatewayOwnerId) The ID of the Amazon Web Services account that owns the transit gateway.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
transitGatewayAttachmentId
The ID of the attachment.
- Parameters:
transitGatewayAttachmentId
- The ID of the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayId
The ID of the transit gateway.
- Parameters:
transitGatewayId
- The ID of the transit gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayOwnerId
The ID of the Amazon Web Services account that owns the transit gateway.
- Parameters:
transitGatewayOwnerId
- The ID of the Amazon Web Services account that owns the transit gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceOwnerId
The ID of the Amazon Web Services account that owns the resource.
- Parameters:
resourceOwnerId
- The ID of the Amazon Web Services account that owns the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The resource type. Note that the
tgw-peering
resource type has been deprecated.- Parameters:
resourceType
- The resource type. Note that thetgw-peering
resource type has been deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The resource type. Note that the
tgw-peering
resource type has been deprecated.- Parameters:
resourceType
- The resource type. Note that thetgw-peering
resource type has been deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceId
The ID of the resource.
- Parameters:
resourceId
- The ID of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The attachment state. Note that the
initiating
state has been deprecated.- Parameters:
state
- The attachment state. Note that theinitiating
state has been deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The attachment state. Note that the
initiating
state has been deprecated.- Parameters:
state
- The attachment state. Note that theinitiating
state has been deprecated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
association
The association.
- Parameters:
association
- The association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
association
default TransitGatewayAttachment.Builder association(Consumer<TransitGatewayAttachmentAssociation.Builder> association) The association.
This is a convenience method that creates an instance of theTransitGatewayAttachmentAssociation.Builder
avoiding the need to create one manually viaTransitGatewayAttachmentAssociation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassociation(TransitGatewayAttachmentAssociation)
.- Parameters:
association
- a consumer that will call methods onTransitGatewayAttachmentAssociation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creationTime
The creation time.
- Parameters:
creationTime
- The creation time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the attachment.
- Parameters:
tags
- The tags for the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the attachment.
- Parameters:
tags
- The tags for the attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the attachment.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-