Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupIdentifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupIdentifierclone()booleanequals(Object obj)StringgetGroupId()The ID of the security group.StringgetGroupName()The name of the security group.inthashCode()voidsetGroupId(String groupId)The ID of the security group.voidsetGroupName(String groupName)The name of the security group.StringtoString()Returns a string representation of this object; useful for testing and debugging.GroupIdentifierwithGroupId(String groupId)The ID of the security group.GroupIdentifierwithGroupName(String groupName)The name of the security group.
-
-
-
Method Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GroupIdentifier clone()
-
-