com.amazonaws.services.ec2.model

## クラス ModifySnapshotAttributeRequest

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

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

      public class ModifySnapshotAttributeRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `ModifySnapshotAttribute operation`.

  Adds or remove permission settings for the specified snapshot.

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAttribute()` The name of the attribute being modified.
    `CreateVolumePermissionModifications` | `getCreateVolumePermission()` Returns the value of the CreateVolumePermission property for this object.
    `java.util.List<java.lang.String>` | `getGroupNames()` The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot.
    `java.lang.String` | `getOperationType()` The operation to perform on the attribute.
    `java.lang.String` | `getSnapshotId()` The ID of the EBS snapshot whose attributes are being modified.
    `java.util.List<java.lang.String>` | `getUserIds()` The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot.
    `int` | `hashCode()`
    `void` | `setAttribute(SnapshotAttributeName attribute)` The name of the attribute being modified.
    `void` | `setAttribute(java.lang.String attribute)` The name of the attribute being modified.
    `void` | `setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)` Sets the value of the CreateVolumePermission property for this object.
    `void` | `setGroupNames(java.util.Collection<java.lang.String> groupNames)` The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot.
    `void` | `setOperationType(java.lang.String operationType)` The operation to perform on the attribute.
    `void` | `setSnapshotId(java.lang.String snapshotId)` The ID of the EBS snapshot whose attributes are being modified.
    `void` | `setUserIds(java.util.Collection<java.lang.String> userIds)` The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `ModifySnapshotAttributeRequest` | `withAttribute(SnapshotAttributeName attribute)` The name of the attribute being modified.
    `ModifySnapshotAttributeRequest` | `withAttribute(java.lang.String attribute)` The name of the attribute being modified.
    `ModifySnapshotAttributeRequest` | `withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)` Sets the value of the CreateVolumePermission property for this object.
    `ModifySnapshotAttributeRequest` | `withGroupNames(java.util.Collection<java.lang.String> groupNames)` The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot.
    `ModifySnapshotAttributeRequest` | `withGroupNames(java.lang.String... groupNames)` The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot.
    `ModifySnapshotAttributeRequest` | `withOperationType(java.lang.String operationType)` The operation to perform on the attribute.
    `ModifySnapshotAttributeRequest` | `withSnapshotId(java.lang.String snapshotId)` The ID of the EBS snapshot whose attributes are being modified.
    `ModifySnapshotAttributeRequest` | `withUserIds(java.util.Collection<java.lang.String> userIds)` The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot.
    `ModifySnapshotAttributeRequest` | `withUserIds(java.lang.String... userIds)` The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### ModifySnapshotAttributeRequest

          public ModifySnapshotAttributeRequest()

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

    - #### ModifySnapshotAttributeRequest

          public ModifySnapshotAttributeRequest(java.lang.String snapshotId,
                                        java.lang.String attribute,
                                        java.lang.String operationType)

      Constructs a new ModifySnapshotAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `snapshotId` - The ID of the EBS snapshot whose attributes are being modified.
        `attribute` - The name of the attribute being modified.

        Available attribute names: `createVolumePermission`

        `operationType` - The operation to perform on the attribute.

        Available operation names: `add`, `remove`

    - #### ModifySnapshotAttributeRequest

          public ModifySnapshotAttributeRequest(java.lang.String snapshotId,
                                        SnapshotAttributeName attribute,
                                        java.lang.String operationType)

      Constructs a new ModifySnapshotAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `snapshotId` - The ID of the EBS snapshot whose attributes are being modified.
        `attribute` - The name of the attribute being modified.

        Available attribute names: `createVolumePermission`

        `operationType` - The operation to perform on the attribute.

        Available operation names: `add`, `remove`

  - ### メソッドの詳細

    - #### getSnapshotId

          public java.lang.String getSnapshotId()

      The ID of the EBS snapshot whose attributes are being modified.
      戻り値:
        The ID of the EBS snapshot whose attributes are being modified.

    - #### setSnapshotId

          public void setSnapshotId(java.lang.String snapshotId)

      The ID of the EBS snapshot whose attributes are being modified.
      パラメータ:
        `snapshotId` - The ID of the EBS snapshot whose attributes are being modified.

    - #### withSnapshotId

          public ModifySnapshotAttributeRequest withSnapshotId(java.lang.String snapshotId)

      The ID of the EBS snapshot whose attributes are being modified.

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

      パラメータ:
        `snapshotId` - The ID of the EBS snapshot whose attributes are being modified.

    - #### getAttribute

          public java.lang.String getAttribute()

      The name of the attribute being modified.

      Available attribute names: `createVolumePermission`

      Constraints:
      Allowed Values: productCodes, createVolumePermission

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

        Available attribute names: `createVolumePermission`

      関連項目:
        `SnapshotAttributeName`

    - #### setAttribute

          public void setAttribute(java.lang.String attribute)

      The name of the attribute being modified.

      Available attribute names: `createVolumePermission`

      Constraints:
      Allowed Values: productCodes, createVolumePermission

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

        Available attribute names: `createVolumePermission`

      関連項目:
        `SnapshotAttributeName`

    - #### withAttribute

          public ModifySnapshotAttributeRequest withAttribute(java.lang.String attribute)

      The name of the attribute being modified.

      Available attribute names: `createVolumePermission`

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

      Constraints:
      Allowed Values: productCodes, createVolumePermission

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

        Available attribute names: `createVolumePermission`

      関連項目:
        `SnapshotAttributeName`

    - #### setAttribute

          public void setAttribute(SnapshotAttributeName attribute)

      The name of the attribute being modified.

      Available attribute names: `createVolumePermission`

      Constraints:
      Allowed Values: productCodes, createVolumePermission

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

        Available attribute names: `createVolumePermission`

      関連項目:
        `SnapshotAttributeName`

    - #### withAttribute

          public ModifySnapshotAttributeRequest withAttribute(SnapshotAttributeName attribute)

      The name of the attribute being modified.

      Available attribute names: `createVolumePermission`

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

      Constraints:
      Allowed Values: productCodes, createVolumePermission

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

        Available attribute names: `createVolumePermission`

      関連項目:
        `SnapshotAttributeName`

    - #### getOperationType

          public java.lang.String getOperationType()

      The operation to perform on the attribute.

      Available operation names: `add`, `remove`

      戻り値:
        The operation to perform on the attribute.

        Available operation names: `add`, `remove`

    - #### setOperationType

          public void setOperationType(java.lang.String operationType)

      The operation to perform on the attribute.

      Available operation names: `add`, `remove`

      パラメータ:
        `operationType` - The operation to perform on the attribute.

        Available operation names: `add`, `remove`

    - #### withOperationType

          public ModifySnapshotAttributeRequest withOperationType(java.lang.String operationType)

      The operation to perform on the attribute.

      Available operation names: `add`, `remove`

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

      パラメータ:
        `operationType` - The operation to perform on the attribute.

        Available operation names: `add`, `remove`

    - #### getUserIds

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

      The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.
      戻り値:
        The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

    - #### setUserIds

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

      The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.
      パラメータ:
        `userIds` - The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

    - #### withUserIds

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

      The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

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

      パラメータ:
        `userIds` - The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

    - #### withUserIds

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

      The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

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

      パラメータ:
        `userIds` - The AWS user IDs to add to or remove from the list of users that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

    - #### getGroupNames

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

      The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.
      戻り値:
        The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

    - #### setGroupNames

          public void setGroupNames(java.util.Collection<java.lang.String> groupNames)

      The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.
      パラメータ:
        `groupNames` - The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

    - #### withGroupNames

          public ModifySnapshotAttributeRequest withGroupNames(java.lang.String... groupNames)

      The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

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

      パラメータ:
        `groupNames` - The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

    - #### withGroupNames

          public ModifySnapshotAttributeRequest withGroupNames(java.util.Collection<java.lang.String> groupNames)

      The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

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

      パラメータ:
        `groupNames` - The AWS group names to add to or remove from the list of groups that have permission to create EBS volumes from the specified snapshot. Currently supports "all". Only valid when the `createVolumePermission` attribute is being modified.

    - #### getCreateVolumePermission

          public CreateVolumePermissionModifications getCreateVolumePermission()

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

    - #### setCreateVolumePermission

          public void setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)

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

    - #### withCreateVolumePermission

          public ModifySnapshotAttributeRequest withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)

      Sets the value of the CreateVolumePermission property for this object.

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

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