com.amazonaws.services.ec2.model

## クラス ModifyInstanceAttributeRequest

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

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

      public class ModifyInstanceAttributeRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `ModifyInstanceAttribute operation`.

  Modifies an attribute of an instance.

  関連項目:
    `AmazonEC2.modifyInstanceAttribute(ModifyInstanceAttributeRequest)`, 直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAttribute()` The name of the attribute being modified.
    `java.util.List<InstanceBlockDeviceMappingSpecification>` | `getBlockDeviceMappings()` The new block device mappings for the instance whose attributes are being modified.
    `java.lang.Boolean` | `getDisableApiTermination()` Boolean value
    `java.lang.Boolean` | `getEbsOptimized()` Boolean value
    `java.util.List<java.lang.String>` | `getGroups()` Returns the value of the Groups property for this object.
    `java.lang.String` | `getInstanceId()` The ID of the instance whose attribute is being modified.
    `java.lang.String` | `getInstanceInitiatedShutdownBehavior()` String value
    `java.lang.String` | `getInstanceType()` String value
    `java.lang.String` | `getKernel()` String value
    `java.lang.String` | `getRamdisk()` String value
    `java.lang.Boolean` | `getSourceDestCheck()` Boolean value
    `java.lang.String` | `getUserData()` String value
    `java.lang.String` | `getValue()` The new value of the instance attribute being modified.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isDisableApiTermination()` Boolean value
    `java.lang.Boolean` | `isEbsOptimized()` Boolean value
    `java.lang.Boolean` | `isSourceDestCheck()` Boolean value
    `void` | `setAttribute(InstanceAttributeName attribute)` The name of the attribute being modified.
    `void` | `setAttribute(java.lang.String attribute)` The name of the attribute being modified.
    `void` | `setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)` The new block device mappings for the instance whose attributes are being modified.
    `void` | `setDisableApiTermination(java.lang.Boolean disableApiTermination)` Boolean value
    `void` | `setEbsOptimized(java.lang.Boolean ebsOptimized)` Boolean value
    `void` | `setGroups(java.util.Collection<java.lang.String> groups)` Sets the value of the Groups property for this object.
    `void` | `setInstanceId(java.lang.String instanceId)` The ID of the instance whose attribute is being modified.
    `void` | `setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)` String value
    `void` | `setInstanceType(java.lang.String instanceType)` String value
    `void` | `setKernel(java.lang.String kernel)` String value
    `void` | `setRamdisk(java.lang.String ramdisk)` String value
    `void` | `setSourceDestCheck(java.lang.Boolean sourceDestCheck)` Boolean value
    `void` | `setUserData(java.lang.String userData)` String value
    `void` | `setValue(java.lang.String value)` The new value of the instance attribute being modified.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `ModifyInstanceAttributeRequest` | `withAttribute(InstanceAttributeName attribute)` The name of the attribute being modified.
    `ModifyInstanceAttributeRequest` | `withAttribute(java.lang.String attribute)` The name of the attribute being modified.
    `ModifyInstanceAttributeRequest` | `withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)` The new block device mappings for the instance whose attributes are being modified.
    `ModifyInstanceAttributeRequest` | `withBlockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings)` The new block device mappings for the instance whose attributes are being modified.
    `ModifyInstanceAttributeRequest` | `withDisableApiTermination(java.lang.Boolean disableApiTermination)` Boolean value Returns a reference to this object so that method calls can be chained together.
    `ModifyInstanceAttributeRequest` | `withEbsOptimized(java.lang.Boolean ebsOptimized)` Boolean value Returns a reference to this object so that method calls can be chained together.
    `ModifyInstanceAttributeRequest` | `withGroups(java.util.Collection<java.lang.String> groups)` Sets the value of the Groups property for this object.
    `ModifyInstanceAttributeRequest` | `withGroups(java.lang.String... groups)` Sets the value of the Groups property for this object.
    `ModifyInstanceAttributeRequest` | `withInstanceId(java.lang.String instanceId)` The ID of the instance whose attribute is being modified.
    `ModifyInstanceAttributeRequest` | `withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)` String value Returns a reference to this object so that method calls can be chained together.
    `ModifyInstanceAttributeRequest` | `withInstanceType(java.lang.String instanceType)` String value Returns a reference to this object so that method calls can be chained together.
    `ModifyInstanceAttributeRequest` | `withKernel(java.lang.String kernel)` String value Returns a reference to this object so that method calls can be chained together.
    `ModifyInstanceAttributeRequest` | `withRamdisk(java.lang.String ramdisk)` String value Returns a reference to this object so that method calls can be chained together.
    `ModifyInstanceAttributeRequest` | `withSourceDestCheck(java.lang.Boolean sourceDestCheck)` Boolean value Returns a reference to this object so that method calls can be chained together.
    `ModifyInstanceAttributeRequest` | `withUserData(java.lang.String userData)` String value Returns a reference to this object so that method calls can be chained together.
    `ModifyInstanceAttributeRequest` | `withValue(java.lang.String value)` The new value of the instance attribute being modified.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### ModifyInstanceAttributeRequest

          public ModifyInstanceAttributeRequest()

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

    - #### ModifyInstanceAttributeRequest

          public ModifyInstanceAttributeRequest(java.lang.String instanceId,
                                        java.lang.String attribute)

      Constructs a new ModifyInstanceAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `instanceId` - The ID of the instance whose attribute is being modified.
        `attribute` - The name of the attribute being modified.

        Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

    - #### ModifyInstanceAttributeRequest

          public ModifyInstanceAttributeRequest(java.lang.String instanceId,
                                        InstanceAttributeName attribute)

      Constructs a new ModifyInstanceAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `instanceId` - The ID of the instance whose attribute is being modified.
        `attribute` - The name of the attribute being modified.

        Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

  - ### メソッドの詳細

    - #### getInstanceId

          public java.lang.String getInstanceId()

      The ID of the instance whose attribute is being modified.
      戻り値:
        The ID of the instance whose attribute is being modified.

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

      The ID of the instance whose attribute is being modified.
      パラメータ:
        `instanceId` - The ID of the instance whose attribute is being modified.

    - #### withInstanceId

          public ModifyInstanceAttributeRequest withInstanceId(java.lang.String instanceId)

      The ID of the instance whose attribute is being modified.

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

      パラメータ:
        `instanceId` - The ID of the instance whose attribute is being modified.

    - #### getAttribute

          public java.lang.String getAttribute()

      The name of the attribute being modified.

      Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

      Constraints:
      Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

      戻り値:
        The name of the attribute being modified.

        Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

      関連項目:
        `InstanceAttributeName`

    - #### setAttribute

          public void setAttribute(java.lang.String attribute)

      The name of the attribute being modified.

      Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

      Constraints:
      Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

      パラメータ:
        `attribute` - The name of the attribute being modified.

        Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

      関連項目:
        `InstanceAttributeName`

    - #### withAttribute

          public ModifyInstanceAttributeRequest withAttribute(java.lang.String attribute)

      The name of the attribute being modified.

      Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

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

      Constraints:
      Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

      パラメータ:
        `attribute` - The name of the attribute being modified.

        Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

      関連項目:
        `InstanceAttributeName`

    - #### setAttribute

          public void setAttribute(InstanceAttributeName attribute)

      The name of the attribute being modified.

      Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

      Constraints:
      Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

      パラメータ:
        `attribute` - The name of the attribute being modified.

        Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

      関連項目:
        `InstanceAttributeName`

    - #### withAttribute

          public ModifyInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)

      The name of the attribute being modified.

      Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

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

      Constraints:
      Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

      パラメータ:
        `attribute` - The name of the attribute being modified.

        Available attribute names: `instanceType`, `kernel`, `ramdisk`, `userData`, `disableApiTermination`, `instanceInitiatedShutdownBehavior`, `rootDevice`, `blockDeviceMapping`

      関連項目:
        `InstanceAttributeName`

    - #### getValue

          public java.lang.String getValue()

      The new value of the instance attribute being modified.

      Only valid when `kernel`, `ramdisk`, `userData`, `disableApiTermination` or `instanceInitiateShutdownBehavior` is specified as the attribute being modified.

      戻り値:
        The new value of the instance attribute being modified.

        Only valid when `kernel`, `ramdisk`, `userData`, `disableApiTermination` or `instanceInitiateShutdownBehavior` is specified as the attribute being modified.

    - #### setValue

          public void setValue(java.lang.String value)

      The new value of the instance attribute being modified.

      Only valid when `kernel`, `ramdisk`, `userData`, `disableApiTermination` or `instanceInitiateShutdownBehavior` is specified as the attribute being modified.

      パラメータ:
        `value` - The new value of the instance attribute being modified.

        Only valid when `kernel`, `ramdisk`, `userData`, `disableApiTermination` or `instanceInitiateShutdownBehavior` is specified as the attribute being modified.

    - #### withValue

          public ModifyInstanceAttributeRequest withValue(java.lang.String value)

      The new value of the instance attribute being modified.

      Only valid when `kernel`, `ramdisk`, `userData`, `disableApiTermination` or `instanceInitiateShutdownBehavior` is specified as the attribute being modified.

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

      パラメータ:
        `value` - The new value of the instance attribute being modified.

        Only valid when `kernel`, `ramdisk`, `userData`, `disableApiTermination` or `instanceInitiateShutdownBehavior` is specified as the attribute being modified.

    - #### getBlockDeviceMappings

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

      The new block device mappings for the instance whose attributes are being modified.

      Only valid when blockDeviceMapping is specified as the attribute being modified.

      戻り値:
        The new block device mappings for the instance whose attributes are being modified.

        Only valid when blockDeviceMapping is specified as the attribute being modified.

    - #### setBlockDeviceMappings

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

      The new block device mappings for the instance whose attributes are being modified.

      Only valid when blockDeviceMapping is specified as the attribute being modified.

      パラメータ:
        `blockDeviceMappings` - The new block device mappings for the instance whose attributes are being modified.

        Only valid when blockDeviceMapping is specified as the attribute being modified.

    - #### withBlockDeviceMappings

          public ModifyInstanceAttributeRequest withBlockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings)

      The new block device mappings for the instance whose attributes are being modified.

      Only valid when blockDeviceMapping is specified as the attribute being modified.

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

      パラメータ:
        `blockDeviceMappings` - The new block device mappings for the instance whose attributes are being modified.

        Only valid when blockDeviceMapping is specified as the attribute being modified.

    - #### withBlockDeviceMappings

          public ModifyInstanceAttributeRequest withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)

      The new block device mappings for the instance whose attributes are being modified.

      Only valid when blockDeviceMapping is specified as the attribute being modified.

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

      パラメータ:
        `blockDeviceMappings` - The new block device mappings for the instance whose attributes are being modified.

        Only valid when blockDeviceMapping is specified as the attribute being modified.

    - #### isSourceDestCheck

          public java.lang.Boolean isSourceDestCheck()

      Boolean value
      戻り値:
        Boolean value

    - #### setSourceDestCheck

          public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)

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

    - #### withSourceDestCheck

          public ModifyInstanceAttributeRequest withSourceDestCheck(java.lang.Boolean sourceDestCheck)

      Boolean value

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

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

    - #### getSourceDestCheck

          public java.lang.Boolean getSourceDestCheck()

      Boolean value
      戻り値:
        Boolean value

    - #### isDisableApiTermination

          public java.lang.Boolean isDisableApiTermination()

      Boolean value
      戻り値:
        Boolean value

    - #### setDisableApiTermination

          public void setDisableApiTermination(java.lang.Boolean disableApiTermination)

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

    - #### withDisableApiTermination

          public ModifyInstanceAttributeRequest withDisableApiTermination(java.lang.Boolean disableApiTermination)

      Boolean value

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

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

    - #### getDisableApiTermination

          public java.lang.Boolean getDisableApiTermination()

      Boolean value
      戻り値:
        Boolean value

    - #### getInstanceType

          public java.lang.String getInstanceType()

      String value
      戻り値:
        String value

    - #### setInstanceType

          public void setInstanceType(java.lang.String instanceType)

      String value
      パラメータ:
        `instanceType` - String value

    - #### withInstanceType

          public ModifyInstanceAttributeRequest withInstanceType(java.lang.String instanceType)

      String value

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

      パラメータ:
        `instanceType` - String value

    - #### getKernel

          public java.lang.String getKernel()

      String value
      戻り値:
        String value

    - #### setKernel

          public void setKernel(java.lang.String kernel)

      String value
      パラメータ:
        `kernel` - String value

    - #### withKernel

          public ModifyInstanceAttributeRequest withKernel(java.lang.String kernel)

      String value

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

      パラメータ:
        `kernel` - String value

    - #### getRamdisk

          public java.lang.String getRamdisk()

      String value
      戻り値:
        String value

    - #### setRamdisk

          public void setRamdisk(java.lang.String ramdisk)

      String value
      パラメータ:
        `ramdisk` - String value

    - #### withRamdisk

          public ModifyInstanceAttributeRequest withRamdisk(java.lang.String ramdisk)

      String value

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

      パラメータ:
        `ramdisk` - String value

    - #### getUserData

          public java.lang.String getUserData()

      String value
      戻り値:
        String value

    - #### setUserData

          public void setUserData(java.lang.String userData)

      String value
      パラメータ:
        `userData` - String value

    - #### withUserData

          public ModifyInstanceAttributeRequest withUserData(java.lang.String userData)

      String value

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

      パラメータ:
        `userData` - String value

    - #### getInstanceInitiatedShutdownBehavior

          public java.lang.String getInstanceInitiatedShutdownBehavior()

      String value
      戻り値:
        String value

    - #### setInstanceInitiatedShutdownBehavior

          public void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)

      String value
      パラメータ:
        `instanceInitiatedShutdownBehavior` - String value

    - #### withInstanceInitiatedShutdownBehavior

          public ModifyInstanceAttributeRequest withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)

      String value

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

      パラメータ:
        `instanceInitiatedShutdownBehavior` - String value

    - #### getGroups

          public java.util.List<java.lang.String> getGroups()

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

    - #### setGroups

          public void setGroups(java.util.Collection<java.lang.String> groups)

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

    - #### withGroups

          public ModifyInstanceAttributeRequest withGroups(java.lang.String... groups)

      Sets the value of the Groups property for this object.

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

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

    - #### withGroups

          public ModifyInstanceAttributeRequest withGroups(java.util.Collection<java.lang.String> groups)

      Sets the value of the Groups property for this object.

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

      パラメータ:
        `groups` - The new value for the Groups 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 ModifyInstanceAttributeRequest 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`