com.amazonaws.services.ec2.model

## クラス RegisterImageRequest

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

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

      public class RegisterImageRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getArchitecture()` The architecture of the image.
    `java.util.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.
    `java.lang.String` | `getDescription()` The description describing the new AMI.
    `java.lang.String` | `getImageLocation()` The full path to your AMI manifest in Amazon S3 storage.
    `java.lang.String` | `getKernelId()` The optional ID of a specific kernel to register with the new AMI.
    `java.lang.String` | `getName()` The name to give the new Amazon Machine Image.
    `java.lang.String` | `getRamdiskId()` The optional ID of a specific ramdisk to register with the new AMI.
    `java.lang.String` | `getRootDeviceName()` The root device name (e.g., `/dev/sda1`).
    `int` | `hashCode()`
    `void` | `setArchitecture(java.lang.String architecture)` The architecture of the image.
    `void` | `setBlockDeviceMappings(java.util.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(java.lang.String description)` The description describing the new AMI.
    `void` | `setImageLocation(java.lang.String imageLocation)` The full path to your AMI manifest in Amazon S3 storage.
    `void` | `setKernelId(java.lang.String kernelId)` The optional ID of a specific kernel to register with the new AMI.
    `void` | `setName(java.lang.String name)` The name to give the new Amazon Machine Image.
    `void` | `setRamdiskId(java.lang.String ramdiskId)` The optional ID of a specific ramdisk to register with the new AMI.
    `void` | `setRootDeviceName(java.lang.String rootDeviceName)` The root device name (e.g., `/dev/sda1`).
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `RegisterImageRequest` | `withArchitecture(java.lang.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(java.util.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(java.lang.String description)` The description describing the new AMI.
    `RegisterImageRequest` | `withImageLocation(java.lang.String imageLocation)` The full path to your AMI manifest in Amazon S3 storage.
    `RegisterImageRequest` | `withKernelId(java.lang.String kernelId)` The optional ID of a specific kernel to register with the new AMI.
    `RegisterImageRequest` | `withName(java.lang.String name)` The name to give the new Amazon Machine Image.
    `RegisterImageRequest` | `withRamdiskId(java.lang.String ramdiskId)` The optional ID of a specific ramdisk to register with the new AMI.
    `RegisterImageRequest` | `withRootDeviceName(java.lang.String rootDeviceName)` The root device name (e.g., `/dev/sda1`).

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### RegisterImageRequest

          public RegisterImageRequest()

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

    - #### RegisterImageRequest

          public RegisterImageRequest(java.lang.String imageLocation)

      Constructs a new RegisterImageRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `imageLocation` - The full path to your AMI manifest in Amazon S3 storage.

  - ### メソッドの詳細

    - #### getImageLocation

          public java.lang.String getImageLocation()

      The full path to your AMI manifest in Amazon S3 storage.
      戻り値:
        The full path to your AMI manifest in Amazon S3 storage.

    - #### setImageLocation

          public void setImageLocation(java.lang.String imageLocation)

      The full path to your AMI manifest in Amazon S3 storage.
      パラメータ:
        `imageLocation` - The full path to your AMI manifest in Amazon S3 storage.

    - #### withImageLocation

          public RegisterImageRequest withImageLocation(java.lang.String imageLocation)

      The full path to your AMI manifest in Amazon S3 storage.

      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.

    - #### getName

          public java.lang.String getName()

      The name to give the new Amazon Machine Image.

      Constraints: 3-128 alphanumeric characters, parenthesis (`()`), commas (`,`), slashes (`/`), dashes (`-`), or underscores(`_`)

      戻り値:
        The name to give the new Amazon Machine Image.

        Constraints: 3-128 alphanumeric characters, parenthesis (`()`), commas (`,`), slashes (`/`), dashes (`-`), or underscores(`_`)

    - #### setName

          public void setName(java.lang.String name)

      The name to give the new Amazon Machine Image.

      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(`_`)

    - #### withName

          public RegisterImageRequest withName(java.lang.String name)

      The name to give the new Amazon Machine Image.

      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(`_`)

    - #### getDescription

          public java.lang.String getDescription()

      The description describing the new AMI.
      戻り値:
        The description describing the new AMI.

    - #### setDescription

          public void setDescription(java.lang.String description)

      The description describing the new AMI.
      パラメータ:
        `description` - The description describing the new AMI.

    - #### withDescription

          public RegisterImageRequest withDescription(java.lang.String description)

      The description describing the new AMI.

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

      パラメータ:
        `description` - The description describing the new AMI.

    - #### getArchitecture

          public java.lang.String getArchitecture()

      The architecture of the image.

      Valid Values: `i386`, `x86_64`

      戻り値:
        The architecture of the image.

        Valid Values: `i386`, `x86_64`

    - #### setArchitecture

          public void setArchitecture(java.lang.String architecture)

      The architecture of the image.

      Valid Values: `i386`, `x86_64`

      パラメータ:
        `architecture` - The architecture of the image.

        Valid Values: `i386`, `x86_64`

    - #### withArchitecture

          public RegisterImageRequest withArchitecture(java.lang.String architecture)

      The architecture of the image.

      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`

    - #### getKernelId

          public java.lang.String getKernelId()

      The optional ID of a specific kernel to register with the new AMI.
      戻り値:
        The optional ID of a specific kernel to register with the new AMI.

    - #### setKernelId

          public void setKernelId(java.lang.String kernelId)

      The optional ID of a specific kernel to register with the new AMI.
      パラメータ:
        `kernelId` - The optional ID of a specific kernel to register with the new AMI.

    - #### withKernelId

          public RegisterImageRequest withKernelId(java.lang.String kernelId)

      The optional ID of a specific kernel to register with the new AMI.

      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.

    - #### getRamdiskId

          public java.lang.String getRamdiskId()

      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.

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

    - #### setRamdiskId

          public void setRamdiskId(java.lang.String 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.

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

    - #### withRamdiskId

          public RegisterImageRequest withRamdiskId(java.lang.String 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.

      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.

    - #### getRootDeviceName

          public java.lang.String getRootDeviceName()

      The root device name (e.g., `/dev/sda1`).
      戻り値:
        The root device name (e.g., `/dev/sda1`).

    - #### setRootDeviceName

          public void setRootDeviceName(java.lang.String rootDeviceName)

      The root device name (e.g., `/dev/sda1`).
      パラメータ:
        `rootDeviceName` - The root device name (e.g., `/dev/sda1`).

    - #### withRootDeviceName

          public RegisterImageRequest withRootDeviceName(java.lang.String rootDeviceName)

      The root device name (e.g., `/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`).

    - #### getBlockDeviceMappings

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

    - #### setBlockDeviceMappings

          public void setBlockDeviceMappings(java.util.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.
      パラメータ:
        `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.

    - #### withBlockDeviceMappings

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

      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.

    - #### withBlockDeviceMappings

          public RegisterImageRequest withBlockDeviceMappings(java.util.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.

      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.

    - #### 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`