aws_sdk_schemas/operation/update_discoverer/
_update_discoverer_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateDiscovererInput {
6 pub description: ::std::option::Option<::std::string::String>,
8 pub discoverer_id: ::std::option::Option<::std::string::String>,
10 pub cross_account: ::std::option::Option<bool>,
12}
13impl UpdateDiscovererInput {
14 pub fn description(&self) -> ::std::option::Option<&str> {
16 self.description.as_deref()
17 }
18 pub fn discoverer_id(&self) -> ::std::option::Option<&str> {
20 self.discoverer_id.as_deref()
21 }
22 pub fn cross_account(&self) -> ::std::option::Option<bool> {
24 self.cross_account
25 }
26}
27impl UpdateDiscovererInput {
28 pub fn builder() -> crate::operation::update_discoverer::builders::UpdateDiscovererInputBuilder {
30 crate::operation::update_discoverer::builders::UpdateDiscovererInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct UpdateDiscovererInputBuilder {
38 pub(crate) description: ::std::option::Option<::std::string::String>,
39 pub(crate) discoverer_id: ::std::option::Option<::std::string::String>,
40 pub(crate) cross_account: ::std::option::Option<bool>,
41}
42impl UpdateDiscovererInputBuilder {
43 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
45 self.description = ::std::option::Option::Some(input.into());
46 self
47 }
48 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
50 self.description = input;
51 self
52 }
53 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
55 &self.description
56 }
57 pub fn discoverer_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60 self.discoverer_id = ::std::option::Option::Some(input.into());
61 self
62 }
63 pub fn set_discoverer_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65 self.discoverer_id = input;
66 self
67 }
68 pub fn get_discoverer_id(&self) -> &::std::option::Option<::std::string::String> {
70 &self.discoverer_id
71 }
72 pub fn cross_account(mut self, input: bool) -> Self {
74 self.cross_account = ::std::option::Option::Some(input);
75 self
76 }
77 pub fn set_cross_account(mut self, input: ::std::option::Option<bool>) -> Self {
79 self.cross_account = input;
80 self
81 }
82 pub fn get_cross_account(&self) -> &::std::option::Option<bool> {
84 &self.cross_account
85 }
86 pub fn build(
88 self,
89 ) -> ::std::result::Result<crate::operation::update_discoverer::UpdateDiscovererInput, ::aws_smithy_types::error::operation::BuildError> {
90 ::std::result::Result::Ok(crate::operation::update_discoverer::UpdateDiscovererInput {
91 description: self.description,
92 discoverer_id: self.discoverer_id,
93 cross_account: self.cross_account,
94 })
95 }
96}