|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.SecurityGroup
public class SecurityGroup
An Amazon EC2 security group, describing how EC2 instances in this group can receive network traffic.
Constructor Summary | |
---|---|
SecurityGroup()
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
The description of this security group. |
java.lang.String |
getGroupId()
Returns the value of the GroupId property for this object. |
java.lang.String |
getGroupName()
The name of this security group. |
java.util.List<IpPermission> |
getIpPermissions()
The permissions enabled for this security group. |
java.util.List<IpPermission> |
getIpPermissionsEgress()
Returns the value of the IpPermissionsEgress property for this object. |
java.lang.String |
getOwnerId()
The AWS Access Key ID of the owner of the security group. |
java.util.List<Tag> |
getTags()
Returns the value of the Tags property for this object. |
java.lang.String |
getVpcId()
Returns the value of the VpcId property for this object. |
void |
setDescription(java.lang.String description)
The description of this security group. |
void |
setGroupId(java.lang.String groupId)
Sets the value of the GroupId property for this object. |
void |
setGroupName(java.lang.String groupName)
The name of this security group. |
void |
setIpPermissions(java.util.Collection<IpPermission> ipPermissions)
The permissions enabled for this security group. |
void |
setIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)
Sets the value of the IpPermissionsEgress property for this object. |
void |
setOwnerId(java.lang.String ownerId)
The AWS Access Key ID of the owner of the security group. |
void |
setTags(java.util.Collection<Tag> tags)
Sets the value of the Tags property for this object. |
void |
setVpcId(java.lang.String vpcId)
Sets the value of the VpcId property for this object. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SecurityGroup |
withDescription(java.lang.String description)
The description of this security group. |
SecurityGroup |
withGroupId(java.lang.String groupId)
Sets the value of the GroupId property for this object. |
SecurityGroup |
withGroupName(java.lang.String groupName)
The name of this security group. |
SecurityGroup |
withIpPermissions(java.util.Collection<IpPermission> ipPermissions)
The permissions enabled for this security group. |
SecurityGroup |
withIpPermissions(IpPermission... ipPermissions)
The permissions enabled for this security group. |
SecurityGroup |
withIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)
Sets the value of the IpPermissionsEgress property for this object. |
SecurityGroup |
withIpPermissionsEgress(IpPermission... ipPermissionsEgress)
Sets the value of the IpPermissionsEgress property for this object. |
SecurityGroup |
withOwnerId(java.lang.String ownerId)
The AWS Access Key ID of the owner of the security group. |
SecurityGroup |
withTags(java.util.Collection<Tag> tags)
Sets the value of the Tags property for this object. |
SecurityGroup |
withTags(Tag... tags)
Sets the value of the Tags property for this object. |
SecurityGroup |
withVpcId(java.lang.String vpcId)
Sets the value of the VpcId property for this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SecurityGroup()
Method Detail |
---|
public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId
- The AWS Access Key ID of the owner of the security group.public SecurityGroup withOwnerId(java.lang.String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId
- The AWS Access Key ID of the owner of the security group.
public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName
- The name of this security group.public SecurityGroup withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- The name of this security group.
public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId
- The new value for the GroupId property for this object.public SecurityGroup withGroupId(java.lang.String groupId)
Returns a reference to this object so that method calls can be chained together.
groupId
- The new value for the GroupId property for this object.
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description of this security group.public SecurityGroup withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description of this security group.
public java.util.List<IpPermission> getIpPermissions()
public void setIpPermissions(java.util.Collection<IpPermission> ipPermissions)
ipPermissions
- The permissions enabled for this security group.public SecurityGroup withIpPermissions(IpPermission... ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
- The permissions enabled for this security group.
public SecurityGroup withIpPermissions(java.util.Collection<IpPermission> ipPermissions)
Returns a reference to this object so that method calls can be chained together.
ipPermissions
- The permissions enabled for this security group.
public java.util.List<IpPermission> getIpPermissionsEgress()
public void setIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)
ipPermissionsEgress
- The new value for the IpPermissionsEgress property for this object.public SecurityGroup withIpPermissionsEgress(IpPermission... ipPermissionsEgress)
Returns a reference to this object so that method calls can be chained together.
ipPermissionsEgress
- The new value for the IpPermissionsEgress property for this object.
public SecurityGroup withIpPermissionsEgress(java.util.Collection<IpPermission> ipPermissionsEgress)
Returns a reference to this object so that method calls can be chained together.
ipPermissionsEgress
- The new value for the IpPermissionsEgress property for this object.
public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- The new value for the VpcId property for this object.public SecurityGroup withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The new value for the VpcId property for this object.
public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags
- The new value for the Tags property for this object.public SecurityGroup withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- The new value for the Tags property for this object.
public SecurityGroup withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- The new value for the Tags property for this object.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |