org.jclouds.cloudstack.options
Class CreateServiceOfferingOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.cloudstack.options.AccountInDomainOptions
          extended by org.jclouds.cloudstack.options.CreateServiceOfferingOptions
All Implemented Interfaces:
HttpRequestOptions

public class CreateServiceOfferingOptions
extends AccountInDomainOptions

Options to control how service offerings are created

Author:
Andrei Savu
See Also:

Nested Class Summary
static class CreateServiceOfferingOptions.Builder
           
 
Field Summary
static CreateServiceOfferingOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
 
Constructor Summary
CreateServiceOfferingOptions()
           
 
Method Summary
 CreateServiceOfferingOptions accountInDomain(String account, long domain)
          
 CreateServiceOfferingOptions domainId(long domainId)
          
 CreateServiceOfferingOptions highlyAvailable(boolean highlyAvailable)
           
 CreateServiceOfferingOptions hostTags(Set<String> hostTags)
           
 CreateServiceOfferingOptions isSystem(boolean isSystem)
           
 CreateServiceOfferingOptions limitCpuUse(boolean limitCpuUse)
           
 CreateServiceOfferingOptions networkRateInMb(int networkRateInMb)
           
 CreateServiceOfferingOptions storageType(StorageType storageType)
           
 CreateServiceOfferingOptions systemVmType(SystemVmType systemVmType)
           
 CreateServiceOfferingOptions tags(Set<String> tags)
           
 
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 CreateServiceOfferingOptions NONE
Constructor Detail

CreateServiceOfferingOptions

public CreateServiceOfferingOptions()
Method Detail

hostTags

public CreateServiceOfferingOptions hostTags(Set<String> hostTags)
Parameters:
hostTags - the host tag for this service offering

isSystem

public CreateServiceOfferingOptions isSystem(boolean isSystem)
Parameters:
isSystem - is this a system vm offering

limitCpuUse

public CreateServiceOfferingOptions limitCpuUse(boolean limitCpuUse)
Parameters:
limitCpuUse - restrict the CPU usage to committed service offering

networkRateInMb

public CreateServiceOfferingOptions networkRateInMb(int networkRateInMb)
Parameters:
networkRateInMb - data transfer rate in megabits per second allowed. Supported only for non-System offering and system offerings having "domainrouter" systemvmtype

highlyAvailable

public CreateServiceOfferingOptions highlyAvailable(boolean highlyAvailable)
Parameters:
highlyAvailable - the HA for the service offering

storageType

public CreateServiceOfferingOptions storageType(StorageType storageType)
Parameters:
storageType - the storage type of the service offering

systemVmType

public CreateServiceOfferingOptions systemVmType(SystemVmType systemVmType)
Parameters:
systemVmType - the system VM type. Possible types are "domainrouter", "consoleproxy" and "secondarystoragevm"

tags

public CreateServiceOfferingOptions tags(Set<String> tags)
Parameters:
tags - the tags for this service offering

accountInDomain

public CreateServiceOfferingOptions accountInDomain(String account,
                                                    long domain)

Overrides:
accountInDomain in class AccountInDomainOptions
Parameters:
account - an optional account for the resource
domain - domain id

domainId

public CreateServiceOfferingOptions domainId(long domainId)

Overrides:
domainId in class AccountInDomainOptions
Parameters:
domainId - The domain for the resource


Copyright © 2009-2012 jclouds. All Rights Reserved.