@Beta public class IpPermission extends Object implements Comparable<IpPermission>
IpPermissions
Modifier and Type | Class and Description |
---|---|
static class |
IpPermission.Builder |
Modifier | Constructor and Description |
---|---|
protected |
IpPermission(IpProtocol ipProtocol,
int fromPort,
int toPort,
com.google.common.collect.Multimap<String,String> tenantIdGroupNamePairs,
Iterable<String> groupIds,
Iterable<String> cidrBlocks) |
Modifier and Type | Method and Description |
---|---|
static IpPermission.Builder |
builder() |
int |
compareTo(IpPermission o) |
boolean |
equals(Object o) |
Set<String> |
getCidrBlocks()
source of traffic is a cidrRange
|
int |
getFromPort()
Start of destination port range for the TCP and UDP protocols, or an ICMP type number.
|
Set<String> |
getGroupIds()
source of traffic allowed is on basis of another groupid in the same tenant
|
IpProtocol |
getIpProtocol()
destination IP protocol
|
com.google.common.collect.Multimap<String,String> |
getTenantIdGroupNamePairs()
source of traffic allowed is on basis of another group in a tenant, as opposed to by cidr
|
int |
getToPort()
End of destination port range for the TCP and UDP protocols, or an ICMP code.
|
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
String |
toString() |
public static IpPermission.Builder builder()
public int compareTo(IpPermission o)
compareTo
in interface Comparable<IpPermission>
public IpProtocol getIpProtocol()
public int getFromPort()
public int getToPort()
public com.google.common.collect.Multimap<String,String> getTenantIdGroupNamePairs()
public Set<String> getGroupIds()
protected com.google.common.base.Objects.ToStringHelper string()
Copyright © 2009-2013 jclouds. All Rights Reserved.