Interface UpdateKnowledgeBaseRequest.Builder

  • Method Details

    • knowledgeBaseId

      UpdateKnowledgeBaseRequest.Builder knowledgeBaseId(String knowledgeBaseId)

      The unique identifier of the knowledge base to update.

      Parameters:
      knowledgeBaseId - The unique identifier of the knowledge base to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Specifies a new name for the knowledge base.

      Parameters:
      name - Specifies a new name for the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      UpdateKnowledgeBaseRequest.Builder description(String description)

      Specifies a new description for the knowledge base.

      Parameters:
      description - Specifies a new description for the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleArn

      Specifies a different Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.

      Parameters:
      roleArn - Specifies a different 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

      UpdateKnowledgeBaseRequest.Builder knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration)

      Specifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.

      Parameters:
      knowledgeBaseConfiguration - Specifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • knowledgeBaseConfiguration

      default UpdateKnowledgeBaseRequest.Builder knowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration)

      Specifies the configuration for the embeddings model used for the knowledge base. You must use the same configuration as when the knowledge base was created.

      This is a convenience method that creates an instance of the KnowledgeBaseConfiguration.Builder avoiding the need to create one manually via KnowledgeBaseConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to knowledgeBaseConfiguration(KnowledgeBaseConfiguration).

      Parameters:
      knowledgeBaseConfiguration - a consumer that will call methods on KnowledgeBaseConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • storageConfiguration

      UpdateKnowledgeBaseRequest.Builder storageConfiguration(StorageConfiguration storageConfiguration)

      Specifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.

      Parameters:
      storageConfiguration - Specifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • storageConfiguration

      default UpdateKnowledgeBaseRequest.Builder storageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration)

      Specifies the configuration for the vector store used for the knowledge base. You must use the same configuration as when the knowledge base was created.

      This is a convenience method that creates an instance of the StorageConfiguration.Builder avoiding the need to create one manually via StorageConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to storageConfiguration(StorageConfiguration).

      Parameters:
      storageConfiguration - a consumer that will call methods on StorageConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metadataConfigurations

      UpdateKnowledgeBaseRequest.Builder metadataConfigurations(Collection<MetadataConfiguration> metadataConfigurations)

      Specifies up to 30 custom metadata field configurations for a managed knowledge base.

      The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.

      Parameters:
      metadataConfigurations - Specifies up to 30 custom metadata field configurations for a managed knowledge base.

      The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadataConfigurations

      UpdateKnowledgeBaseRequest.Builder metadataConfigurations(MetadataConfiguration... metadataConfigurations)

      Specifies up to 30 custom metadata field configurations for a managed knowledge base.

      The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.

      Parameters:
      metadataConfigurations - Specifies up to 30 custom metadata field configurations for a managed knowledge base.

      The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadataConfigurations

      UpdateKnowledgeBaseRequest.Builder metadataConfigurations(Consumer<MetadataConfiguration.Builder>... metadataConfigurations)

      Specifies up to 30 custom metadata field configurations for a managed knowledge base.

      The list that you specify replaces the existing configurations. The update removes any configuration that you leave out, and its field is no longer searchable. An empty list removes all configurations. If you don't specify a list, the existing configurations don't change.

      This is a convenience method that creates an instance of the MetadataConfiguration.Builder avoiding the need to create one manually via MetadataConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metadataConfigurations(List<MetadataConfiguration>).

      Parameters:
      metadataConfigurations - a consumer that will call methods on MetadataConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • userContextModeForRetrieval

      UpdateKnowledgeBaseRequest.Builder userContextModeForRetrieval(String userContextModeForRetrieval)

      Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base keeps its current value.

      Parameters:
      userContextModeForRetrieval - Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base keeps its current value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • userContextModeForRetrieval

      UpdateKnowledgeBaseRequest.Builder userContextModeForRetrieval(UserContextModeForRetrieval userContextModeForRetrieval)

      Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base keeps its current value.

      Parameters:
      userContextModeForRetrieval - Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base keeps its current value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • trustedIdentitySources

      UpdateKnowledgeBaseRequest.Builder trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources)

      Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.

      The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.

      Parameters:
      trustedIdentitySources - Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.

      The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trustedIdentitySources

      UpdateKnowledgeBaseRequest.Builder trustedIdentitySources(TrustedIdentitySource... trustedIdentitySources)

      Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.

      The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.

      Parameters:
      trustedIdentitySources - Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.

      The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trustedIdentitySources

      UpdateKnowledgeBaseRequest.Builder trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources)

      Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.

      The list that you specify replaces the existing list. To remove all identity sources, specify an empty list. If you don't specify a list, the knowledge base keeps its current identity sources.

      This is a convenience method that creates an instance of the TrustedIdentitySource.Builder avoiding the need to create one manually via TrustedIdentitySource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to trustedIdentitySources(List<TrustedIdentitySource>).

      Parameters:
      trustedIdentitySources - a consumer that will call methods on TrustedIdentitySource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      UpdateKnowledgeBaseRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.