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
- Author:
- 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 CreateServiceOfferingOptions NONE
CreateServiceOfferingOptions
public CreateServiceOfferingOptions()
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 resourcedomain - 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.