com.amazonaws.services.ec2.model
Class SecurityGroup

java.lang.Object
  extended by com.amazonaws.services.ec2.model.SecurityGroup

public class SecurityGroup
extends Object

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

SecurityGroup

public SecurityGroup()
Method Detail

getOwnerId

public String getOwnerId()
The AWS Access Key ID of the owner of the security group.

Returns:
The AWS Access Key ID of the owner of the security group.

setOwnerId

public void setOwnerId(String ownerId)
The AWS Access Key ID of the owner of the security group.

Parameters:
ownerId - The AWS Access Key ID of the owner of the security group.

withOwnerId

public SecurityGroup withOwnerId(String ownerId)
The AWS Access Key ID of the owner of the security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ownerId - The AWS Access Key ID of the owner of the security group.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroupName

public String getGroupName()
The name of this security group.

Returns:
The name of this security group.

setGroupName

public void setGroupName(String groupName)
The name of this security group.

Parameters:
groupName - The name of this security group.

withGroupName

public SecurityGroup withGroupName(String groupName)
The name of this security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupName - The name of this security group.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroupId

public String getGroupId()
Returns the value of the GroupId property for this object.

Returns:
The value of the GroupId property for this object.

setGroupId

public void setGroupId(String groupId)
Sets the value of the GroupId property for this object.

Parameters:
groupId - The new value for the GroupId property for this object.

withGroupId

public SecurityGroup withGroupId(String groupId)
Sets the value of the GroupId property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupId - The new value for the GroupId property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
The description of this security group.

Returns:
The description of this security group.

setDescription

public void setDescription(String description)
The description of this security group.

Parameters:
description - The description of this security group.

withDescription

public SecurityGroup withDescription(String description)
The description of this security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - The description of this security group.
Returns:
A reference to this updated object so that method calls can be chained together.

getIpPermissions

public List<IpPermission> getIpPermissions()
The permissions enabled for this security group.

Returns:
The permissions enabled for this security group.

setIpPermissions

public void setIpPermissions(Collection<IpPermission> ipPermissions)
The permissions enabled for this security group.

Parameters:
ipPermissions - The permissions enabled for this security group.

withIpPermissions

public SecurityGroup withIpPermissions(IpPermission... ipPermissions)
The permissions enabled for this security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ipPermissions - The permissions enabled for this security group.
Returns:
A reference to this updated object so that method calls can be chained together.

withIpPermissions

public SecurityGroup withIpPermissions(Collection<IpPermission> ipPermissions)
The permissions enabled for this security group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ipPermissions - The permissions enabled for this security group.
Returns:
A reference to this updated object so that method calls can be chained together.

getIpPermissionsEgress

public List<IpPermission> getIpPermissionsEgress()
Returns the value of the IpPermissionsEgress property for this object.

Returns:
The value of the IpPermissionsEgress property for this object.

setIpPermissionsEgress

public void setIpPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
Sets the value of the IpPermissionsEgress property for this object.

Parameters:
ipPermissionsEgress - The new value for the IpPermissionsEgress property for this object.

withIpPermissionsEgress

public SecurityGroup withIpPermissionsEgress(IpPermission... ipPermissionsEgress)
Sets the value of the IpPermissionsEgress property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ipPermissionsEgress - The new value for the IpPermissionsEgress property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withIpPermissionsEgress

public SecurityGroup withIpPermissionsEgress(Collection<IpPermission> ipPermissionsEgress)
Sets the value of the IpPermissionsEgress property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ipPermissionsEgress - The new value for the IpPermissionsEgress property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcId

public String getVpcId()
Returns the value of the VpcId property for this object.

Returns:
The value of the VpcId property for this object.

setVpcId

public void setVpcId(String vpcId)
Sets the value of the VpcId property for this object.

Parameters:
vpcId - The new value for the VpcId property for this object.

withVpcId

public SecurityGroup withVpcId(String vpcId)
Sets the value of the VpcId property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcId - The new value for the VpcId property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public List<Tag> getTags()
Returns the value of the Tags property for this object.

Returns:
The value of the Tags property for this object.

setTags

public void setTags(Collection<Tag> tags)
Sets the value of the Tags property for this object.

Parameters:
tags - The new value for the Tags property for this object.

withTags

public SecurityGroup withTags(Tag... tags)
Sets the value of the Tags property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - The new value for the Tags property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public SecurityGroup withTags(Collection<Tag> tags)
Sets the value of the Tags property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - The new value for the Tags property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.