#[non_exhaustive]pub struct OpenSearchServerlessConfigurationBuilder { /* private fields */ }Expand description
A builder for OpenSearchServerlessConfiguration.
Implementations§
source§impl OpenSearchServerlessConfigurationBuilder
impl OpenSearchServerlessConfigurationBuilder
sourcepub fn collection_arn(self, input: impl Into<String>) -> Self
pub fn collection_arn(self, input: impl Into<String>) -> Self
Arn of an OpenSearch Serverless collection. This field is required.
sourcepub fn set_collection_arn(self, input: Option<String>) -> Self
pub fn set_collection_arn(self, input: Option<String>) -> Self
Arn of an OpenSearch Serverless collection.
sourcepub fn get_collection_arn(&self) -> &Option<String>
pub fn get_collection_arn(&self) -> &Option<String>
Arn of an OpenSearch Serverless collection.
sourcepub fn vector_index_name(self, input: impl Into<String>) -> Self
pub fn vector_index_name(self, input: impl Into<String>) -> Self
Arn of an OpenSearch Serverless index. This field is required.
sourcepub fn set_vector_index_name(self, input: Option<String>) -> Self
pub fn set_vector_index_name(self, input: Option<String>) -> Self
Arn of an OpenSearch Serverless index.
sourcepub fn get_vector_index_name(&self) -> &Option<String>
pub fn get_vector_index_name(&self) -> &Option<String>
Arn of an OpenSearch Serverless index.
sourcepub fn field_mapping(self, input: OpenSearchServerlessFieldMapping) -> Self
pub fn field_mapping(self, input: OpenSearchServerlessFieldMapping) -> Self
A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names This field is required.
sourcepub fn set_field_mapping(
self,
input: Option<OpenSearchServerlessFieldMapping>
) -> Self
pub fn set_field_mapping( self, input: Option<OpenSearchServerlessFieldMapping> ) -> Self
A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
sourcepub fn get_field_mapping(&self) -> &Option<OpenSearchServerlessFieldMapping>
pub fn get_field_mapping(&self) -> &Option<OpenSearchServerlessFieldMapping>
A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
sourcepub fn build(self) -> Result<OpenSearchServerlessConfiguration, BuildError>
pub fn build(self) -> Result<OpenSearchServerlessConfiguration, BuildError>
Consumes the builder and constructs a OpenSearchServerlessConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OpenSearchServerlessConfigurationBuilder
impl Clone for OpenSearchServerlessConfigurationBuilder
source§fn clone(&self) -> OpenSearchServerlessConfigurationBuilder
fn clone(&self) -> OpenSearchServerlessConfigurationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for OpenSearchServerlessConfigurationBuilder
impl Default for OpenSearchServerlessConfigurationBuilder
source§fn default() -> OpenSearchServerlessConfigurationBuilder
fn default() -> OpenSearchServerlessConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OpenSearchServerlessConfigurationBuilder
impl PartialEq for OpenSearchServerlessConfigurationBuilder
source§fn eq(&self, other: &OpenSearchServerlessConfigurationBuilder) -> bool
fn eq(&self, other: &OpenSearchServerlessConfigurationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for OpenSearchServerlessConfigurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for OpenSearchServerlessConfigurationBuilder
impl Send for OpenSearchServerlessConfigurationBuilder
impl Sync for OpenSearchServerlessConfigurationBuilder
impl Unpin for OpenSearchServerlessConfigurationBuilder
impl UnwindSafe for OpenSearchServerlessConfigurationBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.