aws_sdk_chime/operation/create_room/
_create_room_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct CreateRoomInput {
6 pub account_id: ::std::option::Option<::std::string::String>,
8 pub name: ::std::option::Option<::std::string::String>,
10 pub client_request_token: ::std::option::Option<::std::string::String>,
12}
13impl CreateRoomInput {
14 pub fn account_id(&self) -> ::std::option::Option<&str> {
16 self.account_id.as_deref()
17 }
18 pub fn name(&self) -> ::std::option::Option<&str> {
20 self.name.as_deref()
21 }
22 pub fn client_request_token(&self) -> ::std::option::Option<&str> {
24 self.client_request_token.as_deref()
25 }
26}
27impl ::std::fmt::Debug for CreateRoomInput {
28 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
29 let mut formatter = f.debug_struct("CreateRoomInput");
30 formatter.field("account_id", &self.account_id);
31 formatter.field("name", &"*** Sensitive Data Redacted ***");
32 formatter.field("client_request_token", &"*** Sensitive Data Redacted ***");
33 formatter.finish()
34 }
35}
36impl CreateRoomInput {
37 pub fn builder() -> crate::operation::create_room::builders::CreateRoomInputBuilder {
39 crate::operation::create_room::builders::CreateRoomInputBuilder::default()
40 }
41}
42
43#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
45#[non_exhaustive]
46pub struct CreateRoomInputBuilder {
47 pub(crate) account_id: ::std::option::Option<::std::string::String>,
48 pub(crate) name: ::std::option::Option<::std::string::String>,
49 pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
50}
51impl CreateRoomInputBuilder {
52 pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
55 self.account_id = ::std::option::Option::Some(input.into());
56 self
57 }
58 pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
60 self.account_id = input;
61 self
62 }
63 pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
65 &self.account_id
66 }
67 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
70 self.name = ::std::option::Option::Some(input.into());
71 self
72 }
73 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
75 self.name = input;
76 self
77 }
78 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
80 &self.name
81 }
82 pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
84 self.client_request_token = ::std::option::Option::Some(input.into());
85 self
86 }
87 pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
89 self.client_request_token = input;
90 self
91 }
92 pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
94 &self.client_request_token
95 }
96 pub fn build(self) -> ::std::result::Result<crate::operation::create_room::CreateRoomInput, ::aws_smithy_types::error::operation::BuildError> {
98 ::std::result::Result::Ok(crate::operation::create_room::CreateRoomInput {
99 account_id: self.account_id,
100 name: self.name,
101 client_request_token: self.client_request_token,
102 })
103 }
104}
105impl ::std::fmt::Debug for CreateRoomInputBuilder {
106 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
107 let mut formatter = f.debug_struct("CreateRoomInputBuilder");
108 formatter.field("account_id", &self.account_id);
109 formatter.field("name", &"*** Sensitive Data Redacted ***");
110 formatter.field("client_request_token", &"*** Sensitive Data Redacted ***");
111 formatter.finish()
112 }
113}