#[non_exhaustive]pub struct AgentKnowledgeBaseBuilder { /* private fields */ }Expand description
A builder for AgentKnowledgeBase.
Implementations§
source§impl AgentKnowledgeBaseBuilder
impl AgentKnowledgeBaseBuilder
sourcepub fn agent_id(self, input: impl Into<String>) -> Self
pub fn agent_id(self, input: impl Into<String>) -> Self
Identifier for a resource. This field is required.
sourcepub fn set_agent_id(self, input: Option<String>) -> Self
pub fn set_agent_id(self, input: Option<String>) -> Self
Identifier for a resource.
sourcepub fn get_agent_id(&self) -> &Option<String>
pub fn get_agent_id(&self) -> &Option<String>
Identifier for a resource.
sourcepub fn agent_version(self, input: impl Into<String>) -> Self
pub fn agent_version(self, input: impl Into<String>) -> Self
Agent Version. This field is required.
sourcepub fn set_agent_version(self, input: Option<String>) -> Self
pub fn set_agent_version(self, input: Option<String>) -> Self
Agent Version.
sourcepub fn get_agent_version(&self) -> &Option<String>
pub fn get_agent_version(&self) -> &Option<String>
Agent Version.
sourcepub fn knowledge_base_id(self, input: impl Into<String>) -> Self
pub fn knowledge_base_id(self, input: impl Into<String>) -> Self
Identifier for a resource. 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 for a resource.
sourcepub fn get_knowledge_base_id(&self) -> &Option<String>
pub fn get_knowledge_base_id(&self) -> &Option<String>
Identifier for a resource.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Description of the Resource. This field is required.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Description of the Resource.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Description of the Resource.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
Time Stamp. This field is required.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
Time Stamp.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
Time Stamp.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
Time Stamp. This field is required.
sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
Time Stamp.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
Time Stamp.
sourcepub fn knowledge_base_state(self, input: KnowledgeBaseState) -> Self
pub fn knowledge_base_state(self, input: KnowledgeBaseState) -> Self
State of the knowledge base; whether it is enabled or disabled This field is required.
sourcepub fn set_knowledge_base_state(self, input: Option<KnowledgeBaseState>) -> Self
pub fn set_knowledge_base_state(self, input: Option<KnowledgeBaseState>) -> Self
State of the knowledge base; whether it is enabled or disabled
sourcepub fn get_knowledge_base_state(&self) -> &Option<KnowledgeBaseState>
pub fn get_knowledge_base_state(&self) -> &Option<KnowledgeBaseState>
State of the knowledge base; whether it is enabled or disabled
sourcepub fn build(self) -> Result<AgentKnowledgeBase, BuildError>
pub fn build(self) -> Result<AgentKnowledgeBase, BuildError>
Consumes the builder and constructs a AgentKnowledgeBase.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AgentKnowledgeBaseBuilder
impl Clone for AgentKnowledgeBaseBuilder
source§fn clone(&self) -> AgentKnowledgeBaseBuilder
fn clone(&self) -> AgentKnowledgeBaseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AgentKnowledgeBaseBuilder
impl Debug for AgentKnowledgeBaseBuilder
source§impl Default for AgentKnowledgeBaseBuilder
impl Default for AgentKnowledgeBaseBuilder
source§fn default() -> AgentKnowledgeBaseBuilder
fn default() -> AgentKnowledgeBaseBuilder
source§impl PartialEq for AgentKnowledgeBaseBuilder
impl PartialEq for AgentKnowledgeBaseBuilder
source§fn eq(&self, other: &AgentKnowledgeBaseBuilder) -> bool
fn eq(&self, other: &AgentKnowledgeBaseBuilder) -> bool
self and other values to be equal, and is used
by ==.