Class VpnConnection

    • Constructor Detail

      • VpnConnection

        public VpnConnection()
    • Method Detail

      • setVpnConnectionId

        public void setVpnConnectionId​(String vpnConnectionId)

        The ID of the VPN connection.

        Parameters:
        vpnConnectionId - The ID of the VPN connection.
      • getVpnConnectionId

        public String getVpnConnectionId()

        The ID of the VPN connection.

        Returns:
        The ID of the VPN connection.
      • withVpnConnectionId

        public VpnConnection withVpnConnectionId​(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.
      • setState

        public void setState​(String state)

        The current state of the VPN connection.

        Parameters:
        state - The current state of the VPN connection.
        See Also:
        VpnState
      • getState

        public String getState()

        The current state of the VPN connection.

        Returns:
        The current state of the VPN connection.
        See Also:
        VpnState
      • withState

        public VpnConnection withState​(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
      • setState

        public void setState​(VpnState state)

        The current state of the VPN connection.

        Parameters:
        state - The current state of the VPN connection.
        See Also:
        VpnState
      • withState

        public VpnConnection withState​(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
      • setCustomerGatewayConfiguration

        public void setCustomerGatewayConfiguration​(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.
      • getCustomerGatewayConfiguration

        public String getCustomerGatewayConfiguration()

        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:
        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.
      • withCustomerGatewayConfiguration

        public VpnConnection withCustomerGatewayConfiguration​(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.
      • setType

        public void setType​(String type)

        The type of VPN connection.

        Parameters:
        type - The type of VPN connection.
        See Also:
        GatewayType
      • getType

        public String getType()

        The type of VPN connection.

        Returns:
        The type of VPN connection.
        See Also:
        GatewayType
      • withType

        public VpnConnection withType​(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
      • setType

        public void setType​(GatewayType type)

        The type of VPN connection.

        Parameters:
        type - The type of VPN connection.
        See Also:
        GatewayType
      • withType

        public VpnConnection withType​(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
      • setCustomerGatewayId

        public void setCustomerGatewayId​(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.
      • getCustomerGatewayId

        public String getCustomerGatewayId()

        The ID of the customer gateway at your end of the VPN connection.

        Returns:
        The ID of the customer gateway at your end of the VPN connection.
      • withCustomerGatewayId

        public VpnConnection withCustomerGatewayId​(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.
      • setVpnGatewayId

        public void setVpnGatewayId​(String vpnGatewayId)

        The ID of the virtual private gateway at the AWS side of the VPN connection.

        Parameters:
        vpnGatewayId - The ID of the virtual private gateway at the AWS side of the VPN connection.
      • getVpnGatewayId

        public String getVpnGatewayId()

        The ID of the virtual private gateway at the AWS side of the VPN connection.

        Returns:
        The ID of the virtual private gateway at the AWS side of the VPN connection.
      • withVpnGatewayId

        public VpnConnection withVpnGatewayId​(String vpnGatewayId)

        The ID of the virtual private gateway at the AWS side of the VPN connection.

        Parameters:
        vpnGatewayId - The ID of the virtual private gateway at the AWS side of the VPN connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTags

        public List<Tag> getTags()

        Any tags assigned to the VPN connection.

        Returns:
        Any tags assigned to the VPN connection.
      • setTags

        public void setTags​(Collection<Tag> tags)

        Any tags assigned to the VPN connection.

        Parameters:
        tags - Any tags assigned to the VPN connection.
      • withTags

        public VpnConnection withTags​(Tag... tags)

        Any tags assigned to the VPN connection.

        NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

        Parameters:
        tags - Any tags assigned to the VPN connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTags

        public VpnConnection withTags​(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.
      • getVgwTelemetry

        public List<VgwTelemetry> getVgwTelemetry()

        Information about the VPN tunnel.

        Returns:
        Information about the VPN tunnel.
      • setVgwTelemetry

        public void setVgwTelemetry​(Collection<VgwTelemetry> vgwTelemetry)

        Information about the VPN tunnel.

        Parameters:
        vgwTelemetry - Information about the VPN tunnel.
      • withVgwTelemetry

        public VpnConnection withVgwTelemetry​(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.
      • setOptions

        public void setOptions​(VpnConnectionOptions options)

        The VPN connection options.

        Parameters:
        options - The VPN connection options.
      • getOptions

        public VpnConnectionOptions getOptions()

        The VPN connection options.

        Returns:
        The VPN connection options.
      • withOptions

        public VpnConnection withOptions​(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.
      • getRoutes

        public List<VpnStaticRoute> getRoutes()

        The static routes associated with the VPN connection.

        Returns:
        The static routes associated with the VPN connection.
      • setRoutes

        public void setRoutes​(Collection<VpnStaticRoute> routes)

        The static routes associated with the VPN connection.

        Parameters:
        routes - The static routes associated with the VPN connection.
      • withRoutes

        public VpnConnection withRoutes​(VpnStaticRoute... routes)

        The static routes associated with the VPN connection.

        NOTE: This method appends the values to the existing list (if any). Use setRoutes(java.util.Collection) or withRoutes(java.util.Collection) if you want to override the existing values.

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

        public VpnConnection withRoutes​(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.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object