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
- Author:
- Adrian Cole, 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 CreateLoadBalancerRuleOptions NONE
CreateLoadBalancerRuleOptions
public CreateLoadBalancerRuleOptions()
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(long zoneId)
- Parameters:
zoneId
- the availability zone ID
accountInDomain
public CreateLoadBalancerRuleOptions accountInDomain(String account,
long domain)
-
- Overrides:
accountInDomain
in class AccountInDomainOptions
- Parameters:
account
- an optional account for the resourcedomain
- domain id
domainId
public CreateLoadBalancerRuleOptions domainId(long domainId)
-
- Overrides:
domainId
in class AccountInDomainOptions
- Parameters:
domainId
- The domain for the resource
Copyright © 2009-2012 jclouds. All Rights Reserved.