Package org.jclouds.net.domain
Class IpPermission
- java.lang.Object
-
- org.jclouds.net.domain.IpPermission
-
- All Implemented Interfaces:
Comparable<IpPermission>
- Direct Known Subclasses:
IpPermissions
,IpPermissions
@Beta public class IpPermission extends Object implements Comparable<IpPermission>
Ingress access to a destination protocol on particular ports by source, which could be an ip range (cidrblock), set of explicit security group ids in the current tenant, or security group names in another tenant.- See Also:
IpPermissions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IpPermission.Builder
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IpPermission.Builder
builder()
int
compareTo(IpPermission that)
boolean
equals(Object o)
Set<String>
getCidrBlocks()
source of traffic is a cidrRangeSet<String>
getExclusionCidrBlocks()
Traffic whose source matches any of these CIDR blocks will be blockedint
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 tenantIpProtocol
getIpProtocol()
destination IP protocolcom.google.common.collect.Multimap<String,String>
getTenantIdGroupNamePairs()
source of traffic allowed is on basis of another group in a tenant, as opposed to by cidrint
getToPort()
End of destination port range for the TCP and UDP protocols, or an ICMP code.int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
String
toString()
-
-
-
Method Detail
-
builder
public static IpPermission.Builder builder()
-
getIpProtocol
public IpProtocol getIpProtocol()
destination IP protocol
-
getFromPort
public int getFromPort()
Start of destination port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number).
-
getToPort
public int getToPort()
End of destination port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code).
-
getTenantIdGroupNamePairs
public 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
-
getGroupIds
public Set<String> getGroupIds()
source of traffic allowed is on basis of another groupid in the same tenant
-
getExclusionCidrBlocks
@Beta public Set<String> getExclusionCidrBlocks()
Traffic whose source matches any of these CIDR blocks will be blocked
-
compareTo
public int compareTo(IpPermission that)
- Specified by:
compareTo
in interfaceComparable<IpPermission>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-