org.jclouds.cloudstack.options
Class CreateLoadBalancerRuleOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.cloudstack.options.AccountInDomainOptions
          extended by 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:

Nested Class Summary
static class CreateLoadBalancerRuleOptions.Builder
           
 
Field Summary
static CreateLoadBalancerRuleOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
CreateLoadBalancerRuleOptions()
           
 
Method Summary
 CreateLoadBalancerRuleOptions accountInDomain(String account, long domain)
          
 CreateLoadBalancerRuleOptions allowedSourceCIDRs(Set<String> allowedSourceCIRDs)
           
 CreateLoadBalancerRuleOptions description(String description)
           
 CreateLoadBalancerRuleOptions domainId(long domainId)
          
 CreateLoadBalancerRuleOptions openFirewall(boolean openFirewall)
           
 CreateLoadBalancerRuleOptions zoneId(long zoneId)
           
 
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 CreateLoadBalancerRuleOptions NONE
Constructor Detail

CreateLoadBalancerRuleOptions

public CreateLoadBalancerRuleOptions()
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(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 resource
domain - 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.