com.amazonaws.services.ec2.model

## クラス InstanceAttribute

- java.lang.Object
- - com.amazonaws.services.ec2.model.InstanceAttribute

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

      public class InstanceAttribute
      extends java.lang.Object
      implements java.io.Serializable

  Represents an attribute of an Amazon EC2 instance.

  関連項目:
    直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `InstanceAttribute()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<InstanceBlockDeviceMapping>` | `getBlockDeviceMappings()` How block devices are exposed to this instance.
    `java.lang.Boolean` | `getDisableApiTermination()` Whether this instance can be terminated.
    `java.lang.Boolean` | `getEbsOptimized()` Boolean value
    `java.lang.String` | `getInstanceId()` The ID of the associated instance.
    `java.lang.String` | `getInstanceInitiatedShutdownBehavior()` Whether this instance's Amazon EBS volumes are deleted when the instance is shut down.
    `java.lang.String` | `getInstanceType()` The instance type (e.g., `m1.small`, `c1.medium`, `m2.2xlarge`, and so on).
    `java.lang.String` | `getKernelId()` The kernel ID of the associated instance.
    `java.util.List<ProductCode>` | `getProductCodes()` Returns the value of the ProductCodes property for this object.
    `java.lang.String` | `getRamdiskId()` The ramdisk ID of the associated instance.
    `java.lang.String` | `getRootDeviceName()` The root device name (e.g., `/dev/sda1`).
    `java.lang.String` | `getUserData()` MIME, Base64-encoded user data.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isDisableApiTermination()` Whether this instance can be terminated.
    `java.lang.Boolean` | `isEbsOptimized()` Boolean value
    `void` | `setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)` How block devices are exposed to this instance.
    `void` | `setDisableApiTermination(java.lang.Boolean disableApiTermination)` Whether this instance can be terminated.
    `void` | `setEbsOptimized(java.lang.Boolean ebsOptimized)` Boolean value
    `void` | `setInstanceId(java.lang.String instanceId)` The ID of the associated instance.
    `void` | `setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)` Whether this instance's Amazon EBS volumes are deleted when the instance is shut down.
    `void` | `setInstanceType(java.lang.String instanceType)` The instance type (e.g., `m1.small`, `c1.medium`, `m2.2xlarge`, and so on).
    `void` | `setKernelId(java.lang.String kernelId)` The kernel ID of the associated instance.
    `void` | `setProductCodes(java.util.Collection<ProductCode> productCodes)` Sets the value of the ProductCodes property for this object.
    `void` | `setRamdiskId(java.lang.String ramdiskId)` The ramdisk ID of the associated instance.
    `void` | `setRootDeviceName(java.lang.String rootDeviceName)` The root device name (e.g., `/dev/sda1`).
    `void` | `setUserData(java.lang.String userData)` MIME, Base64-encoded user data.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `InstanceAttribute` | `withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)` How block devices are exposed to this instance.
    `InstanceAttribute` | `withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)` How block devices are exposed to this instance.
    `InstanceAttribute` | `withDisableApiTermination(java.lang.Boolean disableApiTermination)` Whether this instance can be terminated.
    `InstanceAttribute` | `withEbsOptimized(java.lang.Boolean ebsOptimized)` Boolean value Returns a reference to this object so that method calls can be chained together.
    `InstanceAttribute` | `withInstanceId(java.lang.String instanceId)` The ID of the associated instance.
    `InstanceAttribute` | `withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)` Whether this instance's Amazon EBS volumes are deleted when the instance is shut down.
    `InstanceAttribute` | `withInstanceType(java.lang.String instanceType)` The instance type (e.g., `m1.small`, `c1.medium`, `m2.2xlarge`, and so on).
    `InstanceAttribute` | `withKernelId(java.lang.String kernelId)` The kernel ID of the associated instance.
    `InstanceAttribute` | `withProductCodes(java.util.Collection<ProductCode> productCodes)` Sets the value of the ProductCodes property for this object.
    `InstanceAttribute` | `withProductCodes(ProductCode... productCodes)` Sets the value of the ProductCodes property for this object.
    `InstanceAttribute` | `withRamdiskId(java.lang.String ramdiskId)` The ramdisk ID of the associated instance.
    `InstanceAttribute` | `withRootDeviceName(java.lang.String rootDeviceName)` The root device name (e.g., `/dev/sda1`).
    `InstanceAttribute` | `withUserData(java.lang.String userData)` MIME, Base64-encoded user data.

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

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

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

    - #### InstanceAttribute

          public InstanceAttribute()

  - ### メソッドの詳細

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The ID of the associated instance.
      戻り値:
        The ID of the associated instance.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The ID of the associated instance.
      パラメータ:
        `instanceId` - The ID of the associated instance.

    - #### withInstanceId

          public InstanceAttribute withInstanceId(java.lang.String instanceId)

      The ID of the associated instance.

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

      パラメータ:
        `instanceId` - The ID of the associated instance.

    - #### getInstanceType

          public java.lang.String getInstanceType()

      The instance type (e.g., `m1.small`, `c1.medium`, `m2.2xlarge`, and so on).
      戻り値:
        The instance type (e.g., `m1.small`, `c1.medium`, `m2.2xlarge`, and so on).

    - #### setInstanceType

          public void setInstanceType(java.lang.String instanceType)

      The instance type (e.g., `m1.small`, `c1.medium`, `m2.2xlarge`, and so on).
      パラメータ:
        `instanceType` - The instance type (e.g., `m1.small`, `c1.medium`, `m2.2xlarge`, and so on).

    - #### withInstanceType

          public InstanceAttribute withInstanceType(java.lang.String instanceType)

      The instance type (e.g., `m1.small`, `c1.medium`, `m2.2xlarge`, and so on).

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

      パラメータ:
        `instanceType` - The instance type (e.g., `m1.small`, `c1.medium`, `m2.2xlarge`, and so on).

    - #### getKernelId

          public java.lang.String getKernelId()

      The kernel ID of the associated instance.
      戻り値:
        The kernel ID of the associated instance.

    - #### setKernelId

          public void setKernelId(java.lang.String kernelId)

      The kernel ID of the associated instance.
      パラメータ:
        `kernelId` - The kernel ID of the associated instance.

    - #### withKernelId

          public InstanceAttribute withKernelId(java.lang.String kernelId)

      The kernel ID of the associated instance.

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

      パラメータ:
        `kernelId` - The kernel ID of the associated instance.

    - #### getRamdiskId

          public java.lang.String getRamdiskId()

      The ramdisk ID of the associated instance.
      戻り値:
        The ramdisk ID of the associated instance.

    - #### setRamdiskId

          public void setRamdiskId(java.lang.String ramdiskId)

      The ramdisk ID of the associated instance.
      パラメータ:
        `ramdiskId` - The ramdisk ID of the associated instance.

    - #### withRamdiskId

          public InstanceAttribute withRamdiskId(java.lang.String ramdiskId)

      The ramdisk ID of the associated instance.

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

      パラメータ:
        `ramdiskId` - The ramdisk ID of the associated instance.

    - #### getUserData

          public java.lang.String getUserData()

      MIME, Base64-encoded user data.
      戻り値:
        MIME, Base64-encoded user data.

    - #### setUserData

          public void setUserData(java.lang.String userData)

      MIME, Base64-encoded user data.
      パラメータ:
        `userData` - MIME, Base64-encoded user data.

    - #### withUserData

          public InstanceAttribute withUserData(java.lang.String userData)

      MIME, Base64-encoded user data.

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

      パラメータ:
        `userData` - MIME, Base64-encoded user data.

    - #### isDisableApiTermination

          public java.lang.Boolean isDisableApiTermination()

      Whether this instance can be terminated. You must modify this attribute before you can terminate any "locked" instances.
      戻り値:
        Whether this instance can be terminated. You must modify this attribute before you can terminate any "locked" instances.

    - #### setDisableApiTermination

          public void setDisableApiTermination(java.lang.Boolean disableApiTermination)

      Whether this instance can be terminated. You must modify this attribute before you can terminate any "locked" instances.
      パラメータ:
        `disableApiTermination` - Whether this instance can be terminated. You must modify this attribute before you can terminate any "locked" instances.

    - #### withDisableApiTermination

          public InstanceAttribute withDisableApiTermination(java.lang.Boolean disableApiTermination)

      Whether this instance can be terminated. You must modify this attribute before you can terminate any "locked" instances.

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

      パラメータ:
        `disableApiTermination` - Whether this instance can be terminated. You must modify this attribute before you can terminate any "locked" instances.

    - #### getDisableApiTermination

          public java.lang.Boolean getDisableApiTermination()

      Whether this instance can be terminated. You must modify this attribute before you can terminate any "locked" instances.
      戻り値:
        Whether this instance can be terminated. You must modify this attribute before you can terminate any "locked" instances.

    - #### getInstanceInitiatedShutdownBehavior

          public java.lang.String getInstanceInitiatedShutdownBehavior()

      Whether this instance's Amazon EBS volumes are deleted when the instance is shut down.
      戻り値:
        Whether this instance's Amazon EBS volumes are deleted when the instance is shut down.

    - #### setInstanceInitiatedShutdownBehavior

          public void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)

      Whether this instance's Amazon EBS volumes are deleted when the instance is shut down.
      パラメータ:
        `instanceInitiatedShutdownBehavior` - Whether this instance's Amazon EBS volumes are deleted when the instance is shut down.

    - #### withInstanceInitiatedShutdownBehavior

          public InstanceAttribute withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)

      Whether this instance's Amazon EBS volumes are deleted when the instance is shut down.

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

      パラメータ:
        `instanceInitiatedShutdownBehavior` - Whether this instance's Amazon EBS volumes are deleted when the instance is shut down.

    - #### 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 InstanceAttribute 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<InstanceBlockDeviceMapping> getBlockDeviceMappings()

      How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.
      戻り値:
        How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.

    - #### setBlockDeviceMappings

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

      How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.
      パラメータ:
        `blockDeviceMappings` - How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.

    - #### withBlockDeviceMappings

          public InstanceAttribute withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)

      How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.

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

      パラメータ:
        `blockDeviceMappings` - How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.

    - #### withBlockDeviceMappings

          public InstanceAttribute withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)

      How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.

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

      パラメータ:
        `blockDeviceMappings` - How block devices are exposed to this instance. Each mapping is made up of a virtualName and a deviceName.

    - #### getProductCodes

          public java.util.List<ProductCode> getProductCodes()

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

    - #### setProductCodes

          public void setProductCodes(java.util.Collection<ProductCode> productCodes)

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

    - #### withProductCodes

          public InstanceAttribute withProductCodes(ProductCode... productCodes)

      Sets the value of the ProductCodes property for this object.

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

      パラメータ:
        `productCodes` - The new value for the ProductCodes property for this object.

    - #### withProductCodes

          public InstanceAttribute withProductCodes(java.util.Collection<ProductCode> productCodes)

      Sets the value of the ProductCodes property for this object.

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

      パラメータ:
        `productCodes` - The new value for the ProductCodes property for this object.

    - #### isEbsOptimized

          public java.lang.Boolean isEbsOptimized()

      Boolean value
      戻り値:
        Boolean value

    - #### setEbsOptimized

          public void setEbsOptimized(java.lang.Boolean ebsOptimized)

      Boolean value
      パラメータ:
        `ebsOptimized` - Boolean value

    - #### withEbsOptimized

          public InstanceAttribute withEbsOptimized(java.lang.Boolean ebsOptimized)

      Boolean value

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

      パラメータ:
        `ebsOptimized` - Boolean value

    - #### getEbsOptimized

          public java.lang.Boolean getEbsOptimized()

      Boolean value
      戻り値:
        Boolean value

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