|
|||||||
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 | |
---|---|
String |
getDescription()
The description of this security group. |
String |
getGroupName()
The name of this security group. |
List<IpPermission> |
getIpPermissions()
The permissions enabled for this security group. |
String |
getOwnerId()
The AWS Access Key ID of the owner of the security group. |
void |
setDescription(String description)
The description of this security group. |
void |
setGroupName(String groupName)
The name of this security group. |
void |
setIpPermissions(Collection<IpPermission> ipPermissions)
The permissions enabled for this security group. |
void |
setOwnerId(String ownerId)
The AWS Access Key ID of the owner of the security group. |
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 |
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 |
withOwnerId(String ownerId)
The AWS Access Key ID of the owner of the security group. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, 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 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 String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |