Interface IsAuthorizedWithTokenResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<IsAuthorizedWithTokenResponse.Builder,IsAuthorizedWithTokenResponse>,SdkBuilder<IsAuthorizedWithTokenResponse.Builder,IsAuthorizedWithTokenResponse>,SdkPojo,SdkResponse.Builder,VerifiedPermissionsResponse.Builder
- Enclosing class:
- IsAuthorizedWithTokenResponse
public static interface IsAuthorizedWithTokenResponse.Builder extends VerifiedPermissionsResponse.Builder, SdkPojo, CopyableBuilder<IsAuthorizedWithTokenResponse.Builder,IsAuthorizedWithTokenResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IsAuthorizedWithTokenResponse.Builderdecision(String decision)An authorization decision that indicates if the authorization request should be allowed or denied.IsAuthorizedWithTokenResponse.Builderdecision(Decision decision)An authorization decision that indicates if the authorization request should be allowed or denied.IsAuthorizedWithTokenResponse.BuilderdeterminingPolicies(Collection<DeterminingPolicyItem> determiningPolicies)The list of determining policies used to make the authorization decision.IsAuthorizedWithTokenResponse.BuilderdeterminingPolicies(Consumer<DeterminingPolicyItem.Builder>... determiningPolicies)The list of determining policies used to make the authorization decision.IsAuthorizedWithTokenResponse.BuilderdeterminingPolicies(DeterminingPolicyItem... determiningPolicies)The list of determining policies used to make the authorization decision.IsAuthorizedWithTokenResponse.Buildererrors(Collection<EvaluationErrorItem> errors)Errors that occurred while making an authorization decision.IsAuthorizedWithTokenResponse.Buildererrors(Consumer<EvaluationErrorItem.Builder>... errors)Errors that occurred while making an authorization decision.IsAuthorizedWithTokenResponse.Buildererrors(EvaluationErrorItem... errors)Errors that occurred while making an authorization decision.default IsAuthorizedWithTokenResponse.Builderprincipal(Consumer<EntityIdentifier.Builder> principal)The identifier of the principal in the ID or access token.IsAuthorizedWithTokenResponse.Builderprincipal(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 Detail
-
decision
IsAuthorizedWithTokenResponse.Builder decision(String decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
-
decision
IsAuthorizedWithTokenResponse.Builder decision(Decision decision)
An authorization decision that indicates if the authorization request should be allowed or denied.
-
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.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
IsAuthorizedWithTokenResponse.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
IsAuthorizedWithTokenResponse.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
IsAuthorizedWithTokenResponse.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)
-
principal
IsAuthorizedWithTokenResponse.Builder principal(EntityIdentifier 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.Builderavoiding the need to create one manually viaEntityIdentifier.builder().When the
Consumercompletes,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:
principal(EntityIdentifier)
-
-