org.jclouds.ec2.domain
Class SecurityGroup

java.lang.Object
  extended by org.jclouds.ec2.domain.SecurityGroup
All Implemented Interfaces:
Comparable<SecurityGroup>

public class SecurityGroup
extends Object
implements Comparable<SecurityGroup>

Author:
Adrian Cole
See Also:

Constructor Summary
SecurityGroup(String region, String id, String name, String ownerId, String description, Set<IpPermissionImpl> ipPermissions)
           
 
Method Summary
 int compareTo(SecurityGroup o)
          
 boolean equals(Object obj)
           
 String getDescription()
          Description of the security group.
 String getId()
          id of the security group.
 Set<IpPermissionImpl> getIpPermissions()
          Set of IP permissions associated with the security group.
 String getName()
          Name of the security group.
 String getOwnerId()
          AWS Access Key ID of the owner of the security group.
 String getRegion()
          Security groups are not copied across Regions.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityGroup

public SecurityGroup(String region,
                     String id,
                     String name,
                     String ownerId,
                     String description,
                     Set<IpPermissionImpl> ipPermissions)
Method Detail

getRegion

public String getRegion()
Security groups are not copied across Regions. Instances within the Region cannot communicate with instances outside the Region using group-based firewall rules. Traffic from instances in another Region is seen as WAN bandwidth.


compareTo

public int compareTo(SecurityGroup o)

Specified by:
compareTo in interface Comparable<SecurityGroup>

getId

@Nullable
public String getId()
id of the security group. Not in all EC2 impls


getName

public String getName()
Name of the security group.


getOwnerId

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


getDescription

public String getDescription()
Description of the security group.


getIpPermissions

public Set<IpPermissionImpl> getIpPermissions()
Set of IP permissions associated with the security group.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.