#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RedactRoomMessageInput {
pub account_id: ::std::option::Option<::std::string::String>,
pub room_id: ::std::option::Option<::std::string::String>,
pub message_id: ::std::option::Option<::std::string::String>,
}
impl RedactRoomMessageInput {
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn room_id(&self) -> ::std::option::Option<&str> {
self.room_id.as_deref()
}
pub fn message_id(&self) -> ::std::option::Option<&str> {
self.message_id.as_deref()
}
}
impl RedactRoomMessageInput {
pub fn builder() -> crate::operation::redact_room_message::builders::RedactRoomMessageInputBuilder {
crate::operation::redact_room_message::builders::RedactRoomMessageInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RedactRoomMessageInputBuilder {
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) room_id: ::std::option::Option<::std::string::String>,
pub(crate) message_id: ::std::option::Option<::std::string::String>,
}
impl RedactRoomMessageInputBuilder {
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 room_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.room_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_room_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.room_id = input;
self
}
pub fn get_room_id(&self) -> &::std::option::Option<::std::string::String> {
&self.room_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_room_message::RedactRoomMessageInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::redact_room_message::RedactRoomMessageInput {
account_id: self.account_id,
room_id: self.room_id,
message_id: self.message_id,
})
}
}