Class ClassicLinkInstance

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

public class ClassicLinkInstance extends Object implements Serializable, Cloneable

Describes a linked EC2-Classic instance.

See Also:
  • Constructor Details

    • ClassicLinkInstance

      public ClassicLinkInstance()
  • Method Details

    • setInstanceId

      public void setInstanceId(String instanceId)

      The ID of the instance.

      Parameters:
      instanceId - The ID of the instance.
    • getInstanceId

      public String getInstanceId()

      The ID of the instance.

      Returns:
      The ID of the instance.
    • withInstanceId

      public ClassicLinkInstance withInstanceId(String instanceId)

      The ID of the instance.

      Parameters:
      instanceId - The ID of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 ClassicLinkInstance 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.
    • getGroups

      public List<GroupIdentifier> getGroups()

      A list of security groups.

      Returns:
      A list of security groups.
    • setGroups

      public void setGroups(Collection<GroupIdentifier> groups)

      A list of security groups.

      Parameters:
      groups - A list of security groups.
    • withGroups

      public ClassicLinkInstance withGroups(GroupIdentifier... groups)

      A list of security groups.

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

      Parameters:
      groups - A list of security groups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withGroups

      public ClassicLinkInstance withGroups(Collection<GroupIdentifier> groups)

      A list of security groups.

      Parameters:
      groups - A list of security groups.
      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 instance.

      Returns:
      Any tags assigned to the instance.
    • setTags

      public void setTags(Collection<Tag> tags)

      Any tags assigned to the instance.

      Parameters:
      tags - Any tags assigned to the instance.
    • withTags

      public ClassicLinkInstance withTags(Tag... tags)

      Any tags assigned to the instance.

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

      public ClassicLinkInstance withTags(Collection<Tag> tags)

      Any tags assigned to the instance.

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