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 Details

    • 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 or available 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 the pending or available 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 of VPN-Classic indicates an Amazon Web Services Classic VPN connection.

      Parameters:
      category - The category of the VPN connection. A value of VPN indicates an Amazon Web Services VPN connection. A value of VPN-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

      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

      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:
    • 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 the VpnConnectionOptions.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).

      Parameters:
      options - a consumer that will call methods on VpnConnectionOptions.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 the VpnStaticRoute.Builder avoiding the need to create one manually via VpnStaticRoute.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to routes(List<VpnStaticRoute>).

      Parameters:
      routes - a consumer that will call methods on VpnStaticRoute.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

      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

      Any tags assigned to the VPN connection.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the VgwTelemetry.Builder avoiding the need to create one manually via VgwTelemetry.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to vgwTelemetry(List<VgwTelemetry>).

      Parameters:
      vgwTelemetry - a consumer that will call methods on VgwTelemetry.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: