#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RedactConversationMessageInput {
pub account_id: ::std::option::Option<::std::string::String>,
pub conversation_id: ::std::option::Option<::std::string::String>,
pub message_id: ::std::option::Option<::std::string::String>,
}
impl RedactConversationMessageInput {
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn conversation_id(&self) -> ::std::option::Option<&str> {
self.conversation_id.as_deref()
}
pub fn message_id(&self) -> ::std::option::Option<&str> {
self.message_id.as_deref()
}
}
impl RedactConversationMessageInput {
pub fn builder() -> crate::operation::redact_conversation_message::builders::RedactConversationMessageInputBuilder {
crate::operation::redact_conversation_message::builders::RedactConversationMessageInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RedactConversationMessageInputBuilder {
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) conversation_id: ::std::option::Option<::std::string::String>,
pub(crate) message_id: ::std::option::Option<::std::string::String>,
}
impl RedactConversationMessageInputBuilder {
pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.account_id = input;
self
}
pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.account_id
}
pub fn conversation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.conversation_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_conversation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.conversation_id = input;
self
}
pub fn get_conversation_id(&self) -> &::std::option::Option<::std::string::String> {
&self.conversation_id
}
pub fn message_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.message_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_message_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.message_id = input;
self
}
pub fn get_message_id(&self) -> &::std::option::Option<::std::string::String> {
&self.message_id
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::redact_conversation_message::RedactConversationMessageInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::redact_conversation_message::RedactConversationMessageInput {
account_id: self.account_id,
conversation_id: self.conversation_id,
message_id: self.message_id,
})
}
}