#[non_exhaustive]pub struct ChatSyncOutputBuilder { /* private fields */ }Expand description
A builder for ChatSyncOutput.
Implementations§
source§impl ChatSyncOutputBuilder
impl ChatSyncOutputBuilder
sourcepub fn conversation_id(self, input: impl Into<String>) -> Self
pub fn conversation_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Q conversation.
sourcepub fn set_conversation_id(self, input: Option<String>) -> Self
pub fn set_conversation_id(self, input: Option<String>) -> Self
The identifier of the Amazon Q conversation.
sourcepub fn get_conversation_id(&self) -> &Option<String>
pub fn get_conversation_id(&self) -> &Option<String>
The identifier of the Amazon Q conversation.
sourcepub fn system_message(self, input: impl Into<String>) -> Self
pub fn system_message(self, input: impl Into<String>) -> Self
An AI-generated message in a conversation.
sourcepub fn set_system_message(self, input: Option<String>) -> Self
pub fn set_system_message(self, input: Option<String>) -> Self
An AI-generated message in a conversation.
sourcepub fn get_system_message(&self) -> &Option<String>
pub fn get_system_message(&self) -> &Option<String>
An AI-generated message in a conversation.
sourcepub fn system_message_id(self, input: impl Into<String>) -> Self
pub fn system_message_id(self, input: impl Into<String>) -> Self
The identifier of an Amazon Q AI generated message within the conversation.
sourcepub fn set_system_message_id(self, input: Option<String>) -> Self
pub fn set_system_message_id(self, input: Option<String>) -> Self
The identifier of an Amazon Q AI generated message within the conversation.
sourcepub fn get_system_message_id(&self) -> &Option<String>
pub fn get_system_message_id(&self) -> &Option<String>
The identifier of an Amazon Q AI generated message within the conversation.
sourcepub fn user_message_id(self, input: impl Into<String>) -> Self
pub fn user_message_id(self, input: impl Into<String>) -> Self
The identifier of an Amazon Q end user text input message within the conversation.
sourcepub fn set_user_message_id(self, input: Option<String>) -> Self
pub fn set_user_message_id(self, input: Option<String>) -> Self
The identifier of an Amazon Q end user text input message within the conversation.
sourcepub fn get_user_message_id(&self) -> &Option<String>
pub fn get_user_message_id(&self) -> &Option<String>
The identifier of an Amazon Q end user text input message within the conversation.
sourcepub fn action_review(self, input: ActionReview) -> Self
pub fn action_review(self, input: ActionReview) -> Self
A request from Amazon Q to the end user for information Amazon Q needs to successfully complete a requested plugin action.
sourcepub fn set_action_review(self, input: Option<ActionReview>) -> Self
pub fn set_action_review(self, input: Option<ActionReview>) -> Self
A request from Amazon Q to the end user for information Amazon Q needs to successfully complete a requested plugin action.
sourcepub fn get_action_review(&self) -> &Option<ActionReview>
pub fn get_action_review(&self) -> &Option<ActionReview>
A request from Amazon Q to the end user for information Amazon Q needs to successfully complete a requested plugin action.
sourcepub fn source_attributions(self, input: Option<SourceAttribution>) -> Self
pub fn source_attributions(self, input: Option<SourceAttribution>) -> Self
Appends an item to source_attributions.
To override the contents of this collection use set_source_attributions.
The source documents used to generate the conversation response.
sourcepub fn set_source_attributions(
self,
input: Option<Vec<Option<SourceAttribution>>>
) -> Self
pub fn set_source_attributions( self, input: Option<Vec<Option<SourceAttribution>>> ) -> Self
The source documents used to generate the conversation response.
sourcepub fn get_source_attributions(&self) -> &Option<Vec<Option<SourceAttribution>>>
pub fn get_source_attributions(&self) -> &Option<Vec<Option<SourceAttribution>>>
The source documents used to generate the conversation response.
sourcepub fn failed_attachments(self, input: AttachmentOutput) -> Self
pub fn failed_attachments(self, input: AttachmentOutput) -> Self
Appends an item to failed_attachments.
To override the contents of this collection use set_failed_attachments.
A list of files which failed to upload during chat.
sourcepub fn set_failed_attachments(
self,
input: Option<Vec<AttachmentOutput>>
) -> Self
pub fn set_failed_attachments( self, input: Option<Vec<AttachmentOutput>> ) -> Self
A list of files which failed to upload during chat.
sourcepub fn get_failed_attachments(&self) -> &Option<Vec<AttachmentOutput>>
pub fn get_failed_attachments(&self) -> &Option<Vec<AttachmentOutput>>
A list of files which failed to upload during chat.
sourcepub fn build(self) -> ChatSyncOutput
pub fn build(self) -> ChatSyncOutput
Consumes the builder and constructs a ChatSyncOutput.
Trait Implementations§
source§impl Clone for ChatSyncOutputBuilder
impl Clone for ChatSyncOutputBuilder
source§fn clone(&self) -> ChatSyncOutputBuilder
fn clone(&self) -> ChatSyncOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ChatSyncOutputBuilder
impl Debug for ChatSyncOutputBuilder
source§impl Default for ChatSyncOutputBuilder
impl Default for ChatSyncOutputBuilder
source§fn default() -> ChatSyncOutputBuilder
fn default() -> ChatSyncOutputBuilder
source§impl PartialEq for ChatSyncOutputBuilder
impl PartialEq for ChatSyncOutputBuilder
source§fn eq(&self, other: &ChatSyncOutputBuilder) -> bool
fn eq(&self, other: &ChatSyncOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.