Class InternetGatewayAttachment

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

public class InternetGatewayAttachment extends Object implements Serializable, Cloneable

Describes the attachment of a VPC to an Internet gateway.

See Also:
  • Constructor Details

    • InternetGatewayAttachment

      public InternetGatewayAttachment()
  • Method Details

    • setVpcId

      public void setVpcId(String vpcId)

      The ID of the VPC.

      Parameters:
      vpcId - The ID of the VPC.
    • getVpcId

      public String getVpcId()

      The ID of the VPC.

      Returns:
      The ID of the VPC.
    • withVpcId

      public InternetGatewayAttachment withVpcId(String vpcId)

      The ID of the VPC.

      Parameters:
      vpcId - The ID of the VPC.
      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 attachment.

      Parameters:
      state - The current state of the attachment.
      See Also:
    • getState

      public String getState()

      The current state of the attachment.

      Returns:
      The current state of the attachment.
      See Also:
    • withState

      public InternetGatewayAttachment withState(String state)

      The current state of the attachment.

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

      public void setState(AttachmentStatus state)

      The current state of the attachment.

      Parameters:
      state - The current state of the attachment.
      See Also:
    • withState

      public InternetGatewayAttachment withState(AttachmentStatus state)

      The current state of the attachment.

      Parameters:
      state - The current state of the attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 InternetGatewayAttachment clone()
      Overrides:
      clone in class Object