Interface CreateCustomerGatewayResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateCustomerGatewayResponse.Builder,,CreateCustomerGatewayResponse> Ec2Response.Builder,SdkBuilder<CreateCustomerGatewayResponse.Builder,,CreateCustomerGatewayResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateCustomerGatewayResponse
public static interface CreateCustomerGatewayResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateCustomerGatewayResponse.Builder,CreateCustomerGatewayResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncustomerGateway(Consumer<CustomerGateway.Builder> customerGateway) Information about the customer gateway.customerGateway(CustomerGateway customerGateway) Information about the customer gateway.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
customerGateway
Information about the customer gateway.
- Parameters:
customerGateway- Information about the customer gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerGateway
default CreateCustomerGatewayResponse.Builder customerGateway(Consumer<CustomerGateway.Builder> customerGateway) Information about the customer gateway.
This is a convenience method that creates an instance of theCustomerGateway.Builderavoiding the need to create one manually viaCustomerGateway.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomerGateway(CustomerGateway).- Parameters:
customerGateway- a consumer that will call methods onCustomerGateway.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-