org.jclouds.ec2.util
Class IpPermissions

java.lang.Object
  extended by org.jclouds.ec2.domain.IpPermissionImpl
      extended by org.jclouds.ec2.util.IpPermissions
All Implemented Interfaces:
Comparable<IpPermission>, IpPermission
Direct Known Subclasses:
IpPermissions.ToVPCSourceSelection

public class IpPermissions
extends IpPermissionImpl

Shortcut to create ingress rules

Author:
Adrian Cole

Nested Class Summary
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.ec2.domain.IpPermissionImpl
IpPermissionImpl.Builder
 
Constructor Summary
protected IpPermissions(IpProtocol ipProtocol, int fromPort, int toPort, com.google.common.collect.Multimap<String,String> userIdGroupPairs, Iterable<String> groupIds, Iterable<String> ipRanges)
           
 
Method Summary
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.ec2.domain.IpPermissionImpl
builder, compareTo, equals, getFromPort, getGroupIds, getIpProtocol, getIpRanges, getToPort, getUserIdGroupPairs, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IpPermissions

protected IpPermissions(IpProtocol ipProtocol,
                        int fromPort,
                        int toPort,
                        com.google.common.collect.Multimap<String,String> userIdGroupPairs,
                        Iterable<String> groupIds,
                        Iterable<String> ipRanges)
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)


Copyright © 2009-2012 jclouds. All Rights Reserved.