Interface IsAuthorizedResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<IsAuthorizedResponse.Builder,IsAuthorizedResponse>,SdkBuilder<IsAuthorizedResponse.Builder,IsAuthorizedResponse>,SdkPojo,SdkResponse.Builder,VerifiedPermissionsResponse.Builder
- Enclosing class:
- IsAuthorizedResponse
public static interface IsAuthorizedResponse.Builder extends VerifiedPermissionsResponse.Builder, SdkPojo, CopyableBuilder<IsAuthorizedResponse.Builder,IsAuthorizedResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IsAuthorizedResponse.Builderdecision(String decision)An authorization decision that indicates if the authorization request should be allowed or denied.IsAuthorizedResponse.Builderdecision(Decision decision)An authorization decision that indicates if the authorization request should be allowed or denied.IsAuthorizedResponse.BuilderdeterminingPolicies(Collection<DeterminingPolicyItem> determiningPolicies)The list of determining policies used to make the authorization decision.IsAuthorizedResponse.BuilderdeterminingPolicies(Consumer<DeterminingPolicyItem.Builder>... determiningPolicies)The list of determining policies used to make the authorization decision.IsAuthorizedResponse.BuilderdeterminingPolicies(DeterminingPolicyItem... determiningPolicies)The list of determining policies used to make the authorization decision.IsAuthorizedResponse.Buildererrors(Collection<EvaluationErrorItem> 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.IsAuthorizedResponse.Buildererrors(Consumer<EvaluationErrorItem.Builder>... 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.IsAuthorizedResponse.Buildererrors(EvaluationErrorItem... 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.-
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 Detail
-
decision
IsAuthorizedResponse.Builder decision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
-
decision
IsAuthorizedResponse.Builder decision(Decision decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
-
determiningPolicies
IsAuthorizedResponse.Builder determiningPolicies(Collection<DeterminingPolicyItem> determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
- Parameters:
determiningPolicies- The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
determiningPolicies
IsAuthorizedResponse.Builder determiningPolicies(DeterminingPolicyItem... determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
- Parameters:
determiningPolicies- The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
determiningPolicies
IsAuthorizedResponse.Builder determiningPolicies(Consumer<DeterminingPolicyItem.Builder>... determiningPolicies)
The list of determining policies used to make the authorization decision. For example, if there are two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be no determining policies.
This is a convenience method that creates an instance of theDeterminingPolicyItem.Builderavoiding the need to create one manually viaDeterminingPolicyItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#determiningPolicies(List.) - 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:
#determiningPolicies(java.util.Collection)
-
errors
IsAuthorizedResponse.Builder errors(Collection<EvaluationErrorItem> 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
IsAuthorizedResponse.Builder errors(EvaluationErrorItem... 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
IsAuthorizedResponse.Builder errors(Consumer<EvaluationErrorItem.Builder>... 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.Builderavoiding the need to create one manually viaEvaluationErrorItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#errors(List.) - 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:
#errors(java.util.Collection)
-
-