org.jclouds.ec2.domain
Class SecurityGroup

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingCollection<E>
          extended by com.google.common.collect.ForwardingSet<org.jclouds.net.domain.IpPermission>
              extended by org.jclouds.ec2.domain.SecurityGroup
All Implemented Interfaces:
Iterable<org.jclouds.net.domain.IpPermission>, Collection<org.jclouds.net.domain.IpPermission>, Set<org.jclouds.net.domain.IpPermission>

public class SecurityGroup
extends com.google.common.collect.ForwardingSet<org.jclouds.net.domain.IpPermission>

See Also:

Nested Class Summary
static class SecurityGroup.Builder<T extends SecurityGroup.Builder<T>>
           
 
Constructor Summary
SecurityGroup(String region, String id, String name, String ownerId, String description, Iterable<org.jclouds.net.domain.IpPermission> ipPermissions)
           
 
Method Summary
static SecurityGroup.Builder<?> builder()
           
protected  Set<org.jclouds.net.domain.IpPermission> delegate()
           
 boolean equals(Object obj)
           
 String getDescription()
          Description of the security group.
 String getId()
          id of 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()
          Deprecated. 
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 SecurityGroup.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class com.google.common.collect.ForwardingSet
standardEquals, standardHashCode, standardRemoveAll
 
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

SecurityGroup

public SecurityGroup(String region,
                     String id,
                     String name,
                     String ownerId,
                     String description,
                     Iterable<org.jclouds.net.domain.IpPermission> ipPermissions)
Method Detail

builder

public static SecurityGroup.Builder<?> builder()

toBuilder

public SecurityGroup.Builder<?> toBuilder()

getRegion

@Deprecated
public String getRegion()
Deprecated. 

To be removed in jclouds 1.6

Warning

Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.


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.


hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<org.jclouds.net.domain.IpPermission>
Specified by:
hashCode in interface Set<org.jclouds.net.domain.IpPermission>
Overrides:
hashCode in class com.google.common.collect.ForwardingSet<org.jclouds.net.domain.IpPermission>

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection<org.jclouds.net.domain.IpPermission>
Specified by:
equals in interface Set<org.jclouds.net.domain.IpPermission>
Overrides:
equals in class com.google.common.collect.ForwardingSet<org.jclouds.net.domain.IpPermission>

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class com.google.common.collect.ForwardingObject

delegate

protected Set<org.jclouds.net.domain.IpPermission> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingSet<org.jclouds.net.domain.IpPermission>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.