Interface AssociateCustomerGatewayResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AssociateCustomerGatewayResponse.Builder,,AssociateCustomerGatewayResponse> NetworkManagerResponse.Builder,SdkBuilder<AssociateCustomerGatewayResponse.Builder,,AssociateCustomerGatewayResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AssociateCustomerGatewayResponse
@Mutable
@NotThreadSafe
public static interface AssociateCustomerGatewayResponse.Builder
extends NetworkManagerResponse.Builder, SdkPojo, CopyableBuilder<AssociateCustomerGatewayResponse.Builder,AssociateCustomerGatewayResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncustomerGatewayAssociation(Consumer<CustomerGatewayAssociation.Builder> customerGatewayAssociation) The customer gateway association.customerGatewayAssociation(CustomerGatewayAssociation customerGatewayAssociation) The customer gateway association.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networkmanager.model.NetworkManagerResponse.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
-
customerGatewayAssociation
AssociateCustomerGatewayResponse.Builder customerGatewayAssociation(CustomerGatewayAssociation customerGatewayAssociation) The customer gateway association.
- Parameters:
customerGatewayAssociation- The customer gateway association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerGatewayAssociation
default AssociateCustomerGatewayResponse.Builder customerGatewayAssociation(Consumer<CustomerGatewayAssociation.Builder> customerGatewayAssociation) The customer gateway association.
This is a convenience method that creates an instance of theCustomerGatewayAssociation.Builderavoiding the need to create one manually viaCustomerGatewayAssociation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomerGatewayAssociation(CustomerGatewayAssociation).- Parameters:
customerGatewayAssociation- a consumer that will call methods onCustomerGatewayAssociation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-