#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateChatInput {
pub agent_space_id: ::std::option::Option<::std::string::String>,
#[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>,
pub user_type: ::std::option::Option<crate::types::UserType>,
}
impl CreateChatInput {
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
#[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()
}
pub fn user_type(&self) -> ::std::option::Option<&crate::types::UserType> {
self.user_type.as_ref()
}
}
impl CreateChatInput {
pub fn builder() -> crate::operation::create_chat::builders::CreateChatInputBuilder {
crate::operation::create_chat::builders::CreateChatInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateChatInputBuilder {
pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
pub(crate) user_id: ::std::option::Option<::std::string::String>,
pub(crate) user_type: ::std::option::Option<crate::types::UserType>,
}
impl CreateChatInputBuilder {
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
}
#[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 user_type(mut self, input: crate::types::UserType) -> Self {
self.user_type = ::std::option::Option::Some(input);
self
}
pub fn set_user_type(mut self, input: ::std::option::Option<crate::types::UserType>) -> Self {
self.user_type = input;
self
}
pub fn get_user_type(&self) -> &::std::option::Option<crate::types::UserType> {
&self.user_type
}
pub fn build(self) -> ::std::result::Result<crate::operation::create_chat::CreateChatInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_chat::CreateChatInput {
agent_space_id: self.agent_space_id,
user_id: self.user_id,
user_type: self.user_type,
})
}
}