Interface AssociateCustomerGatewayResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<AssociateCustomerGatewayResponse.Builder,
,AssociateCustomerGatewayResponse> NetworkManagerResponse.Builder
,SdkBuilder<AssociateCustomerGatewayResponse.Builder,
,AssociateCustomerGatewayResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
AssociateCustomerGatewayResponse
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
copy
Methods inherited from interface software.amazon.awssdk.services.networkmanager.model.NetworkManagerResponse.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 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.Builder
avoiding the need to create one manually viaCustomerGatewayAssociation.builder()
.When the
Consumer
completes,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:
-