Interface IsAuthorizedWithTokenResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<IsAuthorizedWithTokenResponse.Builder,IsAuthorizedWithTokenResponse>, SdkBuilder<IsAuthorizedWithTokenResponse.Builder,IsAuthorizedWithTokenResponse>, SdkPojo, SdkResponse.Builder, VerifiedPermissionsResponse.Builder
Enclosing class:
IsAuthorizedWithTokenResponse

  • Method Details

    • 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

      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:
    • determiningPolicies

      IsAuthorizedWithTokenResponse.Builder determiningPolicies(Collection<DeterminingPolicyItem> determiningPolicies)

      The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.

      Parameters:
      determiningPolicies - The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • determiningPolicies

      IsAuthorizedWithTokenResponse.Builder determiningPolicies(DeterminingPolicyItem... determiningPolicies)

      The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.

      Parameters:
      determiningPolicies - The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • determiningPolicies

      The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are 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<DeterminingPolicyItem>).

      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:
    • errors

      Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.

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

      Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.

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

      Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to errors(List<EvaluationErrorItem>).

      Parameters:
      errors - a consumer that will call methods on EvaluationErrorItem.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • principal

      The identifier of the principal in the ID or access token.

      Parameters:
      principal - The identifier of the principal in the ID or access token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The identifier of the principal in the ID or access token.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to principal(EntityIdentifier).

      Parameters:
      principal - a consumer that will call methods on EntityIdentifier.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: