Interface CreateVpcPeeringConnectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateVpcPeeringConnectionResponse.Builder,,CreateVpcPeeringConnectionResponse> Ec2Response.Builder,SdkBuilder<CreateVpcPeeringConnectionResponse.Builder,,CreateVpcPeeringConnectionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateVpcPeeringConnectionResponse
@Mutable
@NotThreadSafe
public static interface CreateVpcPeeringConnectionResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateVpcPeeringConnectionResponse.Builder,CreateVpcPeeringConnectionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionvpcPeeringConnection(Consumer<VpcPeeringConnection.Builder> vpcPeeringConnection) Information about the VPC peering connection.vpcPeeringConnection(VpcPeeringConnection vpcPeeringConnection) Information about the VPC peering connection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
vpcPeeringConnection
CreateVpcPeeringConnectionResponse.Builder vpcPeeringConnection(VpcPeeringConnection vpcPeeringConnection) Information about the VPC peering connection.
- Parameters:
vpcPeeringConnection- Information about the VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcPeeringConnection
default CreateVpcPeeringConnectionResponse.Builder vpcPeeringConnection(Consumer<VpcPeeringConnection.Builder> vpcPeeringConnection) Information about the VPC peering connection.
This is a convenience method that creates an instance of theVpcPeeringConnection.Builderavoiding the need to create one manually viaVpcPeeringConnection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovpcPeeringConnection(VpcPeeringConnection).- Parameters:
vpcPeeringConnection- a consumer that will call methods onVpcPeeringConnection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-