Interface AddPermissionRequest.Builder

    • Method Detail

      • topicArn

        AddPermissionRequest.Builder topicArn​(String topicArn)

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

        Parameters:
        topicArn - The ARN of the topic whose access control policy you wish to modify.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • label

        AddPermissionRequest.Builder label​(String label)

        A unique identifier for the new policy statement.

        Parameters:
        label - A unique identifier for the new policy statement.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • awsAccountIds

        AddPermissionRequest.Builder awsAccountIds​(Collection<String> awsAccountIds)

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

        Parameters:
        awsAccountIds - The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. The users must have Amazon Web Services account, but do not need to be signed up for this service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • awsAccountIds

        AddPermissionRequest.Builder awsAccountIds​(String... awsAccountIds)

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

        Parameters:
        awsAccountIds - The Amazon Web Services account IDs of the users (principals) who will be given access to the specified actions. The users must have Amazon Web Services account, but do not need to be signed up for this service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • actionNames

        AddPermissionRequest.Builder actionNames​(Collection<String> actionNames)

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

        Valid values: Any Amazon SNS action name, for example Publish.

        Parameters:
        actionNames - The action you want to allow for the specified principal(s).

        Valid values: Any Amazon SNS action name, for example Publish.

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

        AddPermissionRequest.Builder actionNames​(String... actionNames)

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

        Valid values: Any Amazon SNS action name, for example Publish.

        Parameters:
        actionNames - The action you want to allow for the specified principal(s).

        Valid values: Any Amazon SNS action name, for example Publish.

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