Package org.jclouds.net.util
Class IpPermissions
- java.lang.Object
-
- org.jclouds.net.domain.IpPermission
-
- org.jclouds.net.util.IpPermissions
-
- All Implemented Interfaces:
Comparable<IpPermission>
- Direct Known Subclasses:
IpPermissions.ToGroupSourceSelection
public class IpPermissions extends IpPermission
Shortcut to create ingress rules
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IpPermissions.AndCodeSelection
static class
IpPermissions.ICMPTypeSelection
static class
IpPermissions.PortSelection
static class
IpPermissions.ToGroupSourceSelection
static class
IpPermissions.ToPortSelection
static class
IpPermissions.ToSourceSelection
-
Nested classes/interfaces inherited from class org.jclouds.net.domain.IpPermission
IpPermission.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IpPermissions(IpProtocol ipProtocol, int fromPort, int toPort, com.google.common.collect.Multimap<String,String> tenantIdGroupPairs, Iterable<String> groupIds, Iterable<String> cidrBlocks, Iterable<String> exclusionCidrBlocks)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IpPermissions.PortSelection
permit(IpProtocol protocol)
static IpPermissions.ToSourceSelection
permitAnyProtocol()
static IpPermissions.ICMPTypeSelection
permitICMP()
-
Methods inherited from class org.jclouds.net.domain.IpPermission
builder, compareTo, equals, getCidrBlocks, getExclusionCidrBlocks, getFromPort, getGroupIds, getIpProtocol, getTenantIdGroupNamePairs, getToPort, hashCode, string, toString
-
-
-
-
Method Detail
-
permitICMP
public static IpPermissions.ICMPTypeSelection permitICMP()
-
permitAnyProtocol
public static IpPermissions.ToSourceSelection permitAnyProtocol()
-
permit
public static IpPermissions.PortSelection permit(IpProtocol protocol)
-
-