Interface TransitGatewayAttachment.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TransitGatewayAttachment.Builder,TransitGatewayAttachment>
,SdkBuilder<TransitGatewayAttachment.Builder,TransitGatewayAttachment>
,SdkPojo
- Enclosing class:
- TransitGatewayAttachment
public static interface TransitGatewayAttachment.Builder extends SdkPojo, CopyableBuilder<TransitGatewayAttachment.Builder,TransitGatewayAttachment>
-
-
Method Summary
-
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 Detail
-
transitGatewayAttachmentId
TransitGatewayAttachment.Builder transitGatewayAttachmentId(String 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
TransitGatewayAttachment.Builder transitGatewayId(String 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
TransitGatewayAttachment.Builder transitGatewayOwnerId(String 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
TransitGatewayAttachment.Builder resourceOwnerId(String 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
TransitGatewayAttachment.Builder resourceType(String 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:
TransitGatewayAttachmentResourceType
,TransitGatewayAttachmentResourceType
-
resourceType
TransitGatewayAttachment.Builder resourceType(TransitGatewayAttachmentResourceType 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:
TransitGatewayAttachmentResourceType
,TransitGatewayAttachmentResourceType
-
resourceId
TransitGatewayAttachment.Builder resourceId(String 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
TransitGatewayAttachment.Builder state(String 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:
TransitGatewayAttachmentState
,TransitGatewayAttachmentState
-
state
TransitGatewayAttachment.Builder state(TransitGatewayAttachmentState 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:
TransitGatewayAttachmentState
,TransitGatewayAttachmentState
-
association
TransitGatewayAttachment.Builder association(TransitGatewayAttachmentAssociation 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:
association(TransitGatewayAttachmentAssociation)
-
creationTime
TransitGatewayAttachment.Builder creationTime(Instant 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
TransitGatewayAttachment.Builder tags(Collection<Tag> 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
TransitGatewayAttachment.Builder tags(Tag... 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
TransitGatewayAttachment.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
-