Interface AuthResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AuthResult.Builder,
,AuthResult> SdkBuilder<AuthResult.Builder,
,AuthResult> SdkPojo
- Enclosing class:
AuthResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault AuthResult.Builder
allowed
(Consumer<Allowed.Builder> allowed) The policies and statements that allowed the specified action.The policies and statements that allowed the specified action.authDecision
(String authDecision) The final authorization decision of this scenario.authDecision
(AuthDecision authDecision) The final authorization decision of this scenario.default AuthResult.Builder
authInfo
(Consumer<AuthInfo.Builder> authInfo) Authorization information.Authorization information.default AuthResult.Builder
denied
(Consumer<Denied.Builder> denied) The policies and statements that denied the specified action.The policies and statements that denied the specified action.missingContextValues
(String... missingContextValues) Contains any missing context values found while evaluating policy.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 Details
-
authInfo
Authorization information.
- Parameters:
authInfo
- Authorization information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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:
-
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
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:
-
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
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:
-
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
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
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
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.
-