Interface CreateAccessControlConfigurationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAccessControlConfigurationRequest.Builder,CreateAccessControlConfigurationRequest>,KendraRequest.Builder,SdkBuilder<CreateAccessControlConfigurationRequest.Builder,CreateAccessControlConfigurationRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateAccessControlConfigurationRequest
public static interface CreateAccessControlConfigurationRequest.Builder extends KendraRequest.Builder, SdkPojo, CopyableBuilder<CreateAccessControlConfigurationRequest.Builder,CreateAccessControlConfigurationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateAccessControlConfigurationRequest.BuilderaccessControlList(Collection<Principal> accessControlList)Information on principals (users and/or groups) and which documents they should have access to.CreateAccessControlConfigurationRequest.BuilderaccessControlList(Consumer<Principal.Builder>... accessControlList)Information on principals (users and/or groups) and which documents they should have access to.CreateAccessControlConfigurationRequest.BuilderaccessControlList(Principal... accessControlList)Information on principals (users and/or groups) and which documents they should have access to.CreateAccessControlConfigurationRequest.BuilderclientToken(String clientToken)A token that you provide to identify the request to create an access control configuration.CreateAccessControlConfigurationRequest.Builderdescription(String description)A description for the access control configuration.CreateAccessControlConfigurationRequest.BuilderhierarchicalAccessControlList(Collection<HierarchicalPrincipal> hierarchicalAccessControlList)The list of principal lists that define the hierarchy for which documents users should have access to.CreateAccessControlConfigurationRequest.BuilderhierarchicalAccessControlList(Consumer<HierarchicalPrincipal.Builder>... hierarchicalAccessControlList)The list of principal lists that define the hierarchy for which documents users should have access to.CreateAccessControlConfigurationRequest.BuilderhierarchicalAccessControlList(HierarchicalPrincipal... hierarchicalAccessControlList)The list of principal lists that define the hierarchy for which documents users should have access to.CreateAccessControlConfigurationRequest.BuilderindexId(String indexId)The identifier of the index to create an access control configuration for your documents.CreateAccessControlConfigurationRequest.Buildername(String name)A name for the access control configuration.CreateAccessControlConfigurationRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateAccessControlConfigurationRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
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.kendra.model.KendraRequest.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
-
indexId
CreateAccessControlConfigurationRequest.Builder indexId(String indexId)
The identifier of the index to create an access control configuration for your documents.
- Parameters:
indexId- The identifier of the index to create an access control configuration for your documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateAccessControlConfigurationRequest.Builder name(String name)
A name for the access control configuration.
- Parameters:
name- A name for the access control configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateAccessControlConfigurationRequest.Builder description(String description)
A description for the access control configuration.
- Parameters:
description- A description for the access control configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlList
CreateAccessControlConfigurationRequest.Builder accessControlList(Collection<Principal> accessControlList)
Information on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.
- Parameters:
accessControlList- Information on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlList
CreateAccessControlConfigurationRequest.Builder accessControlList(Principal... accessControlList)
Information on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.
- Parameters:
accessControlList- Information on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlList
CreateAccessControlConfigurationRequest.Builder accessControlList(Consumer<Principal.Builder>... accessControlList)
Information on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.
This is a convenience method that creates an instance of thePrincipal.Builderavoiding the need to create one manually viaPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#accessControlList(List.) - Parameters:
accessControlList- a consumer that will call methods onPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#accessControlList(java.util.Collection)
-
hierarchicalAccessControlList
CreateAccessControlConfigurationRequest.Builder hierarchicalAccessControlList(Collection<HierarchicalPrincipal> hierarchicalAccessControlList)
The list of principal lists that define the hierarchy for which documents users should have access to.
- Parameters:
hierarchicalAccessControlList- The list of principal lists that define the hierarchy for which documents users should have access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hierarchicalAccessControlList
CreateAccessControlConfigurationRequest.Builder hierarchicalAccessControlList(HierarchicalPrincipal... hierarchicalAccessControlList)
The list of principal lists that define the hierarchy for which documents users should have access to.
- Parameters:
hierarchicalAccessControlList- The list of principal lists that define the hierarchy for which documents users should have access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hierarchicalAccessControlList
CreateAccessControlConfigurationRequest.Builder hierarchicalAccessControlList(Consumer<HierarchicalPrincipal.Builder>... hierarchicalAccessControlList)
The list of principal lists that define the hierarchy for which documents users should have access to.
This is a convenience method that creates an instance of theHierarchicalPrincipal.Builderavoiding the need to create one manually viaHierarchicalPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#hierarchicalAccessControlList(List.) - Parameters:
hierarchicalAccessControlList- a consumer that will call methods onHierarchicalPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#hierarchicalAccessControlList(java.util.Collection)
-
clientToken
CreateAccessControlConfigurationRequest.Builder clientToken(String clientToken)
A token that you provide to identify the request to create an access control configuration. Multiple calls to the
CreateAccessControlConfigurationAPI with the same client token will create only one access control configuration.- Parameters:
clientToken- A token that you provide to identify the request to create an access control configuration. Multiple calls to theCreateAccessControlConfigurationAPI with the same client token will create only one access control configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAccessControlConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAccessControlConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-