Interface VpnConnection.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<VpnConnection.Builder,VpnConnection>
,SdkBuilder<VpnConnection.Builder,VpnConnection>
,SdkPojo
- Enclosing class:
- VpnConnection
public static interface VpnConnection.Builder extends SdkPojo, CopyableBuilder<VpnConnection.Builder,VpnConnection>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description VpnConnection.Builder
category(String category)
The category of the VPN connection.VpnConnection.Builder
coreNetworkArn(String coreNetworkArn)
The ARN of the core network.VpnConnection.Builder
coreNetworkAttachmentArn(String coreNetworkAttachmentArn)
The ARN of the core network attachment.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.VpnConnection.Builder
gatewayAssociationState(String gatewayAssociationState)
The current state of the gateway association.VpnConnection.Builder
gatewayAssociationState(GatewayAssociationState gatewayAssociationState)
The current state of the gateway association.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(String type)
The type of VPN connection.VpnConnection.Builder
type(GatewayType 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 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 Detail
-
customerGatewayConfiguration
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
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
VpnConnection.Builder customerGatewayId(String 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
VpnConnection.Builder category(String 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
VpnConnection.Builder state(String state)
The current state of the VPN connection.
-
state
VpnConnection.Builder state(VpnState state)
The current state of the VPN connection.
-
type
VpnConnection.Builder type(String 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:
GatewayType
,GatewayType
-
type
VpnConnection.Builder type(GatewayType 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:
GatewayType
,GatewayType
-
vpnConnectionId
VpnConnection.Builder vpnConnectionId(String 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
VpnConnection.Builder vpnGatewayId(String 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
VpnConnection.Builder transitGatewayId(String 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
VpnConnection.Builder coreNetworkArn(String 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
VpnConnection.Builder coreNetworkAttachmentArn(String 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
VpnConnection.Builder gatewayAssociationState(String 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
,GatewayAssociationState
-
gatewayAssociationState
VpnConnection.Builder gatewayAssociationState(GatewayAssociationState 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
,GatewayAssociationState
-
options
VpnConnection.Builder options(VpnConnectionOptions 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
default VpnConnection.Builder options(Consumer<VpnConnectionOptions.Builder> 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:
options(VpnConnectionOptions)
-
routes
VpnConnection.Builder routes(Collection<VpnStaticRoute> 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
VpnConnection.Builder routes(VpnStaticRoute... 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
VpnConnection.Builder routes(Consumer<VpnStaticRoute.Builder>... 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 to#routes(List
.) - 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:
#routes(java.util.Collection
)
-
tags
VpnConnection.Builder tags(Collection<Tag> 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
VpnConnection.Builder tags(Tag... 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
VpnConnection.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
vgwTelemetry
VpnConnection.Builder vgwTelemetry(Collection<VgwTelemetry> 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
VpnConnection.Builder vgwTelemetry(VgwTelemetry... 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
VpnConnection.Builder vgwTelemetry(Consumer<VgwTelemetry.Builder>... 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 to#vgwTelemetry(List
.) - 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:
#vgwTelemetry(java.util.Collection
)
-
-