Struct aws_sdk_bedrockagentruntime::types::builders::KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
source · #[non_exhaustive]pub struct KnowledgeBaseRetrieveAndGenerateConfigurationBuilder { /* private fields */ }Expand description
A builder for KnowledgeBaseRetrieveAndGenerateConfiguration.
Implementations§
source§impl KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
impl KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
sourcepub fn knowledge_base_id(self, input: impl Into<String>) -> Self
pub fn knowledge_base_id(self, input: impl Into<String>) -> Self
Identifier of the KnowledgeBase This field is required.
sourcepub fn set_knowledge_base_id(self, input: Option<String>) -> Self
pub fn set_knowledge_base_id(self, input: Option<String>) -> Self
Identifier of the KnowledgeBase
sourcepub fn get_knowledge_base_id(&self) -> &Option<String>
pub fn get_knowledge_base_id(&self) -> &Option<String>
Identifier of the KnowledgeBase
sourcepub fn model_arn(self, input: impl Into<String>) -> Self
pub fn model_arn(self, input: impl Into<String>) -> Self
Arn of a Bedrock model. This field is required.
sourcepub fn set_model_arn(self, input: Option<String>) -> Self
pub fn set_model_arn(self, input: Option<String>) -> Self
Arn of a Bedrock model.
sourcepub fn get_model_arn(&self) -> &Option<String>
pub fn get_model_arn(&self) -> &Option<String>
Arn of a Bedrock model.
sourcepub fn build(
self
) -> Result<KnowledgeBaseRetrieveAndGenerateConfiguration, BuildError>
pub fn build( self ) -> Result<KnowledgeBaseRetrieveAndGenerateConfiguration, BuildError>
Consumes the builder and constructs a KnowledgeBaseRetrieveAndGenerateConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
impl Clone for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
source§fn clone(&self) -> KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
fn clone(&self) -> KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
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 KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
impl Default for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
source§fn default() -> KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
fn default() -> KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
impl PartialEq for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
source§fn eq(
&self,
other: &KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
) -> bool
fn eq( &self, other: &KnowledgeBaseRetrieveAndGenerateConfigurationBuilder ) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
impl Send for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
impl Sync for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
impl Unpin for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
impl UnwindSafe for KnowledgeBaseRetrieveAndGenerateConfigurationBuilder
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.