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<org.jclouds.net.domain.IpPermission>
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:
| 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 interface java.util.Set |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
SecurityGroup
public SecurityGroup(String region,
String id,
String name,
String ownerId,
String description,
Iterable<org.jclouds.net.domain.IpPermission> ipPermissions)
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.