Interface VpnConnection.Builder

    • 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 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

        VpnConnection.Builder state​(String 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:
        VpnState, VpnState
      • state

        VpnConnection.Builder state​(VpnState 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:
        VpnState, VpnState
      • 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
      • 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
      • 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.
      • 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.
      • 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 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).

        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:
        #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.