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