Interface DescribeVpnGatewaysResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeVpnGatewaysResponse.Builder,,DescribeVpnGatewaysResponse> Ec2Response.Builder,SdkBuilder<DescribeVpnGatewaysResponse.Builder,,DescribeVpnGatewaysResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeVpnGatewaysResponse
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
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
-
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.Builderavoiding the need to create one manually viaVpnGateway.builder().When the
Consumercompletes,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:
-