aws_sdk_chime/operation/update_bot/
_update_bot_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateBotInput {
6 pub account_id: ::std::option::Option<::std::string::String>,
8 pub bot_id: ::std::option::Option<::std::string::String>,
10 pub disabled: ::std::option::Option<bool>,
12}
13impl UpdateBotInput {
14 pub fn account_id(&self) -> ::std::option::Option<&str> {
16 self.account_id.as_deref()
17 }
18 pub fn bot_id(&self) -> ::std::option::Option<&str> {
20 self.bot_id.as_deref()
21 }
22 pub fn disabled(&self) -> ::std::option::Option<bool> {
24 self.disabled
25 }
26}
27impl UpdateBotInput {
28 pub fn builder() -> crate::operation::update_bot::builders::UpdateBotInputBuilder {
30 crate::operation::update_bot::builders::UpdateBotInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct UpdateBotInputBuilder {
38 pub(crate) account_id: ::std::option::Option<::std::string::String>,
39 pub(crate) bot_id: ::std::option::Option<::std::string::String>,
40 pub(crate) disabled: ::std::option::Option<bool>,
41}
42impl UpdateBotInputBuilder {
43 pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.account_id = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.account_id = input;
52 self
53 }
54 pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
56 &self.account_id
57 }
58 pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61 self.bot_id = ::std::option::Option::Some(input.into());
62 self
63 }
64 pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66 self.bot_id = input;
67 self
68 }
69 pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
71 &self.bot_id
72 }
73 pub fn disabled(mut self, input: bool) -> Self {
75 self.disabled = ::std::option::Option::Some(input);
76 self
77 }
78 pub fn set_disabled(mut self, input: ::std::option::Option<bool>) -> Self {
80 self.disabled = input;
81 self
82 }
83 pub fn get_disabled(&self) -> &::std::option::Option<bool> {
85 &self.disabled
86 }
87 pub fn build(self) -> ::std::result::Result<crate::operation::update_bot::UpdateBotInput, ::aws_smithy_types::error::operation::BuildError> {
89 ::std::result::Result::Ok(crate::operation::update_bot::UpdateBotInput {
90 account_id: self.account_id,
91 bot_id: self.bot_id,
92 disabled: self.disabled,
93 })
94 }
95}