Interface VpnConnection.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<VpnConnection.Builder,VpnConnection>,SdkBuilder<VpnConnection.Builder,VpnConnection>,SdkPojo
- Enclosing class:
- VpnConnection
@Mutable @NotThreadSafe 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.Buildercategory(String category)The category of the VPN connection.VpnConnection.BuildercoreNetworkArn(String coreNetworkArn)The ARN of the core network.VpnConnection.BuildercoreNetworkAttachmentArn(String coreNetworkAttachmentArn)The ARN of the core network attachment.VpnConnection.BuildercustomerGatewayConfiguration(String customerGatewayConfiguration)The configuration information for the VPN connection's customer gateway (in the native XML format).VpnConnection.BuildercustomerGatewayId(String customerGatewayId)The ID of the customer gateway at your end of the VPN connection.VpnConnection.BuildergatewayAssociationState(String gatewayAssociationState)The current state of the gateway association.VpnConnection.BuildergatewayAssociationState(GatewayAssociationState gatewayAssociationState)The current state of the gateway association.default VpnConnection.Builderoptions(Consumer<VpnConnectionOptions.Builder> options)The VPN connection options.VpnConnection.Builderoptions(VpnConnectionOptions options)The VPN connection options.VpnConnection.BuilderpreSharedKeyArn(String preSharedKeyArn)The Amazon Resource Name (ARN) of the Secrets Manager secret storing the pre-shared key(s) for the VPN connection.VpnConnection.Builderroutes(Collection<VpnStaticRoute> routes)The static routes associated with the VPN connection.VpnConnection.Builderroutes(Consumer<VpnStaticRoute.Builder>... routes)The static routes associated with the VPN connection.VpnConnection.Builderroutes(VpnStaticRoute... routes)The static routes associated with the VPN connection.VpnConnection.Builderstate(String state)The current state of the VPN connection.VpnConnection.Builderstate(VpnState state)The current state of the VPN connection.VpnConnection.Buildertags(Collection<Tag> tags)Any tags assigned to the VPN connection.VpnConnection.Buildertags(Consumer<Tag.Builder>... tags)Any tags assigned to the VPN connection.VpnConnection.Buildertags(Tag... tags)Any tags assigned to the VPN connection.VpnConnection.BuildertransitGatewayId(String transitGatewayId)The ID of the transit gateway associated with the VPN connection.VpnConnection.Buildertype(String type)The type of VPN connection.VpnConnection.Buildertype(GatewayType type)The type of VPN connection.VpnConnection.BuildervgwTelemetry(Collection<VgwTelemetry> vgwTelemetry)Information about the VPN tunnel.VpnConnection.BuildervgwTelemetry(Consumer<VgwTelemetry.Builder>... vgwTelemetry)Information about the VPN tunnel.VpnConnection.BuildervgwTelemetry(VgwTelemetry... vgwTelemetry)Information about the VPN tunnel.VpnConnection.BuildervpnConnectionId(String vpnConnectionId)The ID of the VPN connection.VpnConnection.BuildervpnGatewayId(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
category
VpnConnection.Builder category(String category)
The category of the VPN connection. A value of
VPNindicates an Amazon Web Services VPN connection. A value ofVPN-Classicindicates an Amazon Web Services Classic VPN connection.- Parameters:
category- The category of the VPN connection. A value ofVPNindicates an Amazon Web Services VPN connection. A value ofVPN-Classicindicates an Amazon Web Services Classic 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.Builderavoiding the need to create one manually viaVpnConnectionOptions.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaVpnStaticRoute.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaVgwTelemetry.builder().When the
Consumercompletes,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)
-
preSharedKeyArn
VpnConnection.Builder preSharedKeyArn(String preSharedKeyArn)
The Amazon Resource Name (ARN) of the Secrets Manager secret storing the pre-shared key(s) for the VPN connection.
- Parameters:
preSharedKeyArn- The Amazon Resource Name (ARN) of the Secrets Manager secret storing the pre-shared key(s) for the VPN connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
-
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
pendingoravailablestate.- 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 thependingoravailablestate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
-
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.
-
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.
-
-