Interface IsAuthorizedRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<IsAuthorizedRequest.Builder,IsAuthorizedRequest>,SdkBuilder<IsAuthorizedRequest.Builder,IsAuthorizedRequest>,SdkPojo,SdkRequest.Builder,VerifiedPermissionsRequest.Builder
- Enclosing class:
- IsAuthorizedRequest
public static interface IsAuthorizedRequest.Builder extends VerifiedPermissionsRequest.Builder, SdkPojo, CopyableBuilder<IsAuthorizedRequest.Builder,IsAuthorizedRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IsAuthorizedRequest.Builderaction(Consumer<ActionIdentifier.Builder> action)Specifies the requested action to be authorized.IsAuthorizedRequest.Builderaction(ActionIdentifier action)Specifies the requested action to be authorized.default IsAuthorizedRequest.Buildercontext(Consumer<ContextDefinition.Builder> context)Specifies additional context that can be used to make more granular authorization decisions.IsAuthorizedRequest.Buildercontext(ContextDefinition context)Specifies additional context that can be used to make more granular authorization decisions.default IsAuthorizedRequest.Builderentities(Consumer<EntitiesDefinition.Builder> entities)Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.IsAuthorizedRequest.Builderentities(EntitiesDefinition entities)Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.IsAuthorizedRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)IsAuthorizedRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)IsAuthorizedRequest.BuilderpolicyStoreId(String policyStoreId)Specifies the ID of the policy store.default IsAuthorizedRequest.Builderprincipal(Consumer<EntityIdentifier.Builder> principal)Specifies the principal for which the authorization decision is to be made.IsAuthorizedRequest.Builderprincipal(EntityIdentifier principal)Specifies the principal for which the authorization decision is to be made.default IsAuthorizedRequest.Builderresource(Consumer<EntityIdentifier.Builder> resource)Specifies the resource for which the authorization decision is to be made.IsAuthorizedRequest.Builderresource(EntityIdentifier resource)Specifies the resource for which the authorization decision is to be made.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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.services.verifiedpermissions.model.VerifiedPermissionsRequest.Builder
build
-
-
-
-
Method Detail
-
policyStoreId
IsAuthorizedRequest.Builder policyStoreId(String policyStoreId)
Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
- Parameters:
policyStoreId- Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
IsAuthorizedRequest.Builder principal(EntityIdentifier principal)
Specifies the principal for which the authorization decision is to be made.
- Parameters:
principal- Specifies the principal for which the authorization decision is to be made.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
default IsAuthorizedRequest.Builder principal(Consumer<EntityIdentifier.Builder> principal)
Specifies the principal for which the authorization decision is to be made.
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)
-
action
IsAuthorizedRequest.Builder action(ActionIdentifier action)
Specifies the requested action to be authorized. For example, is the principal authorized to perform this action on the resource?
- Parameters:
action- Specifies the requested action to be authorized. For example, is the principal authorized to perform this action on the resource?- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
default IsAuthorizedRequest.Builder action(Consumer<ActionIdentifier.Builder> action)
Specifies the requested action to be authorized. For example, is the principal authorized to perform this action on the resource?
This is a convenience method that creates an instance of theActionIdentifier.Builderavoiding the need to create one manually viaActionIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaction(ActionIdentifier).- Parameters:
action- a consumer that will call methods onActionIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
action(ActionIdentifier)
-
resource
IsAuthorizedRequest.Builder resource(EntityIdentifier resource)
Specifies the resource for which the authorization decision is to be made.
- Parameters:
resource- Specifies the resource for which the authorization decision is to be made.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
default IsAuthorizedRequest.Builder resource(Consumer<EntityIdentifier.Builder> resource)
Specifies the resource for which the authorization decision is to be made.
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 toresource(EntityIdentifier).- Parameters:
resource- 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:
resource(EntityIdentifier)
-
context
IsAuthorizedRequest.Builder context(ContextDefinition context)
Specifies additional context that can be used to make more granular authorization decisions.
- Parameters:
context- Specifies additional context that can be used to make more granular authorization decisions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
default IsAuthorizedRequest.Builder context(Consumer<ContextDefinition.Builder> context)
Specifies additional context that can be used to make more granular authorization decisions.
This is a convenience method that creates an instance of theContextDefinition.Builderavoiding the need to create one manually viaContextDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontext(ContextDefinition).- Parameters:
context- a consumer that will call methods onContextDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
context(ContextDefinition)
-
entities
IsAuthorizedRequest.Builder entities(EntitiesDefinition entities)
Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
- Parameters:
entities- Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
default IsAuthorizedRequest.Builder entities(Consumer<EntitiesDefinition.Builder> entities)
Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
This is a convenience method that creates an instance of theYou can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
EntitiesDefinition.Builderavoiding the need to create one manually viaEntitiesDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentities(EntitiesDefinition).- Parameters:
entities- a consumer that will call methods onEntitiesDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
entities(EntitiesDefinition)
-
overrideConfiguration
IsAuthorizedRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
IsAuthorizedRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-