Interface AddPolicyGrantRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AddPolicyGrantRequest.Builder,AddPolicyGrantRequest>,DataZoneRequest.Builder,SdkBuilder<AddPolicyGrantRequest.Builder,AddPolicyGrantRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- AddPolicyGrantRequest
public static interface AddPolicyGrantRequest.Builder extends DataZoneRequest.Builder, SdkPojo, CopyableBuilder<AddPolicyGrantRequest.Builder,AddPolicyGrantRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AddPolicyGrantRequest.BuilderclientToken(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.AddPolicyGrantRequest.Builderdetail(PolicyGrantDetail detail)The details of the policy grant.AddPolicyGrantRequest.BuilderdomainIdentifier(String domainIdentifier)The ID of the domain where you want to add a policy grant.AddPolicyGrantRequest.BuilderentityIdentifier(String entityIdentifier)The ID of the entity (resource) to which you want to add a policy grant.AddPolicyGrantRequest.BuilderentityType(String entityType)The type of entity (resource) to which the grant is added.AddPolicyGrantRequest.BuilderentityType(TargetEntityType entityType)The type of entity (resource) to which the grant is added.AddPolicyGrantRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AddPolicyGrantRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)AddPolicyGrantRequest.BuilderpolicyType(String policyType)The type of policy that you want to grant.AddPolicyGrantRequest.BuilderpolicyType(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.AddPolicyGrantRequest.Builderprincipal(PolicyGrantPrincipal principal)The principal to whom the permissions are granted.-
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.services.datazone.model.DataZoneRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
clientToken
AddPolicyGrantRequest.Builder clientToken(String 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
AddPolicyGrantRequest.Builder detail(PolicyGrantDetail 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
default AddPolicyGrantRequest.Builder detail(Consumer<PolicyGrantDetail.Builder> 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:
detail(PolicyGrantDetail)
-
domainIdentifier
AddPolicyGrantRequest.Builder domainIdentifier(String 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
AddPolicyGrantRequest.Builder entityIdentifier(String 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
AddPolicyGrantRequest.Builder entityType(String 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:
TargetEntityType,TargetEntityType
-
entityType
AddPolicyGrantRequest.Builder entityType(TargetEntityType 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:
TargetEntityType,TargetEntityType
-
policyType
AddPolicyGrantRequest.Builder policyType(String 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:
ManagedPolicyType,ManagedPolicyType
-
policyType
AddPolicyGrantRequest.Builder policyType(ManagedPolicyType 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:
ManagedPolicyType,ManagedPolicyType
-
principal
AddPolicyGrantRequest.Builder principal(PolicyGrantPrincipal 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
default AddPolicyGrantRequest.Builder principal(Consumer<PolicyGrantPrincipal.Builder> 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:
principal(PolicyGrantPrincipal)
-
overrideConfiguration
AddPolicyGrantRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AddPolicyGrantRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-