Class GroupIdentifier

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

public class GroupIdentifier extends Object implements Serializable, Cloneable

Describes a security group.

See Also:
  • Constructor Details

    • GroupIdentifier

      public GroupIdentifier()
  • Method Details

    • setGroupName

      public void setGroupName(String groupName)

      The name of the security group.

      Parameters:
      groupName - The name of the security group.
    • getGroupName

      public String getGroupName()

      The name of the security group.

      Returns:
      The name of the security group.
    • withGroupName

      public GroupIdentifier withGroupName(String groupName)

      The name of the security group.

      Parameters:
      groupName - The name of the security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setGroupId

      public void setGroupId(String groupId)

      The ID of the security group.

      Parameters:
      groupId - The ID of the security group.
    • getGroupId

      public String getGroupId()

      The ID of the security group.

      Returns:
      The ID of the security group.
    • withGroupId

      public GroupIdentifier withGroupId(String groupId)

      The ID of the security group.

      Parameters:
      groupId - The ID of the security group.
      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 GroupIdentifier clone()
      Overrides:
      clone in class Object