#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct Room {
pub room_id: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub account_id: ::std::option::Option<::std::string::String>,
pub created_by: ::std::option::Option<::std::string::String>,
pub created_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub updated_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl Room {
pub fn room_id(&self) -> ::std::option::Option<&str> {
self.room_id.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn created_by(&self) -> ::std::option::Option<&str> {
self.created_by.as_deref()
}
pub fn created_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_timestamp.as_ref()
}
pub fn updated_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.updated_timestamp.as_ref()
}
}
impl ::std::fmt::Debug for Room {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("Room");
formatter.field("room_id", &self.room_id);
formatter.field("name", &"*** Sensitive Data Redacted ***");
formatter.field("account_id", &self.account_id);
formatter.field("created_by", &self.created_by);
formatter.field("created_timestamp", &self.created_timestamp);
formatter.field("updated_timestamp", &self.updated_timestamp);
formatter.finish()
}
}
impl Room {
pub fn builder() -> crate::types::builders::RoomBuilder {
crate::types::builders::RoomBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct RoomBuilder {
pub(crate) room_id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) created_by: ::std::option::Option<::std::string::String>,
pub(crate) created_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) updated_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl RoomBuilder {
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 name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
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 created_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.created_by = ::std::option::Option::Some(input.into());
self
}
pub fn set_created_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.created_by = input;
self
}
pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> {
&self.created_by
}
pub fn created_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_timestamp = ::std::option::Option::Some(input);
self
}
pub fn set_created_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_timestamp = input;
self
}
pub fn get_created_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_timestamp
}
pub fn updated_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_timestamp = ::std::option::Option::Some(input);
self
}
pub fn set_updated_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_timestamp = input;
self
}
pub fn get_updated_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_timestamp
}
pub fn build(self) -> crate::types::Room {
crate::types::Room {
room_id: self.room_id,
name: self.name,
account_id: self.account_id,
created_by: self.created_by,
created_timestamp: self.created_timestamp,
updated_timestamp: self.updated_timestamp,
}
}
}
impl ::std::fmt::Debug for RoomBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("RoomBuilder");
formatter.field("room_id", &self.room_id);
formatter.field("name", &"*** Sensitive Data Redacted ***");
formatter.field("account_id", &self.account_id);
formatter.field("created_by", &self.created_by);
formatter.field("created_timestamp", &self.created_timestamp);
formatter.field("updated_timestamp", &self.updated_timestamp);
formatter.finish()
}
}