aws_sdk_datazone/operation/update_domain/
_update_domain_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateDomainInput {
6 pub identifier: ::std::option::Option<::std::string::String>,
8 pub description: ::std::option::Option<::std::string::String>,
10 pub single_sign_on: ::std::option::Option<crate::types::SingleSignOn>,
12 pub domain_execution_role: ::std::option::Option<::std::string::String>,
14 pub service_role: ::std::option::Option<::std::string::String>,
16 pub name: ::std::option::Option<::std::string::String>,
18 pub client_token: ::std::option::Option<::std::string::String>,
20}
21impl UpdateDomainInput {
22 pub fn identifier(&self) -> ::std::option::Option<&str> {
24 self.identifier.as_deref()
25 }
26 pub fn description(&self) -> ::std::option::Option<&str> {
28 self.description.as_deref()
29 }
30 pub fn single_sign_on(&self) -> ::std::option::Option<&crate::types::SingleSignOn> {
32 self.single_sign_on.as_ref()
33 }
34 pub fn domain_execution_role(&self) -> ::std::option::Option<&str> {
36 self.domain_execution_role.as_deref()
37 }
38 pub fn service_role(&self) -> ::std::option::Option<&str> {
40 self.service_role.as_deref()
41 }
42 pub fn name(&self) -> ::std::option::Option<&str> {
44 self.name.as_deref()
45 }
46 pub fn client_token(&self) -> ::std::option::Option<&str> {
48 self.client_token.as_deref()
49 }
50}
51impl UpdateDomainInput {
52 pub fn builder() -> crate::operation::update_domain::builders::UpdateDomainInputBuilder {
54 crate::operation::update_domain::builders::UpdateDomainInputBuilder::default()
55 }
56}
57
58#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
60#[non_exhaustive]
61pub struct UpdateDomainInputBuilder {
62 pub(crate) identifier: ::std::option::Option<::std::string::String>,
63 pub(crate) description: ::std::option::Option<::std::string::String>,
64 pub(crate) single_sign_on: ::std::option::Option<crate::types::SingleSignOn>,
65 pub(crate) domain_execution_role: ::std::option::Option<::std::string::String>,
66 pub(crate) service_role: ::std::option::Option<::std::string::String>,
67 pub(crate) name: ::std::option::Option<::std::string::String>,
68 pub(crate) client_token: ::std::option::Option<::std::string::String>,
69}
70impl UpdateDomainInputBuilder {
71 pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
74 self.identifier = ::std::option::Option::Some(input.into());
75 self
76 }
77 pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
79 self.identifier = input;
80 self
81 }
82 pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
84 &self.identifier
85 }
86 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
88 self.description = ::std::option::Option::Some(input.into());
89 self
90 }
91 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
93 self.description = input;
94 self
95 }
96 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
98 &self.description
99 }
100 pub fn single_sign_on(mut self, input: crate::types::SingleSignOn) -> Self {
102 self.single_sign_on = ::std::option::Option::Some(input);
103 self
104 }
105 pub fn set_single_sign_on(mut self, input: ::std::option::Option<crate::types::SingleSignOn>) -> Self {
107 self.single_sign_on = input;
108 self
109 }
110 pub fn get_single_sign_on(&self) -> &::std::option::Option<crate::types::SingleSignOn> {
112 &self.single_sign_on
113 }
114 pub fn domain_execution_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
116 self.domain_execution_role = ::std::option::Option::Some(input.into());
117 self
118 }
119 pub fn set_domain_execution_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
121 self.domain_execution_role = input;
122 self
123 }
124 pub fn get_domain_execution_role(&self) -> &::std::option::Option<::std::string::String> {
126 &self.domain_execution_role
127 }
128 pub fn service_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.service_role = ::std::option::Option::Some(input.into());
131 self
132 }
133 pub fn set_service_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.service_role = input;
136 self
137 }
138 pub fn get_service_role(&self) -> &::std::option::Option<::std::string::String> {
140 &self.service_role
141 }
142 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144 self.name = ::std::option::Option::Some(input.into());
145 self
146 }
147 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149 self.name = input;
150 self
151 }
152 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
154 &self.name
155 }
156 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158 self.client_token = ::std::option::Option::Some(input.into());
159 self
160 }
161 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
163 self.client_token = input;
164 self
165 }
166 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
168 &self.client_token
169 }
170 pub fn build(
172 self,
173 ) -> ::std::result::Result<crate::operation::update_domain::UpdateDomainInput, ::aws_smithy_types::error::operation::BuildError> {
174 ::std::result::Result::Ok(crate::operation::update_domain::UpdateDomainInput {
175 identifier: self.identifier,
176 description: self.description,
177 single_sign_on: self.single_sign_on,
178 domain_execution_role: self.domain_execution_role,
179 service_role: self.service_role,
180 name: self.name,
181 client_token: self.client_token,
182 })
183 }
184}