Interface CreateKnowledgeBaseRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateKnowledgeBaseRequest.Builder,
,CreateKnowledgeBaseRequest> QConnectRequest.Builder
,SdkBuilder<CreateKnowledgeBaseRequest.Builder,
,CreateKnowledgeBaseRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateKnowledgeBaseRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.description
(String description) The description.knowledgeBaseType
(String knowledgeBaseType) The type of knowledge base.knowledgeBaseType
(KnowledgeBaseType knowledgeBaseType) The type of knowledge base.The name of the knowledge base.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.renderingConfiguration
(Consumer<RenderingConfiguration.Builder> renderingConfiguration) Information about how to render the content.renderingConfiguration
(RenderingConfiguration renderingConfiguration) Information about how to render the content.serverSideEncryptionConfiguration
(Consumer<ServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration) The configuration information for the customer managed key used for encryption.serverSideEncryptionConfiguration
(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration) The configuration information for the customer managed key used for encryption.sourceConfiguration
(Consumer<SourceConfiguration.Builder> sourceConfiguration) The source of the knowledge base content.sourceConfiguration
(SourceConfiguration sourceConfiguration) The source of the knowledge base content.The tags used to organize, track, or control access for this resource.vectorIngestionConfiguration
(Consumer<VectorIngestionConfiguration.Builder> vectorIngestionConfiguration) Contains details about how to ingest the documents in a data source.vectorIngestionConfiguration
(VectorIngestionConfiguration vectorIngestionConfiguration) Contains details about how to ingest the documents in a data source.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.qconnect.model.QConnectRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
- Parameters:
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the knowledge base.
- Parameters:
name
- The name of the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseType
The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
- Parameters:
knowledgeBaseType
- The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
knowledgeBaseType
The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
- Parameters:
knowledgeBaseType
- The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceConfiguration
The source of the knowledge base content. Only set this argument for EXTERNAL or Managed knowledge bases.
- Parameters:
sourceConfiguration
- The source of the knowledge base content. Only set this argument for EXTERNAL or Managed knowledge bases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceConfiguration
default CreateKnowledgeBaseRequest.Builder sourceConfiguration(Consumer<SourceConfiguration.Builder> sourceConfiguration) The source of the knowledge base content. Only set this argument for EXTERNAL or Managed knowledge bases.
This is a convenience method that creates an instance of theSourceConfiguration.Builder
avoiding the need to create one manually viaSourceConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceConfiguration(SourceConfiguration)
.- Parameters:
sourceConfiguration
- a consumer that will call methods onSourceConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
renderingConfiguration
CreateKnowledgeBaseRequest.Builder renderingConfiguration(RenderingConfiguration renderingConfiguration) Information about how to render the content.
- Parameters:
renderingConfiguration
- Information about how to render the content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
renderingConfiguration
default CreateKnowledgeBaseRequest.Builder renderingConfiguration(Consumer<RenderingConfiguration.Builder> renderingConfiguration) Information about how to render the content.
This is a convenience method that creates an instance of theRenderingConfiguration.Builder
avoiding the need to create one manually viaRenderingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torenderingConfiguration(RenderingConfiguration)
.- Parameters:
renderingConfiguration
- a consumer that will call methods onRenderingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vectorIngestionConfiguration
CreateKnowledgeBaseRequest.Builder vectorIngestionConfiguration(VectorIngestionConfiguration vectorIngestionConfiguration) Contains details about how to ingest the documents in a data source.
- Parameters:
vectorIngestionConfiguration
- Contains details about how to ingest the documents in a data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorIngestionConfiguration
default CreateKnowledgeBaseRequest.Builder vectorIngestionConfiguration(Consumer<VectorIngestionConfiguration.Builder> vectorIngestionConfiguration) Contains details about how to ingest the documents in a data source.
This is a convenience method that creates an instance of theVectorIngestionConfiguration.Builder
avoiding the need to create one manually viaVectorIngestionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovectorIngestionConfiguration(VectorIngestionConfiguration)
.- Parameters:
vectorIngestionConfiguration
- a consumer that will call methods onVectorIngestionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serverSideEncryptionConfiguration
CreateKnowledgeBaseRequest.Builder serverSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration) The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows
kms:CreateGrant
,kms:DescribeKey
,kms:Decrypt
, andkms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q in Connect.For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
- Parameters:
serverSideEncryptionConfiguration
- The configuration information for the customer managed key used for encryption.This KMS key must have a policy that allows
kms:CreateGrant
,kms:DescribeKey
,kms:Decrypt
, andkms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q in Connect.For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverSideEncryptionConfiguration
default CreateKnowledgeBaseRequest.Builder serverSideEncryptionConfiguration(Consumer<ServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration) The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows
kms:CreateGrant
,kms:DescribeKey
,kms:Decrypt
, andkms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q in Connect.For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
This is a convenience method that creates an instance of theServerSideEncryptionConfiguration.Builder
avoiding the need to create one manually viaServerSideEncryptionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserverSideEncryptionConfiguration(ServerSideEncryptionConfiguration)
.- Parameters:
serverSideEncryptionConfiguration
- a consumer that will call methods onServerSideEncryptionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description.
- Parameters:
description
- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags used to organize, track, or control access for this resource.
- Parameters:
tags
- The tags used to organize, track, or control access for this resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateKnowledgeBaseRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateKnowledgeBaseRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-