com.amazonaws.services.ec2.model

## クラス CreateImageRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.CreateImageRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class CreateImageRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  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)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `CreateImageRequest()` Default constructor for a new CreateImageRequest object.
    `CreateImageRequest(java.lang.String instanceId, java.lang.String name)` Constructs a new CreateImageRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<BlockDeviceMapping>` | `getBlockDeviceMappings()` Returns the value of the BlockDeviceMappings property for this object.
    `java.lang.String` | `getDescription()` The description for the new AMI being created.
    `java.lang.String` | `getInstanceId()` The ID of the instance from which to create the new image.
    `java.lang.String` | `getName()` The name for the new AMI being created.
    `java.lang.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()`
    `java.lang.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(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)` Sets the value of the BlockDeviceMappings property for this object.
    `void` | `setDescription(java.lang.String description)` The description for the new AMI being created.
    `void` | `setInstanceId(java.lang.String instanceId)` The ID of the instance from which to create the new image.
    `void` | `setName(java.lang.String name)` The name for the new AMI being created.
    `void` | `setNoReboot(java.lang.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.
    `java.lang.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(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)` Sets the value of the BlockDeviceMappings property for this object.
    `CreateImageRequest` | `withDescription(java.lang.String description)` The description for the new AMI being created.
    `CreateImageRequest` | `withInstanceId(java.lang.String instanceId)` The ID of the instance from which to create the new image.
    `CreateImageRequest` | `withName(java.lang.String name)` The name for the new AMI being created.
    `CreateImageRequest` | `withNoReboot(java.lang.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.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### CreateImageRequest

          public CreateImageRequest()

      Default constructor for a new CreateImageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### CreateImageRequest

          public CreateImageRequest(java.lang.String instanceId,
                            java.lang.String name)

      Constructs a new CreateImageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `instanceId` - The ID of the instance from which to create the new image.
        `name` - The name for the new AMI being created.

  - ### メソッドの詳細

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The ID of the instance from which to create the new image.
      戻り値:
        The ID of the instance from which to create the new image.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The ID of the instance from which to create the new image.
      パラメータ:
        `instanceId` - The ID of the instance from which to create the new image.

    - #### withInstanceId

          public CreateImageRequest withInstanceId(java.lang.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.

      パラメータ:
        `instanceId` - The ID of the instance from which to create the new image.

    - #### getName

          public java.lang.String getName()

      The name for the new AMI being created.
      戻り値:
        The name for the new AMI being created.

    - #### setName

          public void setName(java.lang.String name)

      The name for the new AMI being created.
      パラメータ:
        `name` - The name for the new AMI being created.

    - #### withName

          public CreateImageRequest withName(java.lang.String name)

      The name for the new AMI being created.

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

      パラメータ:
        `name` - The name for the new AMI being created.

    - #### getDescription

          public java.lang.String getDescription()

      The description for the new AMI being created.
      戻り値:
        The description for the new AMI being created.

    - #### setDescription

          public void setDescription(java.lang.String description)

      The description for the new AMI being created.
      パラメータ:
        `description` - The description for the new AMI being created.

    - #### withDescription

          public CreateImageRequest withDescription(java.lang.String description)

      The description for the new AMI being created.

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

      パラメータ:
        `description` - The description for the new AMI being created.

    - #### isNoReboot

          public java.lang.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.
      戻り値:
        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(java.lang.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.
      パラメータ:
        `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(java.lang.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.

      パラメータ:
        `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.

    - #### getNoReboot

          public java.lang.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.
      戻り値:
        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.

    - #### getBlockDeviceMappings

          public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()

      Returns the value of the BlockDeviceMappings property for this object.
      戻り値:
        The value of the BlockDeviceMappings property for this object.

    - #### setBlockDeviceMappings

          public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)

      Sets the value of the BlockDeviceMappings property for this object.
      パラメータ:
        `blockDeviceMappings` - The new value for the BlockDeviceMappings property for this object.

    - #### withBlockDeviceMappings

          public CreateImageRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)

      Sets the value of the BlockDeviceMappings property for this object.

      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.

    - #### withBlockDeviceMappings

          public CreateImageRequest withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)

      Sets the value of the BlockDeviceMappings property for this object.

      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.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`