Interface VpcPeeringConnection.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<VpcPeeringConnection.Builder,VpcPeeringConnection>
,SdkBuilder<VpcPeeringConnection.Builder,VpcPeeringConnection>
,SdkPojo
- Enclosing class:
- VpcPeeringConnection
public static interface VpcPeeringConnection.Builder extends SdkPojo, CopyableBuilder<VpcPeeringConnection.Builder,VpcPeeringConnection>
-
-
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
-
accepterVpcInfo
VpcPeeringConnection.Builder accepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
- Parameters:
accepterVpcInfo
- Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accepterVpcInfo
default VpcPeeringConnection.Builder accepterVpcInfo(Consumer<VpcPeeringConnectionVpcInfo.Builder> accepterVpcInfo)
Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
This is a convenience method that creates an instance of theVpcPeeringConnectionVpcInfo.Builder
avoiding the need to create one manually viaVpcPeeringConnectionVpcInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccepterVpcInfo(VpcPeeringConnectionVpcInfo)
.- Parameters:
accepterVpcInfo
- a consumer that will call methods onVpcPeeringConnectionVpcInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
accepterVpcInfo(VpcPeeringConnectionVpcInfo)
-
expirationTime
VpcPeeringConnection.Builder expirationTime(Instant expirationTime)
The time that an unaccepted VPC peering connection will expire.
- Parameters:
expirationTime
- The time that an unaccepted VPC peering connection will expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterVpcInfo
VpcPeeringConnection.Builder requesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.
- Parameters:
requesterVpcInfo
- Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterVpcInfo
default VpcPeeringConnection.Builder requesterVpcInfo(Consumer<VpcPeeringConnectionVpcInfo.Builder> requesterVpcInfo)
Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.
This is a convenience method that creates an instance of theVpcPeeringConnectionVpcInfo.Builder
avoiding the need to create one manually viaVpcPeeringConnectionVpcInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequesterVpcInfo(VpcPeeringConnectionVpcInfo)
.- Parameters:
requesterVpcInfo
- a consumer that will call methods onVpcPeeringConnectionVpcInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
requesterVpcInfo(VpcPeeringConnectionVpcInfo)
-
status
VpcPeeringConnection.Builder status(VpcPeeringConnectionStateReason status)
The status of the VPC peering connection.
- Parameters:
status
- The status of the VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default VpcPeeringConnection.Builder status(Consumer<VpcPeeringConnectionStateReason.Builder> status)
The status of the VPC peering connection.
This is a convenience method that creates an instance of theVpcPeeringConnectionStateReason.Builder
avoiding the need to create one manually viaVpcPeeringConnectionStateReason.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(VpcPeeringConnectionStateReason)
.- Parameters:
status
- a consumer that will call methods onVpcPeeringConnectionStateReason.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(VpcPeeringConnectionStateReason)
-
tags
VpcPeeringConnection.Builder tags(Collection<Tag> tags)
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
VpcPeeringConnection.Builder tags(Tag... tags)
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
VpcPeeringConnection.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the resource.
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
)
-
vpcPeeringConnectionId
VpcPeeringConnection.Builder vpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
- Parameters:
vpcPeeringConnectionId
- The ID of the VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-