Interface DescribeCustomerGatewaysResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeCustomerGatewaysResponse.Builder,
,DescribeCustomerGatewaysResponse> Ec2Response.Builder
,SdkBuilder<DescribeCustomerGatewaysResponse.Builder,
,DescribeCustomerGatewaysResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeCustomerGatewaysResponse
@Mutable
@NotThreadSafe
public static interface DescribeCustomerGatewaysResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeCustomerGatewaysResponse.Builder,DescribeCustomerGatewaysResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncustomerGateways
(Collection<CustomerGateway> customerGateways) Information about one or more customer gateways.customerGateways
(Consumer<CustomerGateway.Builder>... customerGateways) Information about one or more customer gateways.customerGateways
(CustomerGateway... customerGateways) Information about one or more customer gateways.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
customerGateways
DescribeCustomerGatewaysResponse.Builder customerGateways(Collection<CustomerGateway> customerGateways) Information about one or more customer gateways.
- Parameters:
customerGateways
- Information about one or more customer gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerGateways
Information about one or more customer gateways.
- Parameters:
customerGateways
- Information about one or more customer gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerGateways
DescribeCustomerGatewaysResponse.Builder customerGateways(Consumer<CustomerGateway.Builder>... customerGateways) Information about one or more customer gateways.
This is a convenience method that creates an instance of theCustomerGateway.Builder
avoiding the need to create one manually viaCustomerGateway.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomerGateways(List<CustomerGateway>)
.- Parameters:
customerGateways
- 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:
-