|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.http.options.BaseHttpRequestOptions org.jclouds.ec2.options.internal.BaseEC2RequestOptions org.jclouds.ec2.options.RegisterImageOptions
public class RegisterImageOptions
Contains options supported in the Form API for the RegisterImage operation.
import static org.jclouds.ec2.options.RegisterImageOptions.Builder.*
EC2Client connection = // get connection
String imageId = connection.getImageServices().registerImageFromManifest(...withArchitecture(Architecture.I386).withDescription("description"));
- Author:
- Adrian Cole
- See Also:
Nested Class Summary
static class
RegisterImageOptions.Builder
Field Summary
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, matrixParameters, pathSuffix, payload, queryParameters
Constructor Summary
RegisterImageOptions()
Method Summary
RegisterImageOptions
asArchitecture(Image.Architecture architecture)
The architecture of the image.
RegisterImageOptions
withDescription(String info)
The description of the AMI.
RegisterImageOptions
withKernelId(String kernelId)
The ID of the kernel to select.
RegisterImageOptions
withRamdisk(String ramDiskId)
The ID of the RAM disk to select.
Methods inherited from class org.jclouds.ec2.options.internal.BaseEC2RequestOptions
getFormValuesWithKeysPrefixedBy, indexFormValuesWithPrefix, indexFormValuesWithPrefix, toString
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Constructor Detail
RegisterImageOptions
public RegisterImageOptions()
Method Detail
asArchitecture
public RegisterImageOptions asArchitecture(Image.Architecture architecture)
- The architecture of the image.
withDescription
public RegisterImageOptions withDescription(String info)
- The description of the AMI. "Up to 255 characters."
withKernelId
public RegisterImageOptions withKernelId(String kernelId)
- The ID of the kernel to select.
withRamdisk
public RegisterImageOptions withRamdisk(String ramDiskId)
- The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the
kernel requirements for information on whether you need to specify a RAM disk. To find kernel
requirements, refer to the Resource Center and search for the kernel ID.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2009-2011 jclouds. All Rights Reserved.