|
|||||||
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.CreateImageRequest
public class CreateImageRequest
Container for the parameters to the CreateImage operation
.
Creates an Amazon EBS-backed AMI from a "running" or "stopped" instance. AMIs that use an Amazon EBS root device boot faster than AMIs that use instance stores. They can be up to 1 TiB in size, use storage that persists on instance failure, and can be stopped and started.
AmazonEC2.createImage(CreateImageRequest)
Constructor Summary | |
---|---|
CreateImageRequest()
Default constructor for a new CreateImageRequest object. |
|
CreateImageRequest(String instanceId,
String name)
Constructs a new CreateImageRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
Returns the value of the BlockDeviceMappings property for this object. |
String |
getDescription()
The description for the new AMI being created. |
String |
getInstanceId()
The ID of the instance from which to create the new image. |
String |
getName()
The name for the new AMI being created. |
Boolean |
getNoReboot()
By default this property is set to false , which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. |
int |
hashCode()
|
Boolean |
isNoReboot()
By default this property is set to false , which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. |
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Sets the value of the BlockDeviceMappings property for this object. |
void |
setDescription(String description)
The description for the new AMI being created. |
void |
setInstanceId(String instanceId)
The ID of the instance from which to create the new image. |
void |
setName(String name)
The name for the new AMI being created. |
void |
setNoReboot(Boolean noReboot)
By default this property is set to false , which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateImageRequest |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Sets the value of the BlockDeviceMappings property for this object. |
CreateImageRequest |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Sets the value of the BlockDeviceMappings property for this object. |
CreateImageRequest |
withDescription(String description)
The description for the new AMI being created. |
CreateImageRequest |
withInstanceId(String instanceId)
The ID of the instance from which to create the new image. |
CreateImageRequest |
withName(String name)
The name for the new AMI being created. |
CreateImageRequest |
withNoReboot(Boolean noReboot)
By default this property is set to false , which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. |
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 CreateImageRequest()
public CreateImageRequest(String instanceId, String name)
instanceId
- The ID of the instance from which to create the new
image.name
- The name for the new AMI being created.Method Detail |
---|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance from which to create the new image.public CreateImageRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance from which to create the new image.
public String getName()
public void setName(String name)
name
- The name for the new AMI being created.public CreateImageRequest withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name for the new AMI being created.
public String getDescription()
public void setDescription(String description)
description
- The description for the new AMI being created.public CreateImageRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description for the new AMI being created.
public Boolean isNoReboot()
false
, which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. When set to true, Amazon
EC2 will not shut down the instance before creating the image. When
this option is used, file system integrity on the created image cannot
be guaranteed.
false
, which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. When set to true, Amazon
EC2 will not shut down the instance before creating the image. When
this option is used, file system integrity on the created image cannot
be guaranteed.public void setNoReboot(Boolean noReboot)
false
, which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. When set to true, Amazon
EC2 will not shut down the instance before creating the image. When
this option is used, file system integrity on the created image cannot
be guaranteed.
noReboot
- By default this property is set to false
, which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. When set to true, Amazon
EC2 will not shut down the instance before creating the image. When
this option is used, file system integrity on the created image cannot
be guaranteed.public CreateImageRequest withNoReboot(Boolean noReboot)
false
, which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. When set to true, Amazon
EC2 will not shut down the instance before creating the image. When
this option is used, file system integrity on the created image cannot
be guaranteed.
Returns a reference to this object so that method calls can be chained together.
noReboot
- By default this property is set to false
, which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. When set to true, Amazon
EC2 will not shut down the instance before creating the image. When
this option is used, file system integrity on the created image cannot
be guaranteed.
public Boolean getNoReboot()
false
, which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. When set to true, Amazon
EC2 will not shut down the instance before creating the image. When
this option is used, file system integrity on the created image cannot
be guaranteed.
false
, which means
Amazon EC2 attempts to cleanly shut down the instance before image
creation and reboots the instance afterwards. When set to true, Amazon
EC2 will not shut down the instance before creating the image. When
this option is used, file system integrity on the created image cannot
be guaranteed.public List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- The new value for the BlockDeviceMappings property for this object.public CreateImageRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- The new value for the BlockDeviceMappings property for this object.
public CreateImageRequest withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- The new value for the BlockDeviceMappings property for this object.
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 |