Class VpnGateway

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

public class VpnGateway extends Object implements Serializable, Cloneable

Describes a virtual private gateway.

See Also:
  • Constructor Details

    • VpnGateway

      public VpnGateway()
  • Method Details

    • setVpnGatewayId

      public void setVpnGatewayId(String vpnGatewayId)

      The ID of the virtual private gateway.

      Parameters:
      vpnGatewayId - The ID of the virtual private gateway.
    • getVpnGatewayId

      public String getVpnGatewayId()

      The ID of the virtual private gateway.

      Returns:
      The ID of the virtual private gateway.
    • withVpnGatewayId

      public VpnGateway withVpnGatewayId(String vpnGatewayId)

      The ID of the virtual private gateway.

      Parameters:
      vpnGatewayId - The ID of the virtual private 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 virtual private gateway.

      Parameters:
      state - The current state of the virtual private gateway.
      See Also:
    • getState

      public String getState()

      The current state of the virtual private gateway.

      Returns:
      The current state of the virtual private gateway.
      See Also:
    • withState

      public VpnGateway withState(String state)

      The current state of the virtual private gateway.

      Parameters:
      state - The current state of the virtual private gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setState

      public void setState(VpnState state)

      The current state of the virtual private gateway.

      Parameters:
      state - The current state of the virtual private gateway.
      See Also:
    • withState

      public VpnGateway withState(VpnState state)

      The current state of the virtual private gateway.

      Parameters:
      state - The current state of the virtual private gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setType

      public void setType(String type)

      The type of VPN connection the virtual private gateway supports.

      Parameters:
      type - The type of VPN connection the virtual private gateway supports.
      See Also:
    • getType

      public String getType()

      The type of VPN connection the virtual private gateway supports.

      Returns:
      The type of VPN connection the virtual private gateway supports.
      See Also:
    • withType

      public VpnGateway withType(String type)

      The type of VPN connection the virtual private gateway supports.

      Parameters:
      type - The type of VPN connection the virtual private gateway supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setType

      public void setType(GatewayType type)

      The type of VPN connection the virtual private gateway supports.

      Parameters:
      type - The type of VPN connection the virtual private gateway supports.
      See Also:
    • withType

      public VpnGateway withType(GatewayType type)

      The type of VPN connection the virtual private gateway supports.

      Parameters:
      type - The type of VPN connection the virtual private gateway supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setAvailabilityZone

      public void setAvailabilityZone(String availabilityZone)

      The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.

      Parameters:
      availabilityZone - The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
    • getAvailabilityZone

      public String getAvailabilityZone()

      The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.

      Returns:
      The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
    • withAvailabilityZone

      public VpnGateway withAvailabilityZone(String availabilityZone)

      The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.

      Parameters:
      availabilityZone - The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getVpcAttachments

      public List<VpcAttachment> getVpcAttachments()

      Any VPCs attached to the virtual private gateway.

      Returns:
      Any VPCs attached to the virtual private gateway.
    • setVpcAttachments

      public void setVpcAttachments(Collection<VpcAttachment> vpcAttachments)

      Any VPCs attached to the virtual private gateway.

      Parameters:
      vpcAttachments - Any VPCs attached to the virtual private gateway.
    • withVpcAttachments

      public VpnGateway withVpcAttachments(VpcAttachment... vpcAttachments)

      Any VPCs attached to the virtual private gateway.

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

      Parameters:
      vpcAttachments - Any VPCs attached to the virtual private gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withVpcAttachments

      public VpnGateway withVpcAttachments(Collection<VpcAttachment> vpcAttachments)

      Any VPCs attached to the virtual private gateway.

      Parameters:
      vpcAttachments - Any VPCs attached to the virtual private gateway.
      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 virtual private gateway.

      Returns:
      Any tags assigned to the virtual private gateway.
    • setTags

      public void setTags(Collection<Tag> tags)

      Any tags assigned to the virtual private gateway.

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

      public VpnGateway withTags(Tag... tags)

      Any tags assigned to the virtual private 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 virtual private gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTags

      public VpnGateway withTags(Collection<Tag> tags)

      Any tags assigned to the virtual private gateway.

      Parameters:
      tags - Any tags assigned to the virtual private 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 VpnGateway clone()
      Overrides:
      clone in class Object