Package org.jclouds.cloudstack.options
Class CreateLoadBalancerRuleOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudstack.options.AccountInDomainOptions
-
- org.jclouds.cloudstack.options.CreateLoadBalancerRuleOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class CreateLoadBalancerRuleOptions extends AccountInDomainOptions
Options used to control what load balancer rules are returned
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateLoadBalancerRuleOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static CreateLoadBalancerRuleOptions
NONE
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description CreateLoadBalancerRuleOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateLoadBalancerRuleOptions
accountInDomain(String account, String domain)
CreateLoadBalancerRuleOptions
allowedSourceCIDRs(Set<String> allowedSourceCIRDs)
CreateLoadBalancerRuleOptions
description(String description)
CreateLoadBalancerRuleOptions
domainId(String domainId)
CreateLoadBalancerRuleOptions
openFirewall(boolean openFirewall)
CreateLoadBalancerRuleOptions
zoneId(String zoneId)
-
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 CreateLoadBalancerRuleOptions NONE
-
-
Method Detail
-
allowedSourceCIDRs
public CreateLoadBalancerRuleOptions allowedSourceCIDRs(Set<String> allowedSourceCIRDs)
- Parameters:
allowedSourceCIRDs
- the cidr list to forward traffic from
-
description
public CreateLoadBalancerRuleOptions description(String description)
- Parameters:
description
- the description of the load balancer rule
-
openFirewall
public CreateLoadBalancerRuleOptions openFirewall(boolean openFirewall)
- Parameters:
openFirewall
- if true, firewall rule for source/end pubic port is automatically created; if false - firewall rule has to be created explicitly. Has value true by default
-
zoneId
public CreateLoadBalancerRuleOptions zoneId(String zoneId)
- Parameters:
zoneId
- the availability zone ID
-
accountInDomain
public CreateLoadBalancerRuleOptions accountInDomain(String account, String domain)
- Overrides:
accountInDomain
in classAccountInDomainOptions
- Parameters:
account
- an optional account for the resourcedomain
- domain id
-
domainId
public CreateLoadBalancerRuleOptions domainId(String domainId)
- Overrides:
domainId
in classAccountInDomainOptions
- Parameters:
domainId
- The domain for the resource
-
-