Interface CreateDomainAccessGrantForOrganizationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchOmniRequest.Builder,CopyableBuilder<CreateDomainAccessGrantForOrganizationRequest.Builder,,CreateDomainAccessGrantForOrganizationRequest> SdkBuilder<CreateDomainAccessGrantForOrganizationRequest.Builder,,CreateDomainAccessGrantForOrganizationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateDomainAccessGrantForOrganizationRequest
@Mutable
@NotThreadSafe
public static interface CreateDomainAccessGrantForOrganizationRequest.Builder
extends CloudWatchOmniRequest.Builder, SdkPojo, CopyableBuilder<CreateDomainAccessGrantForOrganizationRequest.Builder,CreateDomainAccessGrantForOrganizationRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Idempotency token for safe retries.The ID of the organization domain to create the grant on.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(OrganizationGrantPermission permission) The permission to grant.The principal receiving the grant.principal(OrganizationAccessGrantPrincipal principal) The principal receiving the grant.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 organization domain to create the grant on.
- Parameters:
domainId- The ID of the organization domain to create the grant on.- 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
CreateDomainAccessGrantForOrganizationRequest.Builder principal(OrganizationAccessGrantPrincipal 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 CreateDomainAccessGrantForOrganizationRequest.Builder principal(Consumer<OrganizationAccessGrantPrincipal.Builder> principal) The principal receiving the grant.
This is a convenience method that creates an instance of theOrganizationAccessGrantPrincipal.Builderavoiding the need to create one manually viaOrganizationAccessGrantPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipal(OrganizationAccessGrantPrincipal).- Parameters:
principal- a consumer that will call methods onOrganizationAccessGrantPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permission
The permission to grant.
- Parameters:
permission- The permission to grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permission
CreateDomainAccessGrantForOrganizationRequest.Builder permission(OrganizationGrantPermission permission) The permission to grant.
- Parameters:
permission- The permission to grant.- 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
CreateDomainAccessGrantForOrganizationRequest.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
CreateDomainAccessGrantForOrganizationRequest.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.
-