Package 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateFirewallRuleOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static CreateFirewallRuleOptionsNONE-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description CreateFirewallRuleOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateFirewallRuleOptionsCIDRs(Set<String> CIDRs)CreateFirewallRuleOptionsendPort(int endPort)CreateFirewallRuleOptionsicmpCode(String icmpCode)CreateFirewallRuleOptionsicmpType(String icmpType)CreateFirewallRuleOptionsstartPort(int startPort)-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Field Detail
-
NONE
public static final CreateFirewallRuleOptions NONE
-
-
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
-
-