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 class
CreateServiceOfferingOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static CreateServiceOfferingOptions
NONE
-
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 CreateServiceOfferingOptions
accountInDomain(String account, String domain)
CreateServiceOfferingOptions
domainId(String 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, 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:
accountInDomain
in classAccountInDomainOptions
- Parameters:
account
- an optional account for the resourcedomain
- domain id
-
domainId
public CreateServiceOfferingOptions domainId(String domainId)
- Overrides:
domainId
in classAccountInDomainOptions
- Parameters:
domainId
- The domain for the resource
-
-