com.amazonaws.services.sns.model

## クラス AddPermissionRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.sns.model.AddPermissionRequest

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

      public class AddPermissionRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `AddPermission operation`.

  The `AddPermission` action adds a statement to a topic's access control policy, granting access for the specified AWS accounts to the specified actions.

  関連項目:
    `AmazonSNS.addPermission(AddPermissionRequest)`, 直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `AddPermissionRequest()` Default constructor for a new AddPermissionRequest object.
    `AddPermissionRequest(java.lang.String topicArn, java.lang.String label, java.util.List<java.lang.String> aWSAccountIds, java.util.List<java.lang.String> actionNames)` Constructs a new AddPermissionRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<java.lang.String>` | `getActionNames()` The action you want to allow for the specified principal(s).
    `java.util.List<java.lang.String>` | `getAWSAccountIds()` The AWS account IDs of the users (principals) who will be given access to the specified actions.
    `java.lang.String` | `getLabel()` A unique identifier for the new policy statement.
    `java.lang.String` | `getTopicArn()` The ARN of the topic whose access control policy you wish to modify.
    `int` | `hashCode()`
    `void` | `setActionNames(java.util.Collection<java.lang.String> actionNames)` The action you want to allow for the specified principal(s).
    `void` | `setAWSAccountIds(java.util.Collection<java.lang.String> aWSAccountIds)` The AWS account IDs of the users (principals) who will be given access to the specified actions.
    `void` | `setLabel(java.lang.String label)` A unique identifier for the new policy statement.
    `void` | `setTopicArn(java.lang.String topicArn)` The ARN of the topic whose access control policy you wish to modify.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `AddPermissionRequest` | `withActionNames(java.util.Collection<java.lang.String> actionNames)` The action you want to allow for the specified principal(s).
    `AddPermissionRequest` | `withActionNames(java.lang.String... actionNames)` The action you want to allow for the specified principal(s).
    `AddPermissionRequest` | `withAWSAccountIds(java.util.Collection<java.lang.String> aWSAccountIds)` The AWS account IDs of the users (principals) who will be given access to the specified actions.
    `AddPermissionRequest` | `withAWSAccountIds(java.lang.String... aWSAccountIds)` The AWS account IDs of the users (principals) who will be given access to the specified actions.
    `AddPermissionRequest` | `withLabel(java.lang.String label)` A unique identifier for the new policy statement.
    `AddPermissionRequest` | `withTopicArn(java.lang.String topicArn)` The ARN of the topic whose access control policy you wish to modify.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### AddPermissionRequest

          public AddPermissionRequest()

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

    - #### AddPermissionRequest

          public AddPermissionRequest(java.lang.String topicArn,
                              java.lang.String label,
                              java.util.List<java.lang.String> aWSAccountIds,
                              java.util.List<java.lang.String> actionNames)

      Constructs a new AddPermissionRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `topicArn` - The ARN of the topic whose access control policy you wish to modify.
        `label` - A unique identifier for the new policy statement.
        `aWSAccountIds` - The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
        `actionNames` - The action you want to allow for the specified principal(s).

        Valid values: any Amazon SNS action name.

  - ### メソッドの詳細

    - #### getTopicArn

          public java.lang.String getTopicArn()

      The ARN of the topic whose access control policy you wish to modify.
      戻り値:
        The ARN of the topic whose access control policy you wish to modify.

    - #### setTopicArn

          public void setTopicArn(java.lang.String topicArn)

      The ARN of the topic whose access control policy you wish to modify.
      パラメータ:
        `topicArn` - The ARN of the topic whose access control policy you wish to modify.

    - #### withTopicArn

          public AddPermissionRequest withTopicArn(java.lang.String topicArn)

      The ARN of the topic whose access control policy you wish to modify.

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

      パラメータ:
        `topicArn` - The ARN of the topic whose access control policy you wish to modify.

    - #### getLabel

          public java.lang.String getLabel()

      A unique identifier for the new policy statement.
      戻り値:
        A unique identifier for the new policy statement.

    - #### setLabel

          public void setLabel(java.lang.String label)

      A unique identifier for the new policy statement.
      パラメータ:
        `label` - A unique identifier for the new policy statement.

    - #### withLabel

          public AddPermissionRequest withLabel(java.lang.String label)

      A unique identifier for the new policy statement.

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

      パラメータ:
        `label` - A unique identifier for the new policy statement.

    - #### getAWSAccountIds

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

      The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
      戻り値:
        The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.

    - #### setAWSAccountIds

          public void setAWSAccountIds(java.util.Collection<java.lang.String> aWSAccountIds)

      The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
      パラメータ:
        `aWSAccountIds` - The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.

    - #### withAWSAccountIds

          public AddPermissionRequest withAWSAccountIds(java.lang.String... aWSAccountIds)

      The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.

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

      パラメータ:
        `aWSAccountIds` - The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.

    - #### withAWSAccountIds

          public AddPermissionRequest withAWSAccountIds(java.util.Collection<java.lang.String> aWSAccountIds)

      The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.

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

      パラメータ:
        `aWSAccountIds` - The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.

    - #### getActionNames

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

      The action you want to allow for the specified principal(s).

      Valid values: any Amazon SNS action name.

      戻り値:
        The action you want to allow for the specified principal(s).

        Valid values: any Amazon SNS action name.

    - #### setActionNames

          public void setActionNames(java.util.Collection<java.lang.String> actionNames)

      The action you want to allow for the specified principal(s).

      Valid values: any Amazon SNS action name.

      パラメータ:
        `actionNames` - The action you want to allow for the specified principal(s).

        Valid values: any Amazon SNS action name.

    - #### withActionNames

          public AddPermissionRequest withActionNames(java.lang.String... actionNames)

      The action you want to allow for the specified principal(s).

      Valid values: any Amazon SNS action name.

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

      パラメータ:
        `actionNames` - The action you want to allow for the specified principal(s).

        Valid values: any Amazon SNS action name.

    - #### withActionNames

          public AddPermissionRequest withActionNames(java.util.Collection<java.lang.String> actionNames)

      The action you want to allow for the specified principal(s).

      Valid values: any Amazon SNS action name.

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

      パラメータ:
        `actionNames` - The action you want to allow for the specified principal(s).

        Valid values: any Amazon SNS action name.

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