Package org.jclouds.ec2.domain
Class SecurityGroup
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingCollection<E>
-
- com.google.common.collect.ForwardingSet<IpPermission>
-
- org.jclouds.ec2.domain.SecurityGroup
-
- All Implemented Interfaces:
Iterable<IpPermission>,Collection<IpPermission>,Set<IpPermission>
public class SecurityGroup extends com.google.common.collect.ForwardingSet<IpPermission>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecurityGroup.Builder<T extends SecurityGroup.Builder<T>>
-
Constructor Summary
Constructors Constructor Description SecurityGroup(String region, String id, String name, String ownerId, String description, Iterable<IpPermission> ipPermissions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SecurityGroup.Builder<?>builder()protected Set<IpPermission>delegate()booleanequals(Object obj)StringgetDescription()Description of the security group.StringgetId()id of the security group.StringgetName()Name of the security group.StringgetOwnerId()AWS Access Key ID of the owner of the security group.StringgetRegion()Deprecated.inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()SecurityGroup.Builder<?>toBuilder()StringtoString()-
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.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
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.6Warning
Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.
-
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:
hashCodein interfaceCollection<IpPermission>- Specified by:
hashCodein interfaceSet<IpPermission>- Overrides:
hashCodein classcom.google.common.collect.ForwardingSet<IpPermission>
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCollection<IpPermission>- Specified by:
equalsin interfaceSet<IpPermission>- Overrides:
equalsin classcom.google.common.collect.ForwardingSet<IpPermission>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
toString
public String toString()
- Overrides:
toStringin classcom.google.common.collect.ForwardingObject
-
delegate
protected Set<IpPermission> delegate()
- Specified by:
delegatein classcom.google.common.collect.ForwardingSet<IpPermission>
-
-