1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateAgentKnowledgeBase`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`agent_id(impl Into<String>)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::agent_id) / [`set_agent_id(Option<String>)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::set_agent_id):<br>required: **true**<br><p>The unique identifier of the agent with which you want to associate the knowledge base.</p><br>
    ///   - [`agent_version(impl Into<String>)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::agent_version) / [`set_agent_version(Option<String>)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::set_agent_version):<br>required: **true**<br><p>The version of the agent with which you want to associate the knowledge base.</p><br>
    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The unique identifier of the knowledge base to associate with the agent.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::set_description):<br>required: **true**<br><p>A description of what the agent should use the knowledge base for.</p><br>
    ///   - [`knowledge_base_state(KnowledgeBaseState)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::knowledge_base_state) / [`set_knowledge_base_state(Option<KnowledgeBaseState>)`](crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::set_knowledge_base_state):<br>required: **false**<br><p>Specifies whether to use the knowledge base or not when sending an <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> request.</p><br>
    /// - On success, responds with [`AssociateAgentKnowledgeBaseOutput`](crate::operation::associate_agent_knowledge_base::AssociateAgentKnowledgeBaseOutput) with field(s):
    ///   - [`agent_knowledge_base(Option<AgentKnowledgeBase>)`](crate::operation::associate_agent_knowledge_base::AssociateAgentKnowledgeBaseOutput::agent_knowledge_base): <p>Contains details about the knowledge base that has been associated with the agent.</p>
    /// - On failure, responds with [`SdkError<AssociateAgentKnowledgeBaseError>`](crate::operation::associate_agent_knowledge_base::AssociateAgentKnowledgeBaseError)
    pub fn associate_agent_knowledge_base(
        &self,
    ) -> crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder {
        crate::operation::associate_agent_knowledge_base::builders::AssociateAgentKnowledgeBaseFluentBuilder::new(self.handle.clone())
    }
}