@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SecurityGroupForVpc extends Object implements Serializable, Cloneable
A security group that can be used by interfaces in the VPC.
Constructor and Description |
---|
SecurityGroupForVpc() |
Modifier and Type | Method and Description |
---|---|
SecurityGroupForVpc |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The security group's description.
|
String |
getGroupId()
The security group ID.
|
String |
getGroupName()
The security group name.
|
String |
getOwnerId()
The security group owner ID.
|
String |
getPrimaryVpcId()
The VPC ID in which the security group was created.
|
List<Tag> |
getTags()
The security group tags.
|
int |
hashCode() |
void |
setDescription(String description)
The security group's description.
|
void |
setGroupId(String groupId)
The security group ID.
|
void |
setGroupName(String groupName)
The security group name.
|
void |
setOwnerId(String ownerId)
The security group owner ID.
|
void |
setPrimaryVpcId(String primaryVpcId)
The VPC ID in which the security group was created.
|
void |
setTags(Collection<Tag> tags)
The security group tags.
|
String |
toString()
Returns a string representation of this object.
|
SecurityGroupForVpc |
withDescription(String description)
The security group's description.
|
SecurityGroupForVpc |
withGroupId(String groupId)
The security group ID.
|
SecurityGroupForVpc |
withGroupName(String groupName)
The security group name.
|
SecurityGroupForVpc |
withOwnerId(String ownerId)
The security group owner ID.
|
SecurityGroupForVpc |
withPrimaryVpcId(String primaryVpcId)
The VPC ID in which the security group was created.
|
SecurityGroupForVpc |
withTags(Collection<Tag> tags)
The security group tags.
|
SecurityGroupForVpc |
withTags(Tag... tags)
The security group tags.
|
public void setDescription(String description)
The security group's description.
description
- The security group's description.public String getDescription()
The security group's description.
public SecurityGroupForVpc withDescription(String description)
The security group's description.
description
- The security group's description.public void setGroupName(String groupName)
The security group name.
groupName
- The security group name.public String getGroupName()
The security group name.
public SecurityGroupForVpc withGroupName(String groupName)
The security group name.
groupName
- The security group name.public void setOwnerId(String ownerId)
The security group owner ID.
ownerId
- The security group owner ID.public String getOwnerId()
The security group owner ID.
public SecurityGroupForVpc withOwnerId(String ownerId)
The security group owner ID.
ownerId
- The security group owner ID.public void setGroupId(String groupId)
The security group ID.
groupId
- The security group ID.public String getGroupId()
The security group ID.
public SecurityGroupForVpc withGroupId(String groupId)
The security group ID.
groupId
- The security group ID.public void setTags(Collection<Tag> tags)
The security group tags.
tags
- The security group tags.public SecurityGroupForVpc withTags(Tag... tags)
The security group tags.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The security group tags.public SecurityGroupForVpc withTags(Collection<Tag> tags)
The security group tags.
tags
- The security group tags.public void setPrimaryVpcId(String primaryVpcId)
The VPC ID in which the security group was created.
primaryVpcId
- The VPC ID in which the security group was created.public String getPrimaryVpcId()
The VPC ID in which the security group was created.
public SecurityGroupForVpc withPrimaryVpcId(String primaryVpcId)
The VPC ID in which the security group was created.
primaryVpcId
- The VPC ID in which the security group was created.public String toString()
toString
in class Object
Object.toString()
public SecurityGroupForVpc clone()