Interface AwsEc2VpcPeeringConnectionDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2VpcPeeringConnectionDetails.Builder,
,AwsEc2VpcPeeringConnectionDetails> SdkBuilder<AwsEc2VpcPeeringConnectionDetails.Builder,
,AwsEc2VpcPeeringConnectionDetails> SdkPojo
- Enclosing class:
AwsEc2VpcPeeringConnectionDetails
-
Method Summary
Modifier and TypeMethodDescriptionaccepterVpcInfo
(Consumer<AwsEc2VpcPeeringConnectionVpcInfoDetails.Builder> accepterVpcInfo) Information about the accepter VPC.accepterVpcInfo
(AwsEc2VpcPeeringConnectionVpcInfoDetails accepterVpcInfo) Information about the accepter VPC.expirationTime
(String expirationTime) The time at which an unaccepted VPC peering connection will expire.requesterVpcInfo
(Consumer<AwsEc2VpcPeeringConnectionVpcInfoDetails.Builder> requesterVpcInfo) Information about the requester VPC.requesterVpcInfo
(AwsEc2VpcPeeringConnectionVpcInfoDetails requesterVpcInfo) Information about the requester VPC.The status of the VPC peering connection.The status of the VPC peering connection.vpcPeeringConnectionId
(String vpcPeeringConnectionId) The ID of the VPC peering connection.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, sdkFieldNameToField, sdkFields
-
Method Details
-
accepterVpcInfo
AwsEc2VpcPeeringConnectionDetails.Builder accepterVpcInfo(AwsEc2VpcPeeringConnectionVpcInfoDetails accepterVpcInfo) Information about the accepter VPC.
- Parameters:
accepterVpcInfo
- Information about the accepter VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accepterVpcInfo
default AwsEc2VpcPeeringConnectionDetails.Builder accepterVpcInfo(Consumer<AwsEc2VpcPeeringConnectionVpcInfoDetails.Builder> accepterVpcInfo) Information about the accepter VPC.
This is a convenience method that creates an instance of theAwsEc2VpcPeeringConnectionVpcInfoDetails.Builder
avoiding the need to create one manually viaAwsEc2VpcPeeringConnectionVpcInfoDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccepterVpcInfo(AwsEc2VpcPeeringConnectionVpcInfoDetails)
.- Parameters:
accepterVpcInfo
- a consumer that will call methods onAwsEc2VpcPeeringConnectionVpcInfoDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expirationTime
The time at which an unaccepted VPC peering connection will expire.
- Parameters:
expirationTime
- The time at which an unaccepted VPC peering connection will expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterVpcInfo
AwsEc2VpcPeeringConnectionDetails.Builder requesterVpcInfo(AwsEc2VpcPeeringConnectionVpcInfoDetails requesterVpcInfo) Information about the requester VPC.
- Parameters:
requesterVpcInfo
- Information about the requester VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterVpcInfo
default AwsEc2VpcPeeringConnectionDetails.Builder requesterVpcInfo(Consumer<AwsEc2VpcPeeringConnectionVpcInfoDetails.Builder> requesterVpcInfo) Information about the requester VPC.
This is a convenience method that creates an instance of theAwsEc2VpcPeeringConnectionVpcInfoDetails.Builder
avoiding the need to create one manually viaAwsEc2VpcPeeringConnectionVpcInfoDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequesterVpcInfo(AwsEc2VpcPeeringConnectionVpcInfoDetails)
.- Parameters:
requesterVpcInfo
- a consumer that will call methods onAwsEc2VpcPeeringConnectionVpcInfoDetails.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 AwsEc2VpcPeeringConnectionDetails.Builder status(Consumer<AwsEc2VpcPeeringConnectionStatusDetails.Builder> status) The status of the VPC peering connection.
This is a convenience method that creates an instance of theAwsEc2VpcPeeringConnectionStatusDetails.Builder
avoiding the need to create one manually viaAwsEc2VpcPeeringConnectionStatusDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(AwsEc2VpcPeeringConnectionStatusDetails)
.- Parameters:
status
- a consumer that will call methods onAwsEc2VpcPeeringConnectionStatusDetails.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.
-