Package org.jclouds.cloudstack.options
Class CreateDiskOfferingOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudstack.options.AccountInDomainOptions
-
- org.jclouds.cloudstack.options.CreateDiskOfferingOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class CreateDiskOfferingOptions extends AccountInDomainOptions
Options to control how disk offerings are created
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateDiskOfferingOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static CreateDiskOfferingOptions
NONE
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description CreateDiskOfferingOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDiskOfferingOptions
accountInDomain(String account, String domain)
CreateDiskOfferingOptions
customized(boolean customized)
CreateDiskOfferingOptions
diskSizeInGB(int diskSizeInGB)
CreateDiskOfferingOptions
domainId(String domainId)
CreateDiskOfferingOptions
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 CreateDiskOfferingOptions NONE
-
-
Method Detail
-
customized
public CreateDiskOfferingOptions customized(boolean customized)
- Parameters:
customized
- whether disk offering is custom or not
-
diskSizeInGB
public CreateDiskOfferingOptions diskSizeInGB(int diskSizeInGB)
- Parameters:
diskSizeInGB
- size of the disk offering in GB
-
tags
public CreateDiskOfferingOptions tags(Set<String> tags)
- Parameters:
tags
- the tags for this service offering
-
accountInDomain
public CreateDiskOfferingOptions accountInDomain(String account, String domain)
- Overrides:
accountInDomain
in classAccountInDomainOptions
- Parameters:
account
- an optional account for the resourcedomain
- domain id
-
domainId
public CreateDiskOfferingOptions domainId(String domainId)
- Overrides:
domainId
in classAccountInDomainOptions
- Parameters:
domainId
- The domain for the resource
-
-