Interface AddPolicyGrantRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AddPolicyGrantRequest.Builder,,AddPolicyGrantRequest> DataZoneRequest.Builder,SdkBuilder<AddPolicyGrantRequest.Builder,,AddPolicyGrantRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AddPolicyGrantRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.default AddPolicyGrantRequest.Builderdetail(Consumer<PolicyGrantDetail.Builder> detail) The details of the policy grant.detail(PolicyGrantDetail detail) The details of the policy grant.domainIdentifier(String domainIdentifier) The ID of the domain where you want to add a policy grant.entityIdentifier(String entityIdentifier) The ID of the entity (resource) to which you want to add a policy grant.entityType(String entityType) The type of entity (resource) to which the grant is added.entityType(TargetEntityType entityType) The type of entity (resource) to which the grant is added.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyType(String policyType) The type of policy that you want to grant.policyType(ManagedPolicyType policyType) The type of policy that you want to grant.default AddPolicyGrantRequest.Builderprincipal(Consumer<PolicyGrantPrincipal.Builder> principal) The principal to whom the permissions are granted.principal(PolicyGrantPrincipal principal) The principal to whom the permissions are granted.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.datazone.model.DataZoneRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
- Parameters:
clientToken- A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detail
The details of the policy grant.
- Parameters:
detail- The details of the policy grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detail
The details of the policy grant.
This is a convenience method that creates an instance of thePolicyGrantDetail.Builderavoiding the need to create one manually viaPolicyGrantDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todetail(PolicyGrantDetail).- Parameters:
detail- a consumer that will call methods onPolicyGrantDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
domainIdentifier
The ID of the domain where you want to add a policy grant.
- Parameters:
domainIdentifier- The ID of the domain where you want to add a policy grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityIdentifier
The ID of the entity (resource) to which you want to add a policy grant.
- Parameters:
entityIdentifier- The ID of the entity (resource) to which you want to add a policy grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityType
The type of entity (resource) to which the grant is added.
- Parameters:
entityType- The type of entity (resource) to which the grant is added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
entityType
The type of entity (resource) to which the grant is added.
- Parameters:
entityType- The type of entity (resource) to which the grant is added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyType
The type of policy that you want to grant.
- Parameters:
policyType- The type of policy that you want to grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyType
The type of policy that you want to grant.
- Parameters:
policyType- The type of policy that you want to grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
principal
The principal to whom the permissions are granted.
- Parameters:
principal- The principal to whom the permissions are granted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The principal to whom the permissions are granted.
This is a convenience method that creates an instance of thePolicyGrantPrincipal.Builderavoiding the need to create one manually viaPolicyGrantPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipal(PolicyGrantPrincipal).- Parameters:
principal- a consumer that will call methods onPolicyGrantPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
AddPolicyGrantRequest.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
AddPolicyGrantRequest.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.
-