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 GroupIdentifier
clone()
boolean
equals(Object obj)
String
getGroupId()
The ID of the security group.String
getGroupName()
The name of the security group.int
hashCode()
void
setGroupId(String groupId)
The ID of the security group.void
setGroupName(String groupName)
The name of the security group.String
toString()
Returns a string representation of this object; useful for testing and debugging.GroupIdentifier
withGroupId(String groupId)
The ID of the security group.GroupIdentifier
withGroupName(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GroupIdentifier clone()
-
-