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 Summary
Modifier and TypeMethodDescriptionAn authorization decision that indicates if the authorization request should be allowed or denied.An authorization decision that indicates if the authorization request should be allowed or denied.determiningPolicies
(Collection<DeterminingPolicyItem> determiningPolicies) The list of determining policies used to make the authorization decision.determiningPolicies
(Consumer<DeterminingPolicyItem.Builder>... determiningPolicies) The list of determining policies used to make the authorization decision.determiningPolicies
(DeterminingPolicyItem... determiningPolicies) The list of determining policies used to make the authorization decision.errors
(Collection<EvaluationErrorItem> errors) Errors that occurred while making an authorization decision.errors
(Consumer<EvaluationErrorItem.Builder>... errors) Errors that occurred while making an authorization decision.errors
(EvaluationErrorItem... errors) Errors that occurred while making an authorization decision.principal
(Consumer<EntityIdentifier.Builder> principal) The identifier of the principal in the ID or access token.principal
(EntityIdentifier principal) The identifier of the principal in the ID or access token.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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.verifiedpermissions.model.VerifiedPermissionsResponse.Builder
build, responseMetadata, responseMetadata
-
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
IsAuthorizedWithTokenResponse.Builder determiningPolicies(Consumer<DeterminingPolicyItem.Builder>... 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 theDeterminingPolicyItem.Builder
avoiding the need to create one manually viaDeterminingPolicyItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeterminingPolicies(List<DeterminingPolicyItem>)
.- Parameters:
determiningPolicies
- a consumer that will call methods onDeterminingPolicyItem.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 theEvaluationErrorItem.Builder
avoiding the need to create one manually viaEvaluationErrorItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrors(List<EvaluationErrorItem>)
.- Parameters:
errors
- a consumer that will call methods onEvaluationErrorItem.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
default IsAuthorizedWithTokenResponse.Builder principal(Consumer<EntityIdentifier.Builder> principal) The identifier of the principal in the ID or access token.
This is a convenience method that creates an instance of theEntityIdentifier.Builder
avoiding the need to create one manually viaEntityIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipal(EntityIdentifier)
.- Parameters:
principal
- a consumer that will call methods onEntityIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-