Interface TransitGatewayPeeringAttachment.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TransitGatewayPeeringAttachment.Builder,TransitGatewayPeeringAttachment>
,SdkBuilder<TransitGatewayPeeringAttachment.Builder,TransitGatewayPeeringAttachment>
,SdkPojo
- Enclosing class:
- TransitGatewayPeeringAttachment
public static interface TransitGatewayPeeringAttachment.Builder extends SdkPojo, CopyableBuilder<TransitGatewayPeeringAttachment.Builder,TransitGatewayPeeringAttachment>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TransitGatewayPeeringAttachment.Builder
accepterTgwInfo(Consumer<PeeringTgwInfo.Builder> accepterTgwInfo)
Information about the accepter transit gateway.TransitGatewayPeeringAttachment.Builder
accepterTgwInfo(PeeringTgwInfo accepterTgwInfo)
Information about the accepter transit gateway.TransitGatewayPeeringAttachment.Builder
accepterTransitGatewayAttachmentId(String accepterTransitGatewayAttachmentId)
The ID of the accepter transit gateway attachment.TransitGatewayPeeringAttachment.Builder
creationTime(Instant creationTime)
The time the transit gateway peering attachment was created.default TransitGatewayPeeringAttachment.Builder
options(Consumer<TransitGatewayPeeringAttachmentOptions.Builder> options)
Details about the transit gateway peering attachment.TransitGatewayPeeringAttachment.Builder
options(TransitGatewayPeeringAttachmentOptions options)
Details about the transit gateway peering attachment.default TransitGatewayPeeringAttachment.Builder
requesterTgwInfo(Consumer<PeeringTgwInfo.Builder> requesterTgwInfo)
Information about the requester transit gateway.TransitGatewayPeeringAttachment.Builder
requesterTgwInfo(PeeringTgwInfo requesterTgwInfo)
Information about the requester transit gateway.TransitGatewayPeeringAttachment.Builder
state(String state)
The state of the transit gateway peering attachment.TransitGatewayPeeringAttachment.Builder
state(TransitGatewayAttachmentState state)
The state of the transit gateway peering attachment.default TransitGatewayPeeringAttachment.Builder
status(Consumer<PeeringAttachmentStatus.Builder> status)
The status of the transit gateway peering attachment.TransitGatewayPeeringAttachment.Builder
status(PeeringAttachmentStatus status)
The status of the transit gateway peering attachment.TransitGatewayPeeringAttachment.Builder
tags(Collection<Tag> tags)
The tags for the transit gateway peering attachment.TransitGatewayPeeringAttachment.Builder
tags(Consumer<Tag.Builder>... tags)
The tags for the transit gateway peering attachment.TransitGatewayPeeringAttachment.Builder
tags(Tag... tags)
The tags for the transit gateway peering attachment.TransitGatewayPeeringAttachment.Builder
transitGatewayAttachmentId(String transitGatewayAttachmentId)
The ID of the transit gateway peering attachment.-
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
TransitGatewayPeeringAttachment.Builder transitGatewayAttachmentId(String transitGatewayAttachmentId)
The ID of the transit gateway peering attachment.
- Parameters:
transitGatewayAttachmentId
- The ID of the transit gateway peering attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accepterTransitGatewayAttachmentId
TransitGatewayPeeringAttachment.Builder accepterTransitGatewayAttachmentId(String accepterTransitGatewayAttachmentId)
The ID of the accepter transit gateway attachment.
- Parameters:
accepterTransitGatewayAttachmentId
- The ID of the accepter transit gateway attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterTgwInfo
TransitGatewayPeeringAttachment.Builder requesterTgwInfo(PeeringTgwInfo requesterTgwInfo)
Information about the requester transit gateway.
- Parameters:
requesterTgwInfo
- Information about the requester transit gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterTgwInfo
default TransitGatewayPeeringAttachment.Builder requesterTgwInfo(Consumer<PeeringTgwInfo.Builder> requesterTgwInfo)
Information about the requester transit gateway.
This is a convenience method that creates an instance of thePeeringTgwInfo.Builder
avoiding the need to create one manually viaPeeringTgwInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequesterTgwInfo(PeeringTgwInfo)
.- Parameters:
requesterTgwInfo
- a consumer that will call methods onPeeringTgwInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
requesterTgwInfo(PeeringTgwInfo)
-
accepterTgwInfo
TransitGatewayPeeringAttachment.Builder accepterTgwInfo(PeeringTgwInfo accepterTgwInfo)
Information about the accepter transit gateway.
- Parameters:
accepterTgwInfo
- Information about the accepter transit gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accepterTgwInfo
default TransitGatewayPeeringAttachment.Builder accepterTgwInfo(Consumer<PeeringTgwInfo.Builder> accepterTgwInfo)
Information about the accepter transit gateway.
This is a convenience method that creates an instance of thePeeringTgwInfo.Builder
avoiding the need to create one manually viaPeeringTgwInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccepterTgwInfo(PeeringTgwInfo)
.- Parameters:
accepterTgwInfo
- a consumer that will call methods onPeeringTgwInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
accepterTgwInfo(PeeringTgwInfo)
-
options
TransitGatewayPeeringAttachment.Builder options(TransitGatewayPeeringAttachmentOptions options)
Details about the transit gateway peering attachment.
- Parameters:
options
- Details about the transit gateway peering attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
options
default TransitGatewayPeeringAttachment.Builder options(Consumer<TransitGatewayPeeringAttachmentOptions.Builder> options)
Details about the transit gateway peering attachment.
This is a convenience method that creates an instance of theTransitGatewayPeeringAttachmentOptions.Builder
avoiding the need to create one manually viaTransitGatewayPeeringAttachmentOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooptions(TransitGatewayPeeringAttachmentOptions)
.- Parameters:
options
- a consumer that will call methods onTransitGatewayPeeringAttachmentOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
options(TransitGatewayPeeringAttachmentOptions)
-
status
TransitGatewayPeeringAttachment.Builder status(PeeringAttachmentStatus status)
The status of the transit gateway peering attachment.
- Parameters:
status
- The status of the transit gateway peering attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default TransitGatewayPeeringAttachment.Builder status(Consumer<PeeringAttachmentStatus.Builder> status)
The status of the transit gateway peering attachment.
This is a convenience method that creates an instance of thePeeringAttachmentStatus.Builder
avoiding the need to create one manually viaPeeringAttachmentStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(PeeringAttachmentStatus)
.- Parameters:
status
- a consumer that will call methods onPeeringAttachmentStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(PeeringAttachmentStatus)
-
state
TransitGatewayPeeringAttachment.Builder state(String state)
The state of the transit gateway peering attachment. Note that the
initiating
state has been deprecated.- Parameters:
state
- The state of the transit gateway peering 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
TransitGatewayPeeringAttachment.Builder state(TransitGatewayAttachmentState state)
The state of the transit gateway peering attachment. Note that the
initiating
state has been deprecated.- Parameters:
state
- The state of the transit gateway peering 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
-
creationTime
TransitGatewayPeeringAttachment.Builder creationTime(Instant creationTime)
The time the transit gateway peering attachment was created.
- Parameters:
creationTime
- The time the transit gateway peering attachment was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
TransitGatewayPeeringAttachment.Builder tags(Collection<Tag> tags)
The tags for the transit gateway peering attachment.
- Parameters:
tags
- The tags for the transit gateway peering attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
TransitGatewayPeeringAttachment.Builder tags(Tag... tags)
The tags for the transit gateway peering attachment.
- Parameters:
tags
- The tags for the transit gateway peering attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
TransitGatewayPeeringAttachment.Builder tags(Consumer<Tag.Builder>... tags)
The tags for the transit gateway peering 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
)
-
-