Class VpcAttachment

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

public class VpcAttachment extends Object implements Serializable, Cloneable

Describes an attachment between a virtual private gateway and a VPC.

See Also:
  • Constructor Details

    • VpcAttachment

      public VpcAttachment()
  • 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 VpcAttachment 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 VpcAttachment 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 VpcAttachment 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 VpcAttachment clone()
      Overrides:
      clone in class Object