Class CustomerGateway

java.lang.Object
com.amazonaws.services.ec2.model.CustomerGateway
All Implemented Interfaces:
Serializable, Cloneable

public class CustomerGateway extends Object implements Serializable, Cloneable

Describes a customer gateway.

See Also:
  • Constructor Details

    • CustomerGateway

      public CustomerGateway()
  • Method Details

    • setCustomerGatewayId

      public void setCustomerGatewayId(String customerGatewayId)

      The ID of the customer gateway.

      Parameters:
      customerGatewayId - The ID of the customer gateway.
    • getCustomerGatewayId

      public String getCustomerGatewayId()

      The ID of the customer gateway.

      Returns:
      The ID of the customer gateway.
    • withCustomerGatewayId

      public CustomerGateway withCustomerGatewayId(String customerGatewayId)

      The ID of the customer gateway.

      Parameters:
      customerGatewayId - The ID of the customer gateway.
      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 customer gateway ( pending | available | deleting | deleted).

      Parameters:
      state - The current state of the customer gateway ( pending | available | deleting | deleted).
    • getState

      public String getState()

      The current state of the customer gateway ( pending | available | deleting | deleted).

      Returns:
      The current state of the customer gateway ( pending | available | deleting | deleted).
    • withState

      public CustomerGateway withState(String state)

      The current state of the customer gateway ( pending | available | deleting | deleted).

      Parameters:
      state - The current state of the customer gateway ( pending | available | deleting | deleted).
      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 the customer gateway supports ( ipsec.1).

      Parameters:
      type - The type of VPN connection the customer gateway supports ( ipsec.1).
    • getType

      public String getType()

      The type of VPN connection the customer gateway supports ( ipsec.1).

      Returns:
      The type of VPN connection the customer gateway supports ( ipsec.1).
    • withType

      public CustomerGateway withType(String type)

      The type of VPN connection the customer gateway supports ( ipsec.1).

      Parameters:
      type - The type of VPN connection the customer gateway supports ( ipsec.1).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setIpAddress

      public void setIpAddress(String ipAddress)

      The Internet-routable IP address of the customer gateway's outside interface.

      Parameters:
      ipAddress - The Internet-routable IP address of the customer gateway's outside interface.
    • getIpAddress

      public String getIpAddress()

      The Internet-routable IP address of the customer gateway's outside interface.

      Returns:
      The Internet-routable IP address of the customer gateway's outside interface.
    • withIpAddress

      public CustomerGateway withIpAddress(String ipAddress)

      The Internet-routable IP address of the customer gateway's outside interface.

      Parameters:
      ipAddress - The Internet-routable IP address of the customer gateway's outside interface.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setBgpAsn

      public void setBgpAsn(String bgpAsn)

      The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

      Parameters:
      bgpAsn - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
    • getBgpAsn

      public String getBgpAsn()

      The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

      Returns:
      The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
    • withBgpAsn

      public CustomerGateway withBgpAsn(String bgpAsn)

      The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

      Parameters:
      bgpAsn - The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
      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 customer gateway.

      Returns:
      Any tags assigned to the customer gateway.
    • setTags

      public void setTags(Collection<Tag> tags)

      Any tags assigned to the customer gateway.

      Parameters:
      tags - Any tags assigned to the customer gateway.
    • withTags

      public CustomerGateway withTags(Tag... tags)

      Any tags assigned to the customer gateway.

      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 customer gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTags

      public CustomerGateway withTags(Collection<Tag> tags)

      Any tags assigned to the customer gateway.

      Parameters:
      tags - Any tags assigned to the customer gateway.
      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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CustomerGateway clone()
      Overrides:
      clone in class Object