Interface TransitGatewayVpcAttachment.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TransitGatewayVpcAttachment.Builder,TransitGatewayVpcAttachment>
,SdkBuilder<TransitGatewayVpcAttachment.Builder,TransitGatewayVpcAttachment>
,SdkPojo
- Enclosing class:
- TransitGatewayVpcAttachment
public static interface TransitGatewayVpcAttachment.Builder extends SdkPojo, CopyableBuilder<TransitGatewayVpcAttachment.Builder,TransitGatewayVpcAttachment>
-
-
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
TransitGatewayVpcAttachment.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
TransitGatewayVpcAttachment.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.
-
vpcId
TransitGatewayVpcAttachment.Builder vpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcOwnerId
TransitGatewayVpcAttachment.Builder vpcOwnerId(String vpcOwnerId)
The ID of the Amazon Web Services account that owns the VPC.
- Parameters:
vpcOwnerId
- The ID of the Amazon Web Services account that owns the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
TransitGatewayVpcAttachment.Builder state(String state)
The state of the VPC attachment. Note that the
initiating
state has been deprecated.- Parameters:
state
- The state of the VPC attachment. 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
TransitGatewayVpcAttachment.Builder state(TransitGatewayAttachmentState state)
The state of the VPC attachment. Note that the
initiating
state has been deprecated.- Parameters:
state
- The state of the VPC attachment. 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
-
subnetIds
TransitGatewayVpcAttachment.Builder subnetIds(Collection<String> subnetIds)
The IDs of the subnets.
- Parameters:
subnetIds
- The IDs of the subnets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
TransitGatewayVpcAttachment.Builder subnetIds(String... subnetIds)
The IDs of the subnets.
- Parameters:
subnetIds
- The IDs of the subnets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
TransitGatewayVpcAttachment.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.
-
options
TransitGatewayVpcAttachment.Builder options(TransitGatewayVpcAttachmentOptions options)
The VPC attachment options.
- Parameters:
options
- The VPC attachment options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
options
default TransitGatewayVpcAttachment.Builder options(Consumer<TransitGatewayVpcAttachmentOptions.Builder> options)
The VPC attachment options.
This is a convenience method that creates an instance of theTransitGatewayVpcAttachmentOptions.Builder
avoiding the need to create one manually viaTransitGatewayVpcAttachmentOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooptions(TransitGatewayVpcAttachmentOptions)
.- Parameters:
options
- a consumer that will call methods onTransitGatewayVpcAttachmentOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
options(TransitGatewayVpcAttachmentOptions)
-
tags
TransitGatewayVpcAttachment.Builder tags(Collection<Tag> tags)
The tags for the VPC attachment.
- Parameters:
tags
- The tags for the VPC attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
TransitGatewayVpcAttachment.Builder tags(Tag... tags)
The tags for the VPC attachment.
- Parameters:
tags
- The tags for the VPC attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
TransitGatewayVpcAttachment.Builder tags(Consumer<Tag.Builder>... tags)
The tags for the VPC 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
)
-
-