Interface CreateAccessGrantRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchOmniRequest.Builder,CopyableBuilder<CreateAccessGrantRequest.Builder,,CreateAccessGrantRequest> SdkBuilder<CreateAccessGrantRequest.Builder,,CreateAccessGrantRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAccessGrantRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Idempotency token for safe retries.The ID of the domain that contains the space.A name that identifies the access grant.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.permission(String permission) The permission to grant.permission(AccessGrantPermission permission) The permission to grant.default CreateAccessGrantRequest.Builderprincipal(Consumer<AccessGrantPrincipal.Builder> principal) The principal receiving the grant.principal(AccessGrantPrincipal principal) The principal receiving the grant.scopedActions(Collection<ScopedActions> scopedActions) Groups of actions to allow, each with the resource scopes and conditions that limit those actions.scopedActions(Consumer<ScopedActions.Builder>... scopedActions) Groups of actions to allow, each with the resource scopes and conditions that limit those actions.scopedActions(ScopedActions... scopedActions) Groups of actions to allow, each with the resource scopes and conditions that limit those actions.The ID of the space to scope the grant to.The tags to associate with the access grant.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
domainId
The ID of the domain that contains the space.
- Parameters:
domainId- The ID of the domain that contains the space.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spaceId
The ID of the space to scope the grant to.
- Parameters:
spaceId- The ID of the space to scope the grant to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A name that identifies the access grant.
- Parameters:
name- A name that identifies the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The principal receiving the grant.
- Parameters:
principal- The principal receiving the grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
default CreateAccessGrantRequest.Builder principal(Consumer<AccessGrantPrincipal.Builder> principal) The principal receiving the grant.
This is a convenience method that creates an instance of theAccessGrantPrincipal.Builderavoiding the need to create one manually viaAccessGrantPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipal(AccessGrantPrincipal).- Parameters:
principal- a consumer that will call methods onAccessGrantPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permission
The permission to grant. Exactly one permission is granted per request.
- Parameters:
permission- The permission to grant. Exactly one permission is granted per request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permission
The permission to grant. Exactly one permission is granted per request.
- Parameters:
permission- The permission to grant. Exactly one permission is granted per request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scopedActions
Groups of actions to allow, each with the resource scopes and conditions that limit those actions.
- Parameters:
scopedActions- Groups of actions to allow, each with the resource scopes and conditions that limit those actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopedActions
Groups of actions to allow, each with the resource scopes and conditions that limit those actions.
- Parameters:
scopedActions- Groups of actions to allow, each with the resource scopes and conditions that limit those actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopedActions
Groups of actions to allow, each with the resource scopes and conditions that limit those actions.
This is a convenience method that creates an instance of theScopedActions.Builderavoiding the need to create one manually viaScopedActions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscopedActions(List<ScopedActions>).- Parameters:
scopedActions- a consumer that will call methods onScopedActions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to associate with the access grant.
- Parameters:
tags- The tags to associate with the access grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Idempotency token for safe retries. Repeated requests with the same token return the original result instead of creating a duplicate.
- Parameters:
clientToken- Idempotency token for safe retries. Repeated requests with the same token return the original result instead of creating a duplicate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAccessGrantRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAccessGrantRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-