Interface AuthResult.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AuthResult.Builder,AuthResult>, SdkBuilder<AuthResult.Builder,AuthResult>, SdkPojo
Enclosing class:
AuthResult

public static interface AuthResult.Builder extends SdkPojo, CopyableBuilder<AuthResult.Builder,AuthResult>
  • Method Details

    • authInfo

      AuthResult.Builder authInfo(AuthInfo authInfo)

      Authorization information.

      Parameters:
      authInfo - Authorization information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authInfo

      default AuthResult.Builder authInfo(Consumer<AuthInfo.Builder> authInfo)

      Authorization information.

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

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

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

      AuthResult.Builder allowed(Allowed allowed)

      The policies and statements that allowed the specified action.

      Parameters:
      allowed - The policies and statements that allowed the specified action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowed

      default AuthResult.Builder allowed(Consumer<Allowed.Builder> allowed)

      The policies and statements that allowed the specified action.

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

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

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

      AuthResult.Builder denied(Denied denied)

      The policies and statements that denied the specified action.

      Parameters:
      denied - The policies and statements that denied the specified action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • denied

      default AuthResult.Builder denied(Consumer<Denied.Builder> denied)

      The policies and statements that denied the specified action.

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

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

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

      AuthResult.Builder authDecision(String authDecision)

      The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.

      Parameters:
      authDecision - The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • authDecision

      AuthResult.Builder authDecision(AuthDecision authDecision)

      The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.

      Parameters:
      authDecision - The final authorization decision of this scenario. Multiple statements are taken into account when determining the authorization decision. An explicit deny statement can override multiple allow statements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • missingContextValues

      AuthResult.Builder missingContextValues(Collection<String> missingContextValues)

      Contains any missing context values found while evaluating policy.

      Parameters:
      missingContextValues - Contains any missing context values found while evaluating policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • missingContextValues

      AuthResult.Builder missingContextValues(String... missingContextValues)

      Contains any missing context values found while evaluating policy.

      Parameters:
      missingContextValues - Contains any missing context values found while evaluating policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.