#[non_exhaustive]pub struct QnAKendraConfigurationBuilder { /* private fields */ }Expand description
A builder for QnAKendraConfiguration.
Implementations§
source§impl QnAKendraConfigurationBuilder
impl QnAKendraConfigurationBuilder
sourcepub fn kendra_index(self, input: impl Into<String>) -> Self
pub fn kendra_index(self, input: impl Into<String>) -> Self
The ARN of the Amazon Kendra index to use.
This field is required.sourcepub fn set_kendra_index(self, input: Option<String>) -> Self
pub fn set_kendra_index(self, input: Option<String>) -> Self
The ARN of the Amazon Kendra index to use.
sourcepub fn get_kendra_index(&self) -> &Option<String>
pub fn get_kendra_index(&self) -> &Option<String>
The ARN of the Amazon Kendra index to use.
sourcepub fn query_filter_string_enabled(self, input: bool) -> Self
pub fn query_filter_string_enabled(self, input: bool) -> Self
Specifies whether to enable an Amazon Kendra filter string or not.
sourcepub fn set_query_filter_string_enabled(self, input: Option<bool>) -> Self
pub fn set_query_filter_string_enabled(self, input: Option<bool>) -> Self
Specifies whether to enable an Amazon Kendra filter string or not.
sourcepub fn get_query_filter_string_enabled(&self) -> &Option<bool>
pub fn get_query_filter_string_enabled(&self) -> &Option<bool>
Specifies whether to enable an Amazon Kendra filter string or not.
sourcepub fn query_filter_string(self, input: impl Into<String>) -> Self
pub fn query_filter_string(self, input: impl Into<String>) -> Self
Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results.
sourcepub fn set_query_filter_string(self, input: Option<String>) -> Self
pub fn set_query_filter_string(self, input: Option<String>) -> Self
Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results.
sourcepub fn get_query_filter_string(&self) -> &Option<String>
pub fn get_query_filter_string(&self) -> &Option<String>
Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results.
sourcepub fn exact_response(self, input: bool) -> Self
pub fn exact_response(self, input: bool) -> Self
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index.
sourcepub fn set_exact_response(self, input: Option<bool>) -> Self
pub fn set_exact_response(self, input: Option<bool>) -> Self
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index.
sourcepub fn get_exact_response(&self) -> &Option<bool>
pub fn get_exact_response(&self) -> &Option<bool>
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index.
sourcepub fn build(self) -> Result<QnAKendraConfiguration, BuildError>
pub fn build(self) -> Result<QnAKendraConfiguration, BuildError>
Consumes the builder and constructs a QnAKendraConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for QnAKendraConfigurationBuilder
impl Clone for QnAKendraConfigurationBuilder
source§fn clone(&self) -> QnAKendraConfigurationBuilder
fn clone(&self) -> QnAKendraConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for QnAKendraConfigurationBuilder
impl Default for QnAKendraConfigurationBuilder
source§fn default() -> QnAKendraConfigurationBuilder
fn default() -> QnAKendraConfigurationBuilder
source§impl PartialEq for QnAKendraConfigurationBuilder
impl PartialEq for QnAKendraConfigurationBuilder
source§fn eq(&self, other: &QnAKendraConfigurationBuilder) -> bool
fn eq(&self, other: &QnAKendraConfigurationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QnAKendraConfigurationBuilder
Auto Trait Implementations§
impl Freeze for QnAKendraConfigurationBuilder
impl RefUnwindSafe for QnAKendraConfigurationBuilder
impl Send for QnAKendraConfigurationBuilder
impl Sync for QnAKendraConfigurationBuilder
impl Unpin for QnAKendraConfigurationBuilder
impl UnwindSafe for QnAKendraConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more