@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SecurityGroup extends Object implements Serializable, Cloneable
Describes a security group
Constructor and Description |
---|
SecurityGroup() |
Modifier and Type | Method and Description |
---|---|
SecurityGroup |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description of the security group.
|
String |
getGroupId()
The ID of the security group.
|
String |
getGroupName()
The name of the security group.
|
List<IpPermission> |
getIpPermissions()
The inbound rules associated with the security group.
|
List<IpPermission> |
getIpPermissionsEgress()
[VPC only] The outbound rules associated with the security group.
|
String |
getOwnerId()
The AWS account ID of the owner of the security group.
|
List<Tag> |
getTags()
Any tags assigned to the security group.
|
String |
getVpcId()
[VPC only] The ID of the VPC for the security group.
|
int |
hashCode() |
void |
setDescription(String description)
A description of the security group.
|
void |
setGroupId(String groupId)
The ID of the security group.
|
void |
setGroupName(String groupName)
The name of the security group.
|
void |
setIpPermissions(Collection<IpPermission> ipPermissions)
The inbound rules associated with the security group.
|
void |
setIpPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
|
void |
setOwnerId(String ownerId)
The AWS account ID of the owner of the security group.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the security group.
|
void |
setVpcId(String vpcId)
[VPC only] The ID of the VPC for the security group.
|
String |
toString()
Returns a string representation of this object.
|
SecurityGroup |
withDescription(String description)
A description of the security group.
|
SecurityGroup |
withGroupId(String groupId)
The ID of the security group.
|
SecurityGroup |
withGroupName(String groupName)
The name of the security group.
|
SecurityGroup |
withIpPermissions(Collection<IpPermission> ipPermissions)
The inbound rules associated with the security group.
|
SecurityGroup |
withIpPermissions(IpPermission... ipPermissions)
The inbound rules associated with the security group.
|
SecurityGroup |
withIpPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
|
SecurityGroup |
withIpPermissionsEgress(IpPermission... ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
|
SecurityGroup |
withOwnerId(String ownerId)
The AWS account ID of the owner of the security group.
|
SecurityGroup |
withTags(Collection<Tag> tags)
Any tags assigned to the security group.
|
SecurityGroup |
withTags(Tag... tags)
Any tags assigned to the security group.
|
SecurityGroup |
withVpcId(String vpcId)
[VPC only] The ID of the VPC for the security group.
|
public void setDescription(String description)
A description of the security group.
description
- A description of the security group.public String getDescription()
A description of the security group.
public SecurityGroup withDescription(String description)
A description of the security group.
description
- A description 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 List<IpPermission> getIpPermissions()
The inbound rules associated with the security group.
public void setIpPermissions(Collection<IpPermission> ipPermissions)
The inbound rules associated with the security group.
ipPermissions
- The inbound rules associated with the security group.public SecurityGroup withIpPermissions(IpPermission... ipPermissions)
The inbound rules associated with the security group.
NOTE: This method appends the values to the existing list (if any). Use
setIpPermissions(java.util.Collection)
or withIpPermissions(java.util.Collection)
if you want
to override the existing values.
ipPermissions
- The inbound rules associated with the security group.public SecurityGroup withIpPermissions(Collection<IpPermission> ipPermissions)
The inbound rules associated with the security group.
ipPermissions
- The inbound rules associated with the security group.public void setOwnerId(String ownerId)
The AWS account ID of the owner of the security group.
ownerId
- The AWS account ID of the owner of the security group.public String getOwnerId()
The AWS account ID of the owner of the security group.
public SecurityGroup withOwnerId(String ownerId)
The AWS account ID of the owner of the security group.
ownerId
- The AWS account ID of the owner 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 List<IpPermission> getIpPermissionsEgress()
[VPC only] The outbound rules associated with the security group.
public void setIpPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
ipPermissionsEgress
- [VPC only] The outbound rules associated with the security group.public SecurityGroup withIpPermissionsEgress(IpPermission... ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
NOTE: This method appends the values to the existing list (if any). Use
setIpPermissionsEgress(java.util.Collection)
or withIpPermissionsEgress(java.util.Collection)
if you want to override the existing values.
ipPermissionsEgress
- [VPC only] The outbound rules associated with the security group.public SecurityGroup withIpPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
[VPC only] The outbound rules associated with the security group.
ipPermissionsEgress
- [VPC only] The outbound rules associated with the security group.public List<Tag> getTags()
Any tags assigned to the security group.
public void setTags(Collection<Tag> tags)
Any tags assigned to the security group.
tags
- Any tags assigned to the security group.public SecurityGroup withTags(Tag... tags)
Any tags assigned to the 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
- Any tags assigned to the security group.public SecurityGroup withTags(Collection<Tag> tags)
Any tags assigned to the security group.
tags
- Any tags assigned to the security group.public void setVpcId(String vpcId)
[VPC only] The ID of the VPC for the security group.
vpcId
- [VPC only] The ID of the VPC for the security group.public String getVpcId()
[VPC only] The ID of the VPC for the security group.
public SecurityGroup withVpcId(String vpcId)
[VPC only] The ID of the VPC for the security group.
vpcId
- [VPC only] The ID of the VPC for the security group.public String toString()
toString
in class Object
Object.toString()
public SecurityGroup clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.