Interface KnowledgeBase.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<KnowledgeBase.Builder,,KnowledgeBase> SdkBuilder<KnowledgeBase.Builder,,KnowledgeBase> SdkPojo
- Enclosing class:
KnowledgeBase
-
Method Summary
Modifier and TypeMethodDescriptionThe time the knowledge base was created.description(String description) The description of the knowledge base.failureReasons(String... failureReasons) A list of reasons that the API operation on the knowledge base failed.failureReasons(Collection<String> failureReasons) A list of reasons that the API operation on the knowledge base failed.knowledgeBaseArn(String knowledgeBaseArn) The Amazon Resource Name (ARN) of the knowledge base.default KnowledgeBase.BuilderknowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration) Contains details about the embeddings configuration of the knowledge base.knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration) Contains details about the embeddings configuration of the knowledge base.knowledgeBaseId(String knowledgeBaseId) The unique identifier of the knowledge base.metadataConfigurations(Collection<MetadataConfiguration> metadataConfigurations) The custom metadata field configurations of the knowledge base.metadataConfigurations(Consumer<MetadataConfiguration.Builder>... metadataConfigurations) The custom metadata field configurations of the knowledge base.metadataConfigurations(MetadataConfiguration... metadataConfigurations) The custom metadata field configurations of the knowledge base.The name of the knowledge base.The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.The status of the knowledge base.status(KnowledgeBaseStatus status) The status of the knowledge base.default KnowledgeBase.BuilderstorageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration) Contains details about the storage configuration of the knowledge base.storageConfiguration(StorageConfiguration storageConfiguration) Contains details about the storage configuration of the knowledge base.trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources) The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources) The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.trustedIdentitySources(TrustedIdentitySource... trustedIdentitySources) The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.The time the knowledge base was last updated.userContextModeForRetrieval(String userContextModeForRetrieval) The end-user identity that your knowledge base uses to filter retrieval results by document access controls.userContextModeForRetrieval(UserContextModeForRetrieval userContextModeForRetrieval) The end-user identity that your knowledge base uses to filter retrieval results by document access controls.Methods 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
-
knowledgeBaseId
The unique identifier of the knowledge base.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base.- 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.
-
knowledgeBaseArn
The Amazon Resource Name (ARN) of the knowledge base.
- Parameters:
knowledgeBaseArn- The Amazon Resource Name (ARN) of the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the knowledge base.
- Parameters:
description- The description of the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
KnowledgeBase.Builder knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration) Contains details about the embeddings configuration of the knowledge base.
- Parameters:
knowledgeBaseConfiguration- Contains details about the embeddings configuration of the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
default KnowledgeBase.Builder knowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration) Contains details about the embeddings configuration of the knowledge base.
This is a convenience method that creates an instance of theKnowledgeBaseConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toknowledgeBaseConfiguration(KnowledgeBaseConfiguration).- Parameters:
knowledgeBaseConfiguration- a consumer that will call methods onKnowledgeBaseConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageConfiguration
Contains details about the storage configuration of the knowledge base.
- Parameters:
storageConfiguration- Contains details about the storage configuration of the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfiguration
default KnowledgeBase.Builder storageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration) Contains details about the storage configuration of the knowledge base.
This is a convenience method that creates an instance of theStorageConfiguration.Builderavoiding the need to create one manually viaStorageConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostorageConfiguration(StorageConfiguration).- Parameters:
storageConfiguration- a consumer that will call methods onStorageConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the knowledge base. The following statuses are possible:
-
CREATING – The knowledge base is being created.
-
ACTIVE – The knowledge base is ready to be queried.
-
DELETING – The knowledge base is being deleted.
-
UPDATING – The knowledge base is being updated.
-
FAILED – The knowledge base API operation failed.
- Parameters:
status- The status of the knowledge base. The following statuses are possible:-
CREATING – The knowledge base is being created.
-
ACTIVE – The knowledge base is ready to be queried.
-
DELETING – The knowledge base is being deleted.
-
UPDATING – The knowledge base is being updated.
-
FAILED – The knowledge base API operation failed.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
status
The status of the knowledge base. The following statuses are possible:
-
CREATING – The knowledge base is being created.
-
ACTIVE – The knowledge base is ready to be queried.
-
DELETING – The knowledge base is being deleted.
-
UPDATING – The knowledge base is being updated.
-
FAILED – The knowledge base API operation failed.
- Parameters:
status- The status of the knowledge base. The following statuses are possible:-
CREATING – The knowledge base is being created.
-
ACTIVE – The knowledge base is ready to be queried.
-
DELETING – The knowledge base is being deleted.
-
UPDATING – The knowledge base is being updated.
-
FAILED – The knowledge base API operation failed.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
createdAt
The time the knowledge base was created.
- Parameters:
createdAt- The time the knowledge base was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The time the knowledge base was last updated.
- Parameters:
updatedAt- The time the knowledge base was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
A list of reasons that the API operation on the knowledge base failed.
- Parameters:
failureReasons- A list of reasons that the API operation on the knowledge base failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
A list of reasons that the API operation on the knowledge base failed.
- Parameters:
failureReasons- A list of reasons that the API operation on the knowledge base failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataConfigurations
KnowledgeBase.Builder metadataConfigurations(Collection<MetadataConfiguration> metadataConfigurations) The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (
ENABLEDorDISABLED).If the update fails, the knowledge base status becomes
UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, andfailureReasonsdescribes the cause. You can retry the update fromUPDATE_UNSUCCESSFUL.- Parameters:
metadataConfigurations- The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (ENABLEDorDISABLED).If the update fails, the knowledge base status becomes
UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, andfailureReasonsdescribes the cause. You can retry the update fromUPDATE_UNSUCCESSFUL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataConfigurations
The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (
ENABLEDorDISABLED).If the update fails, the knowledge base status becomes
UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, andfailureReasonsdescribes the cause. You can retry the update fromUPDATE_UNSUCCESSFUL.- Parameters:
metadataConfigurations- The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (ENABLEDorDISABLED).If the update fails, the knowledge base status becomes
UPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, andfailureReasonsdescribes the cause. You can retry the update fromUPDATE_UNSUCCESSFUL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataConfigurations
KnowledgeBase.Builder metadataConfigurations(Consumer<MetadataConfiguration.Builder>... metadataConfigurations) The custom metadata field configurations of the knowledge base. Each configuration specifies whether its field is searchable (
ENABLEDorDISABLED).If the update fails, the knowledge base status becomes
This is a convenience method that creates an instance of theUPDATE_UNSUCCESSFUL, the field configurations revert to their previous values, andfailureReasonsdescribes the cause. You can retry the update fromUPDATE_UNSUCCESSFUL.MetadataConfiguration.Builderavoiding the need to create one manually viaMetadataConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadataConfigurations(List<MetadataConfiguration>).- Parameters:
metadataConfigurations- a consumer that will call methods onMetadataConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userContextModeForRetrieval
The end-user identity that your knowledge base uses to filter retrieval results by document access controls.
- Parameters:
userContextModeForRetrieval- The end-user identity that your knowledge base uses to filter retrieval results by document access controls.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userContextModeForRetrieval
KnowledgeBase.Builder userContextModeForRetrieval(UserContextModeForRetrieval userContextModeForRetrieval) The end-user identity that your knowledge base uses to filter retrieval results by document access controls.
- Parameters:
userContextModeForRetrieval- The end-user identity that your knowledge base uses to filter retrieval results by document access controls.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
trustedIdentitySources
KnowledgeBase.Builder trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources) The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.
- Parameters:
trustedIdentitySources- The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trustedIdentitySources
The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.
- Parameters:
trustedIdentitySources- The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trustedIdentitySources
KnowledgeBase.Builder trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources) The identity sources that your knowledge base trusts for identity-enhanced sessions, in addition to identity sources in your account.
This is a convenience method that creates an instance of theTrustedIdentitySource.Builderavoiding the need to create one manually viaTrustedIdentitySource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrustedIdentitySources(List<TrustedIdentitySource>).- Parameters:
trustedIdentitySources- a consumer that will call methods onTrustedIdentitySource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-