Package org.jclouds.cloudstack.options
Class CreateTemplateOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudstack.options.CreateTemplateOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class CreateTemplateOptions extends BaseHttpRequestOptions
Options used to control how a template is created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateTemplateOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static CreateTemplateOptions
NONE
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description CreateTemplateOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTemplateOptions
bits(int bits)
32 or 64 bitCreateTemplateOptions
isFeatured(boolean isFeatured)
true if this template is a featured template, false otherwiseCreateTemplateOptions
isPublic(boolean isPublic)
true if this template is a public template, false otherwiseCreateTemplateOptions
passwordEnabled(boolean passwordEnabled)
true if the template supports the password reset feature; default is falseCreateTemplateOptions
requiresHVM(boolean requiresHVM)
true if the template requires HVM, false otherwiseCreateTemplateOptions
snapshotId(String snapshotId)
the ID of the snapshot the template is being created from.CreateTemplateOptions
volumeId(String volumeId)
the ID of the disk volume the template is being created from.-
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 CreateTemplateOptions NONE
-
-
Method Detail
-
bits
public CreateTemplateOptions bits(int bits)
32 or 64 bit
-
isFeatured
public CreateTemplateOptions isFeatured(boolean isFeatured)
true if this template is a featured template, false otherwise
-
isPublic
public CreateTemplateOptions isPublic(boolean isPublic)
true if this template is a public template, false otherwise
-
passwordEnabled
public CreateTemplateOptions passwordEnabled(boolean passwordEnabled)
true if the template supports the password reset feature; default is false
-
requiresHVM
public CreateTemplateOptions requiresHVM(boolean requiresHVM)
true if the template requires HVM, false otherwise
-
snapshotId
public CreateTemplateOptions snapshotId(String snapshotId)
the ID of the snapshot the template is being created from. Either this parameter, or volumeId has to be passed in
-
volumeId
public CreateTemplateOptions volumeId(String volumeId)
the ID of the disk volume the template is being created from. Either this parameter, or snapshotId has to be passed in
-
-