@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2NetworkInterfaceSecurityGroup extends Object implements Serializable, Cloneable, StructuredPojo
A security group associated with the network interface.
| Constructor and Description |
|---|
AwsEc2NetworkInterfaceSecurityGroup() |
| Modifier and Type | Method and Description |
|---|---|
AwsEc2NetworkInterfaceSecurityGroup |
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.
|
AwsEc2NetworkInterfaceSecurityGroup |
withGroupId(String groupId)
The ID of the security group.
|
AwsEc2NetworkInterfaceSecurityGroup |
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 AwsEc2NetworkInterfaceSecurityGroup 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 AwsEc2NetworkInterfaceSecurityGroup withGroupId(String groupId)
The ID of the security group.
groupId - The ID of the security group.public String toString()
toString in class ObjectObject.toString()public AwsEc2NetworkInterfaceSecurityGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.