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
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionIpPermission
(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
Modifier and TypeMethodDescriptionstatic IpPermission.Builder
builder()
int
compareTo
(IpPermission that) boolean
source of traffic is a cidrRangeTraffic whose source matches any of these CIDR blocks will be blockedint
Start of destination port range for the TCP and UDP protocols, or an ICMP type number.source of traffic allowed is on basis of another groupid in the same tenantdestination IP protocolsource of traffic allowed is on basis of another group in a tenant, as opposed to by cidrint
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()
toString()
-
Constructor Details
-
IpPermission
-
-
Method Details
-
builder
-
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
source of traffic allowed is on basis of another group in a tenant, as opposed to by cidr -
getGroupIds
source of traffic allowed is on basis of another groupid in the same tenant -
getCidrBlocks
source of traffic is a cidrRange -
getExclusionCidrBlocks
Traffic whose source matches any of these CIDR blocks will be blocked -
compareTo
- Specified by:
compareTo
in interfaceComparable<IpPermission>
-
equals
-
hashCode
public int hashCode() -
toString
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-