Interface CreateVpcPeeringConnectionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateVpcPeeringConnectionResponse.Builder,CreateVpcPeeringConnectionResponse>
,Ec2Response.Builder
,SdkBuilder<CreateVpcPeeringConnectionResponse.Builder,CreateVpcPeeringConnectionResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- CreateVpcPeeringConnectionResponse
public static interface CreateVpcPeeringConnectionResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateVpcPeeringConnectionResponse.Builder,CreateVpcPeeringConnectionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateVpcPeeringConnectionResponse.Builder
vpcPeeringConnection(Consumer<VpcPeeringConnection.Builder> vpcPeeringConnection)
Information about the VPC peering connection.CreateVpcPeeringConnectionResponse.Builder
vpcPeeringConnection(VpcPeeringConnection vpcPeeringConnection)
Information about the VPC peering connection.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
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.Builder
avoiding the need to create one manually viaVpcPeeringConnection.builder()
.When the
Consumer
completes,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:
vpcPeeringConnection(VpcPeeringConnection)
-
-