@Beta public class IpPermission extends Object implements Comparable<IpPermission>
IpPermissions
Modifier and Type | Class and Description |
---|---|
static class |
IpPermission.Builder |
Constructor and Description |
---|
IpPermission(IpProtocol ipProtocol,
int fromPort,
int toPort,
com.google.common.collect.Multimap<String,String> tenantIdGroupNamePairs,
Iterable<String> groupIds,
Iterable<String> cidrBlocks,
Iterable<String> exclusionCidrBlocks) |
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
|
Set<String> |
getExclusionCidrBlocks()
Traffic whose source matches any of these CIDR blocks will be blocked
|
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()
@Beta public Set<String> getExclusionCidrBlocks()
protected com.google.common.base.Objects.ToStringHelper string()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.