public static interface VpnConnection.Builder extends SdkPojo, CopyableBuilder<VpnConnection.Builder,VpnConnection>
Modifier and Type | Method and Description |
---|---|
VpnConnection.Builder |
category(String category)
The category of the VPN connection.
|
VpnConnection.Builder |
customerGatewayConfiguration(String customerGatewayConfiguration)
The configuration information for the VPN connection's customer gateway (in the native XML format).
|
VpnConnection.Builder |
customerGatewayId(String customerGatewayId)
The ID of the customer gateway at your end of the VPN connection.
|
default VpnConnection.Builder |
options(Consumer<VpnConnectionOptions.Builder> options)
The VPN connection options.
|
VpnConnection.Builder |
options(VpnConnectionOptions options)
The VPN connection options.
|
VpnConnection.Builder |
routes(Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.
|
VpnConnection.Builder |
routes(Consumer<VpnStaticRoute.Builder>... routes)
The static routes associated with the VPN connection.
|
VpnConnection.Builder |
routes(VpnStaticRoute... routes)
The static routes associated with the VPN connection.
|
VpnConnection.Builder |
state(String state)
The current state of the VPN connection.
|
VpnConnection.Builder |
state(VpnState state)
The current state of the VPN connection.
|
VpnConnection.Builder |
tags(Collection<Tag> tags)
Any tags assigned to the VPN connection.
|
VpnConnection.Builder |
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the VPN connection.
|
VpnConnection.Builder |
tags(Tag... tags)
Any tags assigned to the VPN connection.
|
VpnConnection.Builder |
transitGatewayId(String transitGatewayId)
The ID of the transit gateway associated with the VPN connection.
|
VpnConnection.Builder |
type(GatewayType type)
The type of VPN connection.
|
VpnConnection.Builder |
type(String type)
The type of VPN connection.
|
VpnConnection.Builder |
vgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
|
VpnConnection.Builder |
vgwTelemetry(Consumer<VgwTelemetry.Builder>... vgwTelemetry)
Information about the VPN tunnel.
|
VpnConnection.Builder |
vgwTelemetry(VgwTelemetry... vgwTelemetry)
Information about the VPN tunnel.
|
VpnConnection.Builder |
vpnConnectionId(String vpnConnectionId)
The ID of the VPN connection.
|
VpnConnection.Builder |
vpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN connection.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
VpnConnection.Builder customerGatewayConfiguration(String customerGatewayConfiguration)
The configuration information for the VPN connection's customer gateway (in the native XML format). This
element is always present in the CreateVpnConnection response; however, it's present in the
DescribeVpnConnections response only if the VPN connection is in the pending
or
available
state.
customerGatewayConfiguration
- The configuration information for the VPN connection's customer gateway (in the native XML format).
This element is always present in the CreateVpnConnection response; however, it's present in
the DescribeVpnConnections response only if the VPN connection is in the pending
or available
state.VpnConnection.Builder customerGatewayId(String customerGatewayId)
The ID of the customer gateway at your end of the VPN connection.
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection.VpnConnection.Builder category(String category)
The category of the VPN connection. A value of VPN
indicates an AWS VPN connection. A value of
VPN-Classic
indicates an AWS Classic VPN connection.
category
- The category of the VPN connection. A value of VPN
indicates an AWS VPN connection. A
value of VPN-Classic
indicates an AWS Classic VPN connection.VpnConnection.Builder state(String state)
The current state of the VPN connection.
VpnConnection.Builder state(VpnState state)
The current state of the VPN connection.
VpnConnection.Builder type(String type)
The type of VPN connection.
type
- The type of VPN connection.GatewayType
,
GatewayType
VpnConnection.Builder type(GatewayType type)
The type of VPN connection.
type
- The type of VPN connection.GatewayType
,
GatewayType
VpnConnection.Builder vpnConnectionId(String vpnConnectionId)
The ID of the VPN connection.
vpnConnectionId
- The ID of the VPN connection.VpnConnection.Builder vpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN connection.
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN connection.VpnConnection.Builder transitGatewayId(String transitGatewayId)
The ID of the transit gateway associated with the VPN connection.
transitGatewayId
- The ID of the transit gateway associated with the VPN connection.VpnConnection.Builder options(VpnConnectionOptions options)
The VPN connection options.
options
- The VPN connection options.default VpnConnection.Builder options(Consumer<VpnConnectionOptions.Builder> options)
The VPN connection options.
This is a convenience that creates an instance of theVpnConnectionOptions.Builder
avoiding the need
to create one manually via VpnConnectionOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to options(VpnConnectionOptions)
.options
- a consumer that will call methods on VpnConnectionOptions.Builder
options(VpnConnectionOptions)
VpnConnection.Builder routes(Collection<VpnStaticRoute> routes)
The static routes associated with the VPN connection.
routes
- The static routes associated with the VPN connection.VpnConnection.Builder routes(VpnStaticRoute... routes)
The static routes associated with the VPN connection.
routes
- The static routes associated with the VPN connection.VpnConnection.Builder routes(Consumer<VpnStaticRoute.Builder>... routes)
The static routes associated with the VPN connection.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #routes(List)
.routes
- a consumer that will call methods on List.Builder
#routes(List)
VpnConnection.Builder tags(Collection<Tag> tags)
Any tags assigned to the VPN connection.
tags
- Any tags assigned to the VPN connection.VpnConnection.Builder tags(Tag... tags)
Any tags assigned to the VPN connection.
tags
- Any tags assigned to the VPN connection.VpnConnection.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the VPN connection.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
VpnConnection.Builder vgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)
Information about the VPN tunnel.
vgwTelemetry
- Information about the VPN tunnel.VpnConnection.Builder vgwTelemetry(VgwTelemetry... vgwTelemetry)
Information about the VPN tunnel.
vgwTelemetry
- Information about the VPN tunnel.VpnConnection.Builder vgwTelemetry(Consumer<VgwTelemetry.Builder>... vgwTelemetry)
Information about the VPN tunnel.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #vgwTelemetry(List)
.vgwTelemetry
- a consumer that will call methods on List.Builder
#vgwTelemetry(List)
Copyright © 2020. All rights reserved.