Interface VpnConnection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<VpnConnection.Builder,
,VpnConnection> SdkBuilder<VpnConnection.Builder,
,VpnConnection> SdkPojo
- Enclosing class:
VpnConnection
-
Method Summary
Modifier and TypeMethodDescriptionThe category of the VPN connection.coreNetworkArn
(String coreNetworkArn) The ARN of the core network.coreNetworkAttachmentArn
(String coreNetworkAttachmentArn) The ARN of the core network attachment.customerGatewayConfiguration
(String customerGatewayConfiguration) The configuration information for the VPN connection's customer gateway (in the native XML format).customerGatewayId
(String customerGatewayId) The ID of the customer gateway at your end of the VPN connection.gatewayAssociationState
(String gatewayAssociationState) The current state of the gateway association.gatewayAssociationState
(GatewayAssociationState gatewayAssociationState) The current state of the gateway association.default VpnConnection.Builder
options
(Consumer<VpnConnectionOptions.Builder> options) The VPN connection options.options
(VpnConnectionOptions options) The VPN connection options.routes
(Collection<VpnStaticRoute> routes) The static routes associated with the VPN connection.routes
(Consumer<VpnStaticRoute.Builder>... routes) The static routes associated with the VPN connection.routes
(VpnStaticRoute... routes) The static routes associated with the VPN connection.The current state of the VPN connection.The current state of the VPN connection.tags
(Collection<Tag> tags) Any tags assigned to the VPN connection.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the VPN connection.Any tags assigned to the VPN connection.transitGatewayId
(String transitGatewayId) The ID of the transit gateway associated with the VPN connection.The type of VPN connection.type
(GatewayType type) The type of VPN connection.vgwTelemetry
(Collection<VgwTelemetry> vgwTelemetry) Information about the VPN tunnel.vgwTelemetry
(Consumer<VgwTelemetry.Builder>... vgwTelemetry) Information about the VPN tunnel.vgwTelemetry
(VgwTelemetry... vgwTelemetry) Information about the VPN tunnel.vpnConnectionId
(String vpnConnectionId) The ID of the VPN connection.vpnGatewayId
(String vpnGatewayId) The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
oravailable
state.- Parameters:
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 thepending
oravailable
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerGatewayId
The ID of the customer gateway at your end of the VPN connection.
- Parameters:
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
category
The category of the VPN connection. A value of
VPN
indicates an Amazon Web Services VPN connection. A value ofVPN-Classic
indicates an Amazon Web Services Classic VPN connection.- Parameters:
category
- The category of the VPN connection. A value ofVPN
indicates an Amazon Web Services VPN connection. A value ofVPN-Classic
indicates an Amazon Web Services Classic VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the VPN connection.
- Parameters:
state
- The current state of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The current state of the VPN connection.
- Parameters:
state
- The current state of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of VPN connection.
- Parameters:
type
- The type of VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of VPN connection.
- Parameters:
type
- The type of VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpnConnectionId
The ID of the VPN connection.
- Parameters:
vpnConnectionId
- The ID of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpnGatewayId
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
- Parameters:
vpnGatewayId
- The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayId
The ID of the transit gateway associated with the VPN connection.
- Parameters:
transitGatewayId
- The ID of the transit gateway associated with the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
coreNetworkArn
The ARN of the core network.
- Parameters:
coreNetworkArn
- The ARN of the core network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
coreNetworkAttachmentArn
The ARN of the core network attachment.
- Parameters:
coreNetworkAttachmentArn
- The ARN of the core network attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gatewayAssociationState
The current state of the gateway association.
- Parameters:
gatewayAssociationState
- The current state of the gateway association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
gatewayAssociationState
The current state of the gateway association.
- Parameters:
gatewayAssociationState
- The current state of the gateway association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
options
The VPN connection options.
- Parameters:
options
- The VPN connection options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
options
The VPN connection options.
This is a convenience method that creates an instance of theVpnConnectionOptions.Builder
avoiding the need to create one manually viaVpnConnectionOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooptions(VpnConnectionOptions)
.- Parameters:
options
- a consumer that will call methods onVpnConnectionOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
routes
The static routes associated with the VPN connection.
- Parameters:
routes
- The static routes associated with the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routes
The static routes associated with the VPN connection.
- Parameters:
routes
- The static routes associated with the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routes
The static routes associated with the VPN connection.
This is a convenience method that creates an instance of theVpnStaticRoute.Builder
avoiding the need to create one manually viaVpnStaticRoute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toroutes(List<VpnStaticRoute>)
.- Parameters:
routes
- a consumer that will call methods onVpnStaticRoute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Any tags assigned to the VPN connection.
- Parameters:
tags
- Any tags assigned to the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the VPN connection.
- Parameters:
tags
- Any tags assigned to the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the VPN connection.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vgwTelemetry
Information about the VPN tunnel.
- Parameters:
vgwTelemetry
- Information about the VPN tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vgwTelemetry
Information about the VPN tunnel.
- Parameters:
vgwTelemetry
- Information about the VPN tunnel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vgwTelemetry
Information about the VPN tunnel.
This is a convenience method that creates an instance of theVgwTelemetry.Builder
avoiding the need to create one manually viaVgwTelemetry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovgwTelemetry(List<VgwTelemetry>)
.- Parameters:
vgwTelemetry
- a consumer that will call methods onVgwTelemetry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-