org.jclouds.cloudstack.options
Class CreateFirewallRuleOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.cloudstack.options.CreateFirewallRuleOptions
All Implemented Interfaces:
HttpRequestOptions

public class CreateFirewallRuleOptions
extends BaseHttpRequestOptions

Options used to control how a firewall rule is created

Author:
Andrei Savu
See Also:

Nested Class Summary
static class CreateFirewallRuleOptions.Builder
           
 
Field Summary
static CreateFirewallRuleOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
CreateFirewallRuleOptions()
           
 
Method Summary
 CreateFirewallRuleOptions CIDRs(Set<String> CIDRs)
           
 CreateFirewallRuleOptions endPort(int endPort)
           
 CreateFirewallRuleOptions icmpCode(String icmpCode)
           
 CreateFirewallRuleOptions icmpType(String icmpType)
           
 CreateFirewallRuleOptions startPort(int startPort)
           
 
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final CreateFirewallRuleOptions NONE
Constructor Detail

CreateFirewallRuleOptions

public CreateFirewallRuleOptions()
Method Detail

CIDRs

public CreateFirewallRuleOptions CIDRs(Set<String> CIDRs)
Parameters:
CIDRs - the list of CIDRs to forward traffic from

startPort

public CreateFirewallRuleOptions startPort(int startPort)
Parameters:
startPort - the starting port of firewall rule

endPort

public CreateFirewallRuleOptions endPort(int endPort)
Parameters:
endPort - the ending port of firewall rule

icmpCode

public CreateFirewallRuleOptions icmpCode(String icmpCode)
Parameters:
icmpCode - error code for this icmp message

icmpType

public CreateFirewallRuleOptions icmpType(String icmpType)
Parameters:
icmpType - type of the icmp message being sent


Copyright © 2009-2012 jclouds. All Rights Reserved.