|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.RegisterImageRequest
public class RegisterImageRequest
Container for the parameters to the RegisterImage operation
.
The RegisterImage operation registers an AMI with Amazon EC2. Images must be registered before they can be launched. For more information, see RunInstances.
Each AMI is associated with an unique ID which is provided by the Amazon EC2 service through the RegisterImage operation. During registration, Amazon EC2 retrieves the specified image manifest from Amazon S3 and verifies that the image is owned by the user registering the image.
The image manifest is retrieved once and stored within the Amazon EC2. Any modifications to an image in Amazon S3 invalidates this registration. If you make changes to an image, deregister the previous image and register the new image. For more information, see DeregisterImage.
AmazonEC2.registerImage(RegisterImageRequest)
Constructor Summary | |
---|---|
RegisterImageRequest()
Default constructor for a new RegisterImageRequest object. |
|
RegisterImageRequest(String imageLocation)
Constructs a new RegisterImageRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getArchitecture()
The architecture of the image. |
List<BlockDeviceMapping> |
getBlockDeviceMappings()
The block device mappings for the new AMI, which specify how different block devices (ex: EBS volumes and ephemeral drives) will be exposed on instances launched from the new image. |
String |
getDescription()
The description describing the new AMI. |
String |
getImageLocation()
The full path to your AMI manifest in Amazon S3 storage. |
String |
getKernelId()
The optional ID of a specific kernel to register with the new AMI. |
String |
getName()
The name to give the new Amazon Machine Image. |
String |
getRamdiskId()
The optional ID of a specific ramdisk to register with the new AMI. |
String |
getRootDeviceName()
The root device name (e.g., /dev/sda1 ). |
int |
hashCode()
|
void |
setArchitecture(String architecture)
The architecture of the image. |
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mappings for the new AMI, which specify how different block devices (ex: EBS volumes and ephemeral drives) will be exposed on instances launched from the new image. |
void |
setDescription(String description)
The description describing the new AMI. |
void |
setImageLocation(String imageLocation)
The full path to your AMI manifest in Amazon S3 storage. |
void |
setKernelId(String kernelId)
The optional ID of a specific kernel to register with the new AMI. |
void |
setName(String name)
The name to give the new Amazon Machine Image. |
void |
setRamdiskId(String ramdiskId)
The optional ID of a specific ramdisk to register with the new AMI. |
void |
setRootDeviceName(String rootDeviceName)
The root device name (e.g., /dev/sda1 ). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
RegisterImageRequest |
withArchitecture(String architecture)
The architecture of the image. |
RegisterImageRequest |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
The block device mappings for the new AMI, which specify how different block devices (ex: EBS volumes and ephemeral drives) will be exposed on instances launched from the new image. |
RegisterImageRequest |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mappings for the new AMI, which specify how different block devices (ex: EBS volumes and ephemeral drives) will be exposed on instances launched from the new image. |
RegisterImageRequest |
withDescription(String description)
The description describing the new AMI. |
RegisterImageRequest |
withImageLocation(String imageLocation)
The full path to your AMI manifest in Amazon S3 storage. |
RegisterImageRequest |
withKernelId(String kernelId)
The optional ID of a specific kernel to register with the new AMI. |
RegisterImageRequest |
withName(String name)
The name to give the new Amazon Machine Image. |
RegisterImageRequest |
withRamdiskId(String ramdiskId)
The optional ID of a specific ramdisk to register with the new AMI. |
RegisterImageRequest |
withRootDeviceName(String rootDeviceName)
The root device name (e.g., /dev/sda1 ). |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RegisterImageRequest()
public RegisterImageRequest(String imageLocation)
imageLocation
- The full path to your AMI manifest in Amazon S3
storage.Method Detail |
---|
public String getImageLocation()
public void setImageLocation(String imageLocation)
imageLocation
- The full path to your AMI manifest in Amazon S3 storage.public RegisterImageRequest withImageLocation(String imageLocation)
Returns a reference to this object so that method calls can be chained together.
imageLocation
- The full path to your AMI manifest in Amazon S3 storage.
public String getName()
Constraints: 3-128
alphanumeric characters, parenthesis (()
), commas
(,
), slashes (/
), dashes (-
),
or underscores(_
)
Constraints: 3-128
alphanumeric characters, parenthesis (()
), commas
(,
), slashes (/
), dashes (-
),
or underscores(_
)
public void setName(String name)
Constraints: 3-128
alphanumeric characters, parenthesis (()
), commas
(,
), slashes (/
), dashes (-
),
or underscores(_
)
name
- The name to give the new Amazon Machine Image. Constraints: 3-128
alphanumeric characters, parenthesis (()
), commas
(,
), slashes (/
), dashes (-
),
or underscores(_
)
public RegisterImageRequest withName(String name)
Constraints: 3-128
alphanumeric characters, parenthesis (()
), commas
(,
), slashes (/
), dashes (-
),
or underscores(_
)
Returns a reference to this object so that method calls can be chained together.
name
- The name to give the new Amazon Machine Image. Constraints: 3-128
alphanumeric characters, parenthesis (()
), commas
(,
), slashes (/
), dashes (-
),
or underscores(_
)
public String getDescription()
public void setDescription(String description)
description
- The description describing the new AMI.public RegisterImageRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description describing the new AMI.
public String getArchitecture()
Valid Values: i386
,
x86_64
Valid Values: i386
,
x86_64
public void setArchitecture(String architecture)
Valid Values: i386
,
x86_64
architecture
- The architecture of the image. Valid Values: i386
,
x86_64
public RegisterImageRequest withArchitecture(String architecture)
Valid Values: i386
,
x86_64
Returns a reference to this object so that method calls can be chained together.
architecture
- The architecture of the image. Valid Values: i386
,
x86_64
public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- The optional ID of a specific kernel to register with the new AMI.public RegisterImageRequest withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The optional ID of a specific kernel to register with the new AMI.
public String getRamdiskId()
Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk.
Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk.
public void setRamdiskId(String ramdiskId)
Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk.
ramdiskId
- The optional ID of a specific ramdisk to register with the new AMI.
Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk.
public RegisterImageRequest withRamdiskId(String ramdiskId)
Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk.
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The optional ID of a specific ramdisk to register with the new AMI.
Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk.
public String getRootDeviceName()
/dev/sda1
).
/dev/sda1
).public void setRootDeviceName(String rootDeviceName)
/dev/sda1
).
rootDeviceName
- The root device name (e.g., /dev/sda1
).public RegisterImageRequest withRootDeviceName(String rootDeviceName)
/dev/sda1
).
Returns a reference to this object so that method calls can be chained together.
rootDeviceName
- The root device name (e.g., /dev/sda1
).
public List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- The block device mappings for the new AMI, which specify how different
block devices (ex: EBS volumes and ephemeral drives) will be exposed
on instances launched from the new image.public RegisterImageRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- The block device mappings for the new AMI, which specify how different
block devices (ex: EBS volumes and ephemeral drives) will be exposed
on instances launched from the new image.
public RegisterImageRequest withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- The block device mappings for the new AMI, which specify how different
block devices (ex: EBS volumes and ephemeral drives) will be exposed
on instances launched from the new image.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |