#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct SendMessageInput {
pub agent_space_id: ::std::option::Option<::std::string::String>,
pub execution_id: ::std::option::Option<::std::string::String>,
pub content: ::std::option::Option<::std::string::String>,
pub context: ::std::option::Option<crate::types::SendMessageContext>,
#[deprecated(note = "userId is managed by the service and should not be provided by the caller", since = "2026-04-15")]
pub user_id: ::std::option::Option<::std::string::String>,
}
impl SendMessageInput {
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
pub fn execution_id(&self) -> ::std::option::Option<&str> {
self.execution_id.as_deref()
}
pub fn content(&self) -> ::std::option::Option<&str> {
self.content.as_deref()
}
pub fn context(&self) -> ::std::option::Option<&crate::types::SendMessageContext> {
self.context.as_ref()
}
#[deprecated(note = "userId is managed by the service and should not be provided by the caller", since = "2026-04-15")]
pub fn user_id(&self) -> ::std::option::Option<&str> {
self.user_id.as_deref()
}
}
impl SendMessageInput {
pub fn builder() -> crate::operation::send_message::builders::SendMessageInputBuilder {
crate::operation::send_message::builders::SendMessageInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SendMessageInputBuilder {
pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
pub(crate) execution_id: ::std::option::Option<::std::string::String>,
pub(crate) content: ::std::option::Option<::std::string::String>,
pub(crate) context: ::std::option::Option<crate::types::SendMessageContext>,
pub(crate) user_id: ::std::option::Option<::std::string::String>,
}
impl SendMessageInputBuilder {
pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.agent_space_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.agent_space_id = input;
self
}
pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
&self.agent_space_id
}
pub fn execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_id = input;
self
}
pub fn get_execution_id(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_id
}
pub fn content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.content = ::std::option::Option::Some(input.into());
self
}
pub fn set_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.content = input;
self
}
pub fn get_content(&self) -> &::std::option::Option<::std::string::String> {
&self.content
}
pub fn context(mut self, input: crate::types::SendMessageContext) -> Self {
self.context = ::std::option::Option::Some(input);
self
}
pub fn set_context(mut self, input: ::std::option::Option<crate::types::SendMessageContext>) -> Self {
self.context = input;
self
}
pub fn get_context(&self) -> &::std::option::Option<crate::types::SendMessageContext> {
&self.context
}
#[deprecated(note = "userId is managed by the service and should not be provided by the caller", since = "2026-04-15")]
pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_id = ::std::option::Option::Some(input.into());
self
}
#[deprecated(note = "userId is managed by the service and should not be provided by the caller", since = "2026-04-15")]
pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_id = input;
self
}
#[deprecated(note = "userId is managed by the service and should not be provided by the caller", since = "2026-04-15")]
pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
&self.user_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::send_message::SendMessageInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::send_message::SendMessageInput {
agent_space_id: self.agent_space_id,
execution_id: self.execution_id,
content: self.content,
context: self.context,
user_id: self.user_id,
})
}
}