Interface AddPolicyStatementRequest.Builder

    • Method Detail

      • action

        AddPolicyStatementRequest.Builder action​(Collection<String> action)

        The action that the principal can use on the resource.

        For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

        Parameters:
        action - The action that the principal can use on the resource.

        For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

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

        AddPolicyStatementRequest.Builder action​(String... action)

        The action that the principal can use on the resource.

        For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

        Parameters:
        action - The action that the principal can use on the resource.

        For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

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

        AddPolicyStatementRequest.Builder arn​(String arn)

        The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.

        Parameters:
        arn - The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • condition

        AddPolicyStatementRequest.Builder condition​(String condition)

        A set of condition keys that you can use in key policies.

        Parameters:
        condition - A set of condition keys that you can use in key policies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • effect

        AddPolicyStatementRequest.Builder effect​(String effect)

        Determines whether the permissions specified in the policy are to be allowed (Allow) or denied ( Deny).

        Parameters:
        effect - Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StatementEffect, StatementEffect
      • effect

        AddPolicyStatementRequest.Builder effect​(StatementEffect effect)

        Determines whether the permissions specified in the policy are to be allowed (Allow) or denied ( Deny).

        Parameters:
        effect - Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StatementEffect, StatementEffect
      • principal

        AddPolicyStatementRequest.Builder principal​(Collection<String> principal)

        The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.

        Parameters:
        principal - The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • principal

        AddPolicyStatementRequest.Builder principal​(String... principal)

        The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.

        Parameters:
        principal - The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statementId

        AddPolicyStatementRequest.Builder statementId​(String statementId)

        A statement identifier that differentiates the statement from others in the same policy.

        Parameters:
        statementId - A statement identifier that differentiates the statement from others in the same policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.