Package org.jclouds.cloudstack.options
Class CreateServiceOfferingOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudstack.options.AccountInDomainOptions
-
- org.jclouds.cloudstack.options.CreateServiceOfferingOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class CreateServiceOfferingOptions extends AccountInDomainOptions
Options to control how service offerings are created
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateServiceOfferingOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static CreateServiceOfferingOptionsNONE-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description CreateServiceOfferingOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateServiceOfferingOptionsaccountInDomain(String account, String domain)CreateServiceOfferingOptionsdomainId(String domainId)CreateServiceOfferingOptionshighlyAvailable(boolean highlyAvailable)CreateServiceOfferingOptionshostTags(Set<String> hostTags)CreateServiceOfferingOptionsisSystem(boolean isSystem)CreateServiceOfferingOptionslimitCpuUse(boolean limitCpuUse)CreateServiceOfferingOptionsnetworkRateInMb(int networkRateInMb)CreateServiceOfferingOptionsstorageType(StorageType storageType)CreateServiceOfferingOptionssystemVmType(SystemVmType systemVmType)CreateServiceOfferingOptionstags(Set<String> tags)-
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 CreateServiceOfferingOptions NONE
-
-
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, String domain)
- Overrides:
accountInDomainin classAccountInDomainOptions- Parameters:
account- an optional account for the resourcedomain- domain id
-
domainId
public CreateServiceOfferingOptions domainId(String domainId)
- Overrides:
domainIdin classAccountInDomainOptions- Parameters:
domainId- The domain for the resource
-
-