#[non_exhaustive]pub struct OpensearchConfigurationBuilder { /* private fields */ }Expand description
A builder for OpensearchConfiguration.
Implementations§
source§impl OpensearchConfigurationBuilder
impl OpensearchConfigurationBuilder
sourcepub fn domain_endpoint(self, input: impl Into<String>) -> Self
pub fn domain_endpoint(self, input: impl Into<String>) -> Self
The endpoint of the Amazon OpenSearch Service domain.
This field is required.sourcepub fn set_domain_endpoint(self, input: Option<String>) -> Self
pub fn set_domain_endpoint(self, input: Option<String>) -> Self
The endpoint of the Amazon OpenSearch Service domain.
sourcepub fn get_domain_endpoint(&self) -> &Option<String>
pub fn get_domain_endpoint(&self) -> &Option<String>
The endpoint of the Amazon OpenSearch Service domain.
sourcepub fn index_name(self, input: impl Into<String>) -> Self
pub fn index_name(self, input: impl Into<String>) -> Self
The name of the Amazon OpenSearch Service index.
This field is required.sourcepub fn set_index_name(self, input: Option<String>) -> Self
pub fn set_index_name(self, input: Option<String>) -> Self
The name of the Amazon OpenSearch Service index.
sourcepub fn get_index_name(&self) -> &Option<String>
pub fn get_index_name(&self) -> &Option<String>
The name of the Amazon OpenSearch Service index.
sourcepub fn exact_response(self, input: bool) -> Self
pub fn exact_response(self, input: bool) -> Self
Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
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 or to return an answer generated by the model using the fields you specify from the database.
sourcepub fn get_exact_response(&self) -> &Option<bool>
pub fn get_exact_response(&self) -> &Option<bool>
Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
sourcepub fn exact_response_fields(self, input: ExactResponseFields) -> Self
pub fn exact_response_fields(self, input: ExactResponseFields) -> Self
Contains the names of the fields used for an exact response to the user.
sourcepub fn set_exact_response_fields(
self,
input: Option<ExactResponseFields>,
) -> Self
pub fn set_exact_response_fields( self, input: Option<ExactResponseFields>, ) -> Self
Contains the names of the fields used for an exact response to the user.
sourcepub fn get_exact_response_fields(&self) -> &Option<ExactResponseFields>
pub fn get_exact_response_fields(&self) -> &Option<ExactResponseFields>
Contains the names of the fields used for an exact response to the user.
sourcepub fn include_fields(self, input: impl Into<String>) -> Self
pub fn include_fields(self, input: impl Into<String>) -> Self
Appends an item to include_fields.
To override the contents of this collection use set_include_fields.
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
sourcepub fn set_include_fields(self, input: Option<Vec<String>>) -> Self
pub fn set_include_fields(self, input: Option<Vec<String>>) -> Self
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
sourcepub fn get_include_fields(&self) -> &Option<Vec<String>>
pub fn get_include_fields(&self) -> &Option<Vec<String>>
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
sourcepub fn build(self) -> Result<OpensearchConfiguration, BuildError>
pub fn build(self) -> Result<OpensearchConfiguration, BuildError>
Consumes the builder and constructs a OpensearchConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OpensearchConfigurationBuilder
impl Clone for OpensearchConfigurationBuilder
source§fn clone(&self) -> OpensearchConfigurationBuilder
fn clone(&self) -> OpensearchConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OpensearchConfigurationBuilder
impl Default for OpensearchConfigurationBuilder
source§fn default() -> OpensearchConfigurationBuilder
fn default() -> OpensearchConfigurationBuilder
source§impl PartialEq for OpensearchConfigurationBuilder
impl PartialEq for OpensearchConfigurationBuilder
source§fn eq(&self, other: &OpensearchConfigurationBuilder) -> bool
fn eq(&self, other: &OpensearchConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for OpensearchConfigurationBuilder
Auto Trait Implementations§
impl Freeze for OpensearchConfigurationBuilder
impl RefUnwindSafe for OpensearchConfigurationBuilder
impl Send for OpensearchConfigurationBuilder
impl Sync for OpensearchConfigurationBuilder
impl Unpin for OpensearchConfigurationBuilder
impl UnwindSafe for OpensearchConfigurationBuilder
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