com.amazonaws.services.ec2.model
Class CreateImageRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateImageRequest

public class CreateImageRequest
extends AmazonWebServiceRequest

Represents a request to create a new EC2 image.


Constructor Summary
CreateImageRequest()
           
 
Method Summary
 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.
 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 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()
           
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateImageRequest

public CreateImageRequest()
Method Detail

getInstanceId

public String getInstanceId()
The ID of the instance from which to create the new image.

Returns:
The ID of the instance from which to create the new image.

setInstanceId

public void setInstanceId(String instanceId)
The ID of the instance from which to create the new image.

Parameters:
instanceId - The ID of the instance from which to create the new image.

withInstanceId

public CreateImageRequest withInstanceId(String instanceId)
The ID of the instance from which to create the new image.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - The ID of the instance from which to create the new image.
Returns:
A reference to this updated object so that method calls can be chained together.

getName

public String getName()
The name for the new AMI being created.

Returns:
The name for the new AMI being created.

setName

public void setName(String name)
The name for the new AMI being created.

Parameters:
name - The name for the new AMI being created.

withName

public CreateImageRequest withName(String name)
The name for the new AMI being created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The name for the new AMI being created.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
The description for the new AMI being created.

Returns:
The description for the new AMI being created.

setDescription

public void setDescription(String description)
The description for the new AMI being created.

Parameters:
description - The description for the new AMI being created.

withDescription

public CreateImageRequest withDescription(String description)
The description for the new AMI being created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - The description for the new AMI being created.
Returns:
A reference to this updated object so that method calls can be chained together.

isNoReboot

public 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. 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:
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.

setNoReboot

public 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. 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.

Parameters:
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.

withNoReboot

public 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. 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.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getNoReboot

public 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. 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:
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.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.