Class InternetGateway

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

public class InternetGateway extends Object implements Serializable, Cloneable

Describes an Internet gateway.

See Also:
  • Constructor Details

    • InternetGateway

      public InternetGateway()
  • Method Details

    • setInternetGatewayId

      public void setInternetGatewayId(String internetGatewayId)

      The ID of the Internet gateway.

      Parameters:
      internetGatewayId - The ID of the Internet gateway.
    • getInternetGatewayId

      public String getInternetGatewayId()

      The ID of the Internet gateway.

      Returns:
      The ID of the Internet gateway.
    • withInternetGatewayId

      public InternetGateway withInternetGatewayId(String internetGatewayId)

      The ID of the Internet gateway.

      Parameters:
      internetGatewayId - The ID of the Internet gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAttachments

      public List<InternetGatewayAttachment> getAttachments()

      Any VPCs attached to the Internet gateway.

      Returns:
      Any VPCs attached to the Internet gateway.
    • setAttachments

      public void setAttachments(Collection<InternetGatewayAttachment> attachments)

      Any VPCs attached to the Internet gateway.

      Parameters:
      attachments - Any VPCs attached to the Internet gateway.
    • withAttachments

      public InternetGateway withAttachments(InternetGatewayAttachment... attachments)

      Any VPCs attached to the Internet gateway.

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

      Parameters:
      attachments - Any VPCs attached to the Internet gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAttachments

      public InternetGateway withAttachments(Collection<InternetGatewayAttachment> attachments)

      Any VPCs attached to the Internet gateway.

      Parameters:
      attachments - Any VPCs attached to the Internet 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 Internet gateway.

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

      public void setTags(Collection<Tag> tags)

      Any tags assigned to the Internet gateway.

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

      public InternetGateway withTags(Tag... tags)

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

      public InternetGateway withTags(Collection<Tag> tags)

      Any tags assigned to the Internet gateway.

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