@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SecurityGroup extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a security group associated with a network interface. This data type is used as one of the elements of the NetworkInterface data type.
Constructor and Description |
---|
SecurityGroup() |
Modifier and Type | Method and Description |
---|---|
SecurityGroup |
clone() |
boolean |
equals(Object obj) |
String |
getGroupId()
The ID of the security group.
|
String |
getGroupName()
The name of the security group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
SecurityGroup |
withGroupId(String groupId)
The ID of the security group.
|
SecurityGroup |
withGroupName(String groupName)
The name of the security group.
|
public void setGroupName(String groupName)
The name of the security group.
groupName
- The name of the security group.public String getGroupName()
The name of the security group.
public SecurityGroup withGroupName(String groupName)
The name of the security group.
groupName
- The name of the security group.public void setGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.public String getGroupId()
The ID of the security group.
public SecurityGroup withGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.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.