Interface DescribeVpnGatewaysResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeVpnGatewaysResponse.Builder,
,DescribeVpnGatewaysResponse> Ec2Response.Builder
,SdkBuilder<DescribeVpnGatewaysResponse.Builder,
,DescribeVpnGatewaysResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeVpnGatewaysResponse
@Mutable
@NotThreadSafe
public static interface DescribeVpnGatewaysResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeVpnGatewaysResponse.Builder,DescribeVpnGatewaysResponse>
-
Method Summary
Modifier and TypeMethodDescriptionvpnGateways
(Collection<VpnGateway> vpnGateways) Information about one or more virtual private gateways.vpnGateways
(Consumer<VpnGateway.Builder>... vpnGateways) Information about one or more virtual private gateways.vpnGateways
(VpnGateway... vpnGateways) Information about one or more virtual private 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
-
vpnGateways
Information about one or more virtual private gateways.
- Parameters:
vpnGateways
- Information about one or more virtual private gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpnGateways
Information about one or more virtual private gateways.
- Parameters:
vpnGateways
- Information about one or more virtual private gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpnGateways
Information about one or more virtual private gateways.
This is a convenience method that creates an instance of theVpnGateway.Builder
avoiding the need to create one manually viaVpnGateway.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpnGateways(List<VpnGateway>)
.- Parameters:
vpnGateways
- a consumer that will call methods onVpnGateway.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-