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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AuthResult.Builder
allowed(Consumer<Allowed.Builder> allowed)
The policies and statements that allowed the specified action.AuthResult.Builder
allowed(Allowed allowed)
The policies and statements that allowed the specified action.AuthResult.Builder
authDecision(String authDecision)
The final authorization decision of this scenario.AuthResult.Builder
authDecision(AuthDecision authDecision)
The final authorization decision of this scenario.default AuthResult.Builder
authInfo(Consumer<AuthInfo.Builder> authInfo)
Authorization information.AuthResult.Builder
authInfo(AuthInfo authInfo)
Authorization information.default AuthResult.Builder
denied(Consumer<Denied.Builder> denied)
The policies and statements that denied the specified action.AuthResult.Builder
denied(Denied denied)
The policies and statements that denied the specified action.AuthResult.Builder
missingContextValues(String... missingContextValues)
Contains any missing context values found while evaluating policy.AuthResult.Builder
missingContextValues(Collection<String> missingContextValues)
Contains any missing context values found while evaluating policy.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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 theAuthInfo.Builder
avoiding the need to create one manually viaAuthInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauthInfo(AuthInfo)
.- Parameters:
authInfo
- a consumer that will call methods onAuthInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
authInfo(AuthInfo)
-
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 theAllowed.Builder
avoiding the need to create one manually viaAllowed.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toallowed(Allowed)
.- Parameters:
allowed
- a consumer that will call methods onAllowed.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
allowed(Allowed)
-
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 theDenied.Builder
avoiding the need to create one manually viaDenied.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todenied(Denied)
.- Parameters:
denied
- a consumer that will call methods onDenied.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
denied(Denied)
-
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
,AuthDecision
-
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:
AuthDecision
,AuthDecision
-
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.
-
-