public class IpPermissionImpl extends Object implements IpPermission
Modifier and Type | Class and Description |
---|---|
static class |
IpPermissionImpl.Builder |
Constructor and Description |
---|
IpPermissionImpl(IpProtocol ipProtocol,
int fromPort,
int toPort,
com.google.common.collect.Multimap<String,String> userIdGroupPairs,
Iterable<String> groupIds,
Iterable<String> ipRanges) |
Modifier and Type | Method and Description |
---|---|
static IpPermissionImpl.Builder |
builder() |
int |
compareTo(IpPermission o) |
boolean |
equals(Object obj) |
int |
getFromPort()
Start of port range for the TCP and UDP protocols, or an ICMP type number.
|
Set<String> |
getGroupIds()
List of security group Ids
|
IpProtocol |
getIpProtocol()
IP protocol
|
Set<String> |
getIpRanges()
IP ranges.
|
int |
getToPort()
End of port range for the TCP and UDP protocols, or an ICMP code.
|
com.google.common.collect.Multimap<String,String> |
getUserIdGroupPairs()
List of security group and user ID pairs.
|
int |
hashCode() |
String |
toString() |
public static IpPermissionImpl.Builder builder()
public int compareTo(IpPermission o)
compareTo
in interface Comparable<IpPermission>
public int getFromPort()
getFromPort
in interface IpPermission
public int getToPort()
getToPort
in interface IpPermission
public com.google.common.collect.Multimap<String,String> getUserIdGroupPairs()
getUserIdGroupPairs
in interface IpPermission
public Set<String> getGroupIds()
getGroupIds
in interface IpPermission
public IpProtocol getIpProtocol()
getIpProtocol
in interface IpPermission
public Set<String> getIpRanges()
getIpRanges
in interface IpPermission
Copyright © 2009-2012 jclouds. All Rights Reserved.