Package org.jclouds.ec2.util
Class IpPermissions
- java.lang.Object
-
- org.jclouds.net.domain.IpPermission
-
- org.jclouds.ec2.util.IpPermissions
-
- All Implemented Interfaces:
Comparable<IpPermission>
- Direct Known Subclasses:
IpPermissions.ToVPCSourceSelection
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.ToPortSelection
static class
IpPermissions.ToSourceSelection
static class
IpPermissions.ToVPCSourceSelection
-
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> userIdGroupPairs, Iterable<String> groupIds, Iterable<String> ipRanges)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.collect.Multimap<String,String>
buildFormParametersForIndex(int index, IpPermission permission)
don't rely on this being here..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
-
buildFormParametersForIndex
@Beta public static com.google.common.collect.Multimap<String,String> buildFormParametersForIndex(int index, IpPermission permission)
don't rely on this being here.. it will move
-
permitICMP
public static IpPermissions.ICMPTypeSelection permitICMP()
-
permitAnyProtocol
public static IpPermissions.ToSourceSelection permitAnyProtocol()
-
permit
public static IpPermissions.PortSelection permit(IpProtocol protocol)
-
-