Interface VpcPeeringConnection.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<VpcPeeringConnection.Builder,,VpcPeeringConnection> SdkBuilder<VpcPeeringConnection.Builder,,VpcPeeringConnection> SdkPojo
- Enclosing class:
VpcPeeringConnection
-
Method Summary
Modifier and TypeMethodDescriptiondefault VpcPeeringConnection.BuilderaccepterVpcInfo(Consumer<VpcPeeringConnectionVpcInfo.Builder> accepterVpcInfo) Information about the accepter VPC.accepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo) Information about the accepter VPC.expirationTime(Instant expirationTime) The time that an unaccepted VPC peering connection will expire.default VpcPeeringConnection.BuilderrequesterVpcInfo(Consumer<VpcPeeringConnectionVpcInfo.Builder> requesterVpcInfo) Information about the requester VPC.requesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo) Information about the requester VPC.default VpcPeeringConnection.BuilderThe status of the VPC peering connection.The status of the VPC peering connection.tags(Collection<Tag> tags) Any tags assigned to the resource.tags(Consumer<Tag.Builder>... tags) Any tags assigned to the resource.Any tags assigned to the resource.vpcPeeringConnectionId(String vpcPeeringConnectionId) The ID of the VPC peering connection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.Builderavoiding the need to create one manually viaVpcPeeringConnectionVpcInfo.builder().When the
Consumercompletes,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:
-
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
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.Builderavoiding the need to create one manually viaVpcPeeringConnectionVpcInfo.builder().When the
Consumercompletes,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:
-
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.Builderavoiding the need to create one manually viaVpcPeeringConnectionStateReason.builder().When the
Consumercompletes,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:
-
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
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
Any tags assigned to the resource.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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:
-
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.
-