@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SecurityGroup extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the security groups associated with the EC2 instance.
Constructor and Description |
---|
SecurityGroup() |
Modifier and Type | Method and Description |
---|---|
SecurityGroup |
clone() |
boolean |
equals(Object obj) |
String |
getGroupId()
The security group ID of the EC2 instance.
|
String |
getGroupName()
The security group name of the EC2 instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGroupId(String groupId)
The security group ID of the EC2 instance.
|
void |
setGroupName(String groupName)
The security group name of the EC2 instance.
|
String |
toString()
Returns a string representation of this object.
|
SecurityGroup |
withGroupId(String groupId)
The security group ID of the EC2 instance.
|
SecurityGroup |
withGroupName(String groupName)
The security group name of the EC2 instance.
|
public void setGroupId(String groupId)
The security group ID of the EC2 instance.
groupId
- The security group ID of the EC2 instance.public String getGroupId()
The security group ID of the EC2 instance.
public SecurityGroup withGroupId(String groupId)
The security group ID of the EC2 instance.
groupId
- The security group ID of the EC2 instance.public void setGroupName(String groupName)
The security group name of the EC2 instance.
groupName
- The security group name of the EC2 instance.public String getGroupName()
The security group name of the EC2 instance.
public SecurityGroup withGroupName(String groupName)
The security group name of the EC2 instance.
groupName
- The security group name of the EC2 instance.public String toString()
toString
in class Object
Object.toString()
public SecurityGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.