Interface BatchIsAuthorizedOutputItem.Builder

    • Method Detail

      • request

        BatchIsAuthorizedOutputItem.Builder request​(BatchIsAuthorizedInputItem request)

        The authorization request that initiated the decision.

        Parameters:
        request - The authorization request that initiated the decision.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • decision

        BatchIsAuthorizedOutputItem.Builder decision​(String decision)

        An authorization decision that indicates if the authorization request should be allowed or denied.

        Parameters:
        decision - An authorization decision that indicates if the authorization request should be allowed or denied.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Decision, Decision
      • decision

        BatchIsAuthorizedOutputItem.Builder decision​(Decision decision)

        An authorization decision that indicates if the authorization request should be allowed or denied.

        Parameters:
        decision - An authorization decision that indicates if the authorization request should be allowed or denied.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Decision, Decision
      • determiningPolicies

        BatchIsAuthorizedOutputItem.Builder determiningPolicies​(Collection<DeterminingPolicyItem> determiningPolicies)

        The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.

        Parameters:
        determiningPolicies - The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • determiningPolicies

        BatchIsAuthorizedOutputItem.Builder determiningPolicies​(DeterminingPolicyItem... determiningPolicies)

        The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.

        Parameters:
        determiningPolicies - The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • determiningPolicies

        BatchIsAuthorizedOutputItem.Builder determiningPolicies​(Consumer<DeterminingPolicyItem.Builder>... determiningPolicies)

        The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.

        This is a convenience method that creates an instance of the DeterminingPolicyItem.Builder avoiding the need to create one manually via DeterminingPolicyItem.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #determiningPolicies(List).

        Parameters:
        determiningPolicies - a consumer that will call methods on DeterminingPolicyItem.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #determiningPolicies(java.util.Collection)
      • errors

        BatchIsAuthorizedOutputItem.Builder errors​(Collection<EvaluationErrorItem> errors)

        Errors that occurred while making an authorization decision. For example, a policy might reference an entity or attribute that doesn't exist in the request.

        Parameters:
        errors - Errors that occurred while making an authorization decision. For example, a policy might reference an entity or attribute that doesn't exist in the request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errors

        BatchIsAuthorizedOutputItem.Builder errors​(EvaluationErrorItem... errors)

        Errors that occurred while making an authorization decision. For example, a policy might reference an entity or attribute that doesn't exist in the request.

        Parameters:
        errors - Errors that occurred while making an authorization decision. For example, a policy might reference an entity or attribute that doesn't exist in the request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.