com.amazonaws.services.ec2.model

## クラス ModifyImageAttributeRequest

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

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

      public class ModifyImageAttributeRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `ModifyImageAttribute operation`.

  The ModifyImageAttribute operation modifies an attribute of an AMI.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAttribute()` The name of the AMI attribute you want to modify.
    `java.lang.String` | `getDescription()` String value
    `java.lang.String` | `getImageId()` The ID of the AMI whose attribute you want to modify.
    `LaunchPermissionModifications` | `getLaunchPermission()` Returns the value of the LaunchPermission property for this object.
    `java.lang.String` | `getOperationType()` The type of operation being requested.
    `java.util.List<java.lang.String>` | `getProductCodes()` The list of product codes being added to or removed from the specified AMI.
    `java.util.List<java.lang.String>` | `getUserGroups()` The user group being added to or removed from the list of user groups with launch permissions for this AMI.
    `java.util.List<java.lang.String>` | `getUserIds()` The AWS user ID being added to or removed from the list of users with launch permissions for this AMI.
    `java.lang.String` | `getValue()` The value of the attribute being modified.
    `int` | `hashCode()`
    `void` | `setAttribute(java.lang.String attribute)` The name of the AMI attribute you want to modify.
    `void` | `setDescription(java.lang.String description)` String value
    `void` | `setImageId(java.lang.String imageId)` The ID of the AMI whose attribute you want to modify.
    `void` | `setLaunchPermission(LaunchPermissionModifications launchPermission)` Sets the value of the LaunchPermission property for this object.
    `void` | `setOperationType(java.lang.String operationType)` The type of operation being requested.
    `void` | `setProductCodes(java.util.Collection<java.lang.String> productCodes)` The list of product codes being added to or removed from the specified AMI.
    `void` | `setUserGroups(java.util.Collection<java.lang.String> userGroups)` The user group being added to or removed from the list of user groups with launch permissions for this AMI.
    `void` | `setUserIds(java.util.Collection<java.lang.String> userIds)` The AWS user ID being added to or removed from the list of users with launch permissions for this AMI.
    `void` | `setValue(java.lang.String value)` The value of the attribute being modified.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `ModifyImageAttributeRequest` | `withAttribute(java.lang.String attribute)` The name of the AMI attribute you want to modify.
    `ModifyImageAttributeRequest` | `withDescription(java.lang.String description)` String value Returns a reference to this object so that method calls can be chained together.
    `ModifyImageAttributeRequest` | `withImageId(java.lang.String imageId)` The ID of the AMI whose attribute you want to modify.
    `ModifyImageAttributeRequest` | `withLaunchPermission(LaunchPermissionModifications launchPermission)` Sets the value of the LaunchPermission property for this object.
    `ModifyImageAttributeRequest` | `withOperationType(java.lang.String operationType)` The type of operation being requested.
    `ModifyImageAttributeRequest` | `withProductCodes(java.util.Collection<java.lang.String> productCodes)` The list of product codes being added to or removed from the specified AMI.
    `ModifyImageAttributeRequest` | `withProductCodes(java.lang.String... productCodes)` The list of product codes being added to or removed from the specified AMI.
    `ModifyImageAttributeRequest` | `withUserGroups(java.util.Collection<java.lang.String> userGroups)` The user group being added to or removed from the list of user groups with launch permissions for this AMI.
    `ModifyImageAttributeRequest` | `withUserGroups(java.lang.String... userGroups)` The user group being added to or removed from the list of user groups with launch permissions for this AMI.
    `ModifyImageAttributeRequest` | `withUserIds(java.util.Collection<java.lang.String> userIds)` The AWS user ID being added to or removed from the list of users with launch permissions for this AMI.
    `ModifyImageAttributeRequest` | `withUserIds(java.lang.String... userIds)` The AWS user ID being added to or removed from the list of users with launch permissions for this AMI.
    `ModifyImageAttributeRequest` | `withValue(java.lang.String value)` The value of the attribute being modified.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### ModifyImageAttributeRequest

          public ModifyImageAttributeRequest()

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

    - #### ModifyImageAttributeRequest

          public ModifyImageAttributeRequest(java.lang.String imageId,
                                     java.lang.String attribute)

      Constructs a new ModifyImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `imageId` - The ID of the AMI whose attribute you want to modify.
        `attribute` - The name of the AMI attribute you want to modify.

        Available attributes: `launchPermission`, `productCodes`

  - ### メソッドの詳細

    - #### getImageId

          public java.lang.String getImageId()

      The ID of the AMI whose attribute you want to modify.
      戻り値:
        The ID of the AMI whose attribute you want to modify.

    - #### setImageId

          public void setImageId(java.lang.String imageId)

      The ID of the AMI whose attribute you want to modify.
      パラメータ:
        `imageId` - The ID of the AMI whose attribute you want to modify.

    - #### withImageId

          public ModifyImageAttributeRequest withImageId(java.lang.String imageId)

      The ID of the AMI whose attribute you want to modify.

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

      パラメータ:
        `imageId` - The ID of the AMI whose attribute you want to modify.

    - #### getAttribute

          public java.lang.String getAttribute()

      The name of the AMI attribute you want to modify.

      Available attributes: `launchPermission`, `productCodes`

      戻り値:
        The name of the AMI attribute you want to modify.

        Available attributes: `launchPermission`, `productCodes`

    - #### setAttribute

          public void setAttribute(java.lang.String attribute)

      The name of the AMI attribute you want to modify.

      Available attributes: `launchPermission`, `productCodes`

      パラメータ:
        `attribute` - The name of the AMI attribute you want to modify.

        Available attributes: `launchPermission`, `productCodes`

    - #### withAttribute

          public ModifyImageAttributeRequest withAttribute(java.lang.String attribute)

      The name of the AMI attribute you want to modify.

      Available attributes: `launchPermission`, `productCodes`

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

      パラメータ:
        `attribute` - The name of the AMI attribute you want to modify.

        Available attributes: `launchPermission`, `productCodes`

    - #### getOperationType

          public java.lang.String getOperationType()

      The type of operation being requested.

      Available operation types: `add`, `remove`

      戻り値:
        The type of operation being requested.

        Available operation types: `add`, `remove`

    - #### setOperationType

          public void setOperationType(java.lang.String operationType)

      The type of operation being requested.

      Available operation types: `add`, `remove`

      パラメータ:
        `operationType` - The type of operation being requested.

        Available operation types: `add`, `remove`

    - #### withOperationType

          public ModifyImageAttributeRequest withOperationType(java.lang.String operationType)

      The type of operation being requested.

      Available operation types: `add`, `remove`

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

      パラメータ:
        `operationType` - The type of operation being requested.

        Available operation types: `add`, `remove`

    - #### getUserIds

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

      The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.
      戻り値:
        The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

    - #### setUserIds

          public void setUserIds(java.util.Collection<java.lang.String> userIds)

      The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.
      パラメータ:
        `userIds` - The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

    - #### withUserIds

          public ModifyImageAttributeRequest withUserIds(java.lang.String... userIds)

      The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

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

      パラメータ:
        `userIds` - The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

    - #### withUserIds

          public ModifyImageAttributeRequest withUserIds(java.util.Collection<java.lang.String> userIds)

      The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

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

      パラメータ:
        `userIds` - The AWS user ID being added to or removed from the list of users with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

    - #### getUserGroups

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

      The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

      Available user groups: `all`

      戻り値:
        The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

        Available user groups: `all`

    - #### setUserGroups

          public void setUserGroups(java.util.Collection<java.lang.String> userGroups)

      The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

      Available user groups: `all`

      パラメータ:
        `userGroups` - The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

        Available user groups: `all`

    - #### withUserGroups

          public ModifyImageAttributeRequest withUserGroups(java.lang.String... userGroups)

      The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

      Available user groups: `all`

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

      パラメータ:
        `userGroups` - The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

        Available user groups: `all`

    - #### withUserGroups

          public ModifyImageAttributeRequest withUserGroups(java.util.Collection<java.lang.String> userGroups)

      The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

      Available user groups: `all`

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

      パラメータ:
        `userGroups` - The user group being added to or removed from the list of user groups with launch permissions for this AMI. Only valid when the launchPermission attribute is being modified.

        Available user groups: `all`

    - #### getProductCodes

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

      The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.
      戻り値:
        The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

    - #### setProductCodes

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

      The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.
      パラメータ:
        `productCodes` - The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

    - #### withProductCodes

          public ModifyImageAttributeRequest withProductCodes(java.lang.String... productCodes)

      The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

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

      パラメータ:
        `productCodes` - The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

    - #### withProductCodes

          public ModifyImageAttributeRequest withProductCodes(java.util.Collection<java.lang.String> productCodes)

      The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

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

      パラメータ:
        `productCodes` - The list of product codes being added to or removed from the specified AMI. Only valid when the productCodes attribute is being modified.

    - #### getValue

          public java.lang.String getValue()

      The value of the attribute being modified. Only valid when the description attribute is being modified.
      戻り値:
        The value of the attribute being modified. Only valid when the description attribute is being modified.

    - #### setValue

          public void setValue(java.lang.String value)

      The value of the attribute being modified. Only valid when the description attribute is being modified.
      パラメータ:
        `value` - The value of the attribute being modified. Only valid when the description attribute is being modified.

    - #### withValue

          public ModifyImageAttributeRequest withValue(java.lang.String value)

      The value of the attribute being modified. Only valid when the description attribute is being modified.

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

      パラメータ:
        `value` - The value of the attribute being modified. Only valid when the description attribute is being modified.

    - #### getLaunchPermission

          public LaunchPermissionModifications getLaunchPermission()

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

    - #### setLaunchPermission

          public void setLaunchPermission(LaunchPermissionModifications launchPermission)

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

    - #### withLaunchPermission

          public ModifyImageAttributeRequest withLaunchPermission(LaunchPermissionModifications launchPermission)

      Sets the value of the LaunchPermission property for this object.

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

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

    - #### getDescription

          public java.lang.String getDescription()

      String value
      戻り値:
        String value

    - #### setDescription

          public void setDescription(java.lang.String description)

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

    - #### withDescription

          public ModifyImageAttributeRequest withDescription(java.lang.String description)

      String value

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

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