@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EC2SecurityGroup extends Object implements Serializable, Cloneable
Describes an Amazon EC2 security group.
Constructor and Description |
---|
EC2SecurityGroup() |
Modifier and Type | Method and Description |
---|---|
EC2SecurityGroup |
clone() |
boolean |
equals(Object obj) |
String |
getEC2SecurityGroupName()
The name of the EC2 Security Group.
|
String |
getEC2SecurityGroupOwnerId()
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName field. |
String |
getStatus()
The status of the EC2 security group.
|
List<Tag> |
getTags()
The list of tags for the EC2 security group.
|
int |
hashCode() |
void |
setEC2SecurityGroupName(String eC2SecurityGroupName)
The name of the EC2 Security Group.
|
void |
setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName field. |
void |
setStatus(String status)
The status of the EC2 security group.
|
void |
setTags(Collection<Tag> tags)
The list of tags for the EC2 security group.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
EC2SecurityGroup |
withEC2SecurityGroupName(String eC2SecurityGroupName)
The name of the EC2 Security Group.
|
EC2SecurityGroup |
withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in the
EC2SecurityGroupName field. |
EC2SecurityGroup |
withStatus(String status)
The status of the EC2 security group.
|
EC2SecurityGroup |
withTags(Collection<Tag> tags)
The list of tags for the EC2 security group.
|
EC2SecurityGroup |
withTags(Tag... tags)
The list of tags for the EC2 security group.
|
public void setStatus(String status)
The status of the EC2 security group.
status
- The status of the EC2 security group.public String getStatus()
The status of the EC2 security group.
public EC2SecurityGroup withStatus(String status)
The status of the EC2 security group.
status
- The status of the EC2 security group.public void setEC2SecurityGroupName(String eC2SecurityGroupName)
The name of the EC2 Security Group.
eC2SecurityGroupName
- The name of the EC2 Security Group.public String getEC2SecurityGroupName()
The name of the EC2 Security Group.
public EC2SecurityGroup withEC2SecurityGroupName(String eC2SecurityGroupName)
The name of the EC2 Security Group.
eC2SecurityGroupName
- The name of the EC2 Security Group.public void setEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName
field.
eC2SecurityGroupOwnerId
- The AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName
field.public String getEC2SecurityGroupOwnerId()
The AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName
field.
EC2SecurityGroupName
field.public EC2SecurityGroup withEC2SecurityGroupOwnerId(String eC2SecurityGroupOwnerId)
The AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName
field.
eC2SecurityGroupOwnerId
- The AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName
field.public List<Tag> getTags()
The list of tags for the EC2 security group.
public void setTags(Collection<Tag> tags)
The list of tags for the EC2 security group.
tags
- The list of tags for the EC2 security group.public EC2SecurityGroup withTags(Tag... tags)
The list of tags for the EC2 security group.
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 list of tags for the EC2 security group.public EC2SecurityGroup withTags(Collection<Tag> tags)
The list of tags for the EC2 security group.
tags
- The list of tags for the EC2 security group.public String toString()
toString
in class Object
Object.toString()
public EC2SecurityGroup clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.