org.jclouds.cloudstack.options
Class CreateFirewallRuleOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
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:
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions |
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString |
NONE
public static final CreateFirewallRuleOptions NONE
CreateFirewallRuleOptions
public CreateFirewallRuleOptions()
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.