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 class
SecurityGroup.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()
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.MoreObjects.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.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:
hashCode
in interfaceCollection<IpPermission>
- Specified by:
hashCode
in interfaceSet<IpPermission>
- Overrides:
hashCode
in classcom.google.common.collect.ForwardingSet<IpPermission>
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceCollection<IpPermission>
- Specified by:
equals
in interfaceSet<IpPermission>
- Overrides:
equals
in classcom.google.common.collect.ForwardingSet<IpPermission>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
toString
public String toString()
- Overrides:
toString
in classcom.google.common.collect.ForwardingObject
-
delegate
protected Set<IpPermission> delegate()
- Specified by:
delegate
in classcom.google.common.collect.ForwardingSet<IpPermission>
-
-