#[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 ==.