public static interface CreateVpnConnectionRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateVpnConnectionRequest.Builder,CreateVpnConnectionRequest>
build
overrideConfiguration
copy
applyMutation, build
CreateVpnConnectionRequest.Builder customerGatewayId(String customerGatewayId)
The ID of the customer gateway.
customerGatewayId
- The ID of the customer gateway.CreateVpnConnectionRequest.Builder type(String type)
The type of VPN connection (ipsec.1
).
type
- The type of VPN connection (ipsec.1
).CreateVpnConnectionRequest.Builder vpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.
vpnGatewayId
- The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a
transit gateway.CreateVpnConnectionRequest.Builder transitGatewayId(String transitGatewayId)
The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.
transitGatewayId
- The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private
gateway.CreateVpnConnectionRequest.Builder options(VpnConnectionOptionsSpecification options)
The options for the VPN connection.
options
- The options for the VPN connection.default CreateVpnConnectionRequest.Builder options(Consumer<VpnConnectionOptionsSpecification.Builder> options)
The options for the VPN connection.
This is a convenience that creates an instance of theVpnConnectionOptionsSpecification.Builder
avoiding the need to create one manually via VpnConnectionOptionsSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to options(VpnConnectionOptionsSpecification)
.options
- a consumer that will call methods on VpnConnectionOptionsSpecification.Builder
options(VpnConnectionOptionsSpecification)
CreateVpnConnectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateVpnConnectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.