aws_sdk_appconfig/operation/update_configuration_profile/_update_configuration_profile_output.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateConfigurationProfileOutput {
6 /// <p>The application ID.</p>
7 pub application_id: ::std::option::Option<::std::string::String>,
8 /// <p>The configuration profile ID.</p>
9 pub id: ::std::option::Option<::std::string::String>,
10 /// <p>The name of the configuration profile.</p>
11 pub name: ::std::option::Option<::std::string::String>,
12 /// <p>The configuration profile description.</p>
13 pub description: ::std::option::Option<::std::string::String>,
14 /// <p>The URI location of the configuration.</p>
15 pub location_uri: ::std::option::Option<::std::string::String>,
16 /// <p>The ARN of an IAM role with permission to access the configuration at the specified <code>LocationUri</code>.</p>
17 pub retrieval_role_arn: ::std::option::Option<::std::string::String>,
18 /// <p>A list of methods for validating the configuration.</p>
19 pub validators: ::std::option::Option<::std::vec::Vec<crate::types::Validator>>,
20 /// <p>The type of configurations contained in the profile. AppConfig supports <code>feature flags</code> and <code>freeform</code> configurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values for <code>Type</code>:</p>
21 /// <p><code>AWS.AppConfig.FeatureFlags</code></p>
22 /// <p><code>AWS.Freeform</code></p>
23 pub r#type: ::std::option::Option<::std::string::String>,
24 /// <p>The Amazon Resource Name of the Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for <code>hosted</code> configuration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an KMS key for that particular service.</p>
25 pub kms_key_arn: ::std::option::Option<::std::string::String>,
26 /// <p>The Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.</p>
27 pub kms_key_identifier: ::std::option::Option<::std::string::String>,
28 _request_id: Option<String>,
29}
30impl UpdateConfigurationProfileOutput {
31 /// <p>The application ID.</p>
32 pub fn application_id(&self) -> ::std::option::Option<&str> {
33 self.application_id.as_deref()
34 }
35 /// <p>The configuration profile ID.</p>
36 pub fn id(&self) -> ::std::option::Option<&str> {
37 self.id.as_deref()
38 }
39 /// <p>The name of the configuration profile.</p>
40 pub fn name(&self) -> ::std::option::Option<&str> {
41 self.name.as_deref()
42 }
43 /// <p>The configuration profile description.</p>
44 pub fn description(&self) -> ::std::option::Option<&str> {
45 self.description.as_deref()
46 }
47 /// <p>The URI location of the configuration.</p>
48 pub fn location_uri(&self) -> ::std::option::Option<&str> {
49 self.location_uri.as_deref()
50 }
51 /// <p>The ARN of an IAM role with permission to access the configuration at the specified <code>LocationUri</code>.</p>
52 pub fn retrieval_role_arn(&self) -> ::std::option::Option<&str> {
53 self.retrieval_role_arn.as_deref()
54 }
55 /// <p>A list of methods for validating the configuration.</p>
56 ///
57 /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.validators.is_none()`.
58 pub fn validators(&self) -> &[crate::types::Validator] {
59 self.validators.as_deref().unwrap_or_default()
60 }
61 /// <p>The type of configurations contained in the profile. AppConfig supports <code>feature flags</code> and <code>freeform</code> configurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values for <code>Type</code>:</p>
62 /// <p><code>AWS.AppConfig.FeatureFlags</code></p>
63 /// <p><code>AWS.Freeform</code></p>
64 pub fn r#type(&self) -> ::std::option::Option<&str> {
65 self.r#type.as_deref()
66 }
67 /// <p>The Amazon Resource Name of the Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for <code>hosted</code> configuration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an KMS key for that particular service.</p>
68 pub fn kms_key_arn(&self) -> ::std::option::Option<&str> {
69 self.kms_key_arn.as_deref()
70 }
71 /// <p>The Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.</p>
72 pub fn kms_key_identifier(&self) -> ::std::option::Option<&str> {
73 self.kms_key_identifier.as_deref()
74 }
75}
76impl ::aws_types::request_id::RequestId for UpdateConfigurationProfileOutput {
77 fn request_id(&self) -> Option<&str> {
78 self._request_id.as_deref()
79 }
80}
81impl UpdateConfigurationProfileOutput {
82 /// Creates a new builder-style object to manufacture [`UpdateConfigurationProfileOutput`](crate::operation::update_configuration_profile::UpdateConfigurationProfileOutput).
83 pub fn builder() -> crate::operation::update_configuration_profile::builders::UpdateConfigurationProfileOutputBuilder {
84 crate::operation::update_configuration_profile::builders::UpdateConfigurationProfileOutputBuilder::default()
85 }
86}
87
88/// A builder for [`UpdateConfigurationProfileOutput`](crate::operation::update_configuration_profile::UpdateConfigurationProfileOutput).
89#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
90#[non_exhaustive]
91pub struct UpdateConfigurationProfileOutputBuilder {
92 pub(crate) application_id: ::std::option::Option<::std::string::String>,
93 pub(crate) id: ::std::option::Option<::std::string::String>,
94 pub(crate) name: ::std::option::Option<::std::string::String>,
95 pub(crate) description: ::std::option::Option<::std::string::String>,
96 pub(crate) location_uri: ::std::option::Option<::std::string::String>,
97 pub(crate) retrieval_role_arn: ::std::option::Option<::std::string::String>,
98 pub(crate) validators: ::std::option::Option<::std::vec::Vec<crate::types::Validator>>,
99 pub(crate) r#type: ::std::option::Option<::std::string::String>,
100 pub(crate) kms_key_arn: ::std::option::Option<::std::string::String>,
101 pub(crate) kms_key_identifier: ::std::option::Option<::std::string::String>,
102 _request_id: Option<String>,
103}
104impl UpdateConfigurationProfileOutputBuilder {
105 /// <p>The application ID.</p>
106 pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
107 self.application_id = ::std::option::Option::Some(input.into());
108 self
109 }
110 /// <p>The application ID.</p>
111 pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
112 self.application_id = input;
113 self
114 }
115 /// <p>The application ID.</p>
116 pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
117 &self.application_id
118 }
119 /// <p>The configuration profile ID.</p>
120 pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
121 self.id = ::std::option::Option::Some(input.into());
122 self
123 }
124 /// <p>The configuration profile ID.</p>
125 pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
126 self.id = input;
127 self
128 }
129 /// <p>The configuration profile ID.</p>
130 pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
131 &self.id
132 }
133 /// <p>The name of the configuration profile.</p>
134 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
135 self.name = ::std::option::Option::Some(input.into());
136 self
137 }
138 /// <p>The name of the configuration profile.</p>
139 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
140 self.name = input;
141 self
142 }
143 /// <p>The name of the configuration profile.</p>
144 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
145 &self.name
146 }
147 /// <p>The configuration profile description.</p>
148 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
149 self.description = ::std::option::Option::Some(input.into());
150 self
151 }
152 /// <p>The configuration profile description.</p>
153 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
154 self.description = input;
155 self
156 }
157 /// <p>The configuration profile description.</p>
158 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
159 &self.description
160 }
161 /// <p>The URI location of the configuration.</p>
162 pub fn location_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
163 self.location_uri = ::std::option::Option::Some(input.into());
164 self
165 }
166 /// <p>The URI location of the configuration.</p>
167 pub fn set_location_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
168 self.location_uri = input;
169 self
170 }
171 /// <p>The URI location of the configuration.</p>
172 pub fn get_location_uri(&self) -> &::std::option::Option<::std::string::String> {
173 &self.location_uri
174 }
175 /// <p>The ARN of an IAM role with permission to access the configuration at the specified <code>LocationUri</code>.</p>
176 pub fn retrieval_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
177 self.retrieval_role_arn = ::std::option::Option::Some(input.into());
178 self
179 }
180 /// <p>The ARN of an IAM role with permission to access the configuration at the specified <code>LocationUri</code>.</p>
181 pub fn set_retrieval_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
182 self.retrieval_role_arn = input;
183 self
184 }
185 /// <p>The ARN of an IAM role with permission to access the configuration at the specified <code>LocationUri</code>.</p>
186 pub fn get_retrieval_role_arn(&self) -> &::std::option::Option<::std::string::String> {
187 &self.retrieval_role_arn
188 }
189 /// Appends an item to `validators`.
190 ///
191 /// To override the contents of this collection use [`set_validators`](Self::set_validators).
192 ///
193 /// <p>A list of methods for validating the configuration.</p>
194 pub fn validators(mut self, input: crate::types::Validator) -> Self {
195 let mut v = self.validators.unwrap_or_default();
196 v.push(input);
197 self.validators = ::std::option::Option::Some(v);
198 self
199 }
200 /// <p>A list of methods for validating the configuration.</p>
201 pub fn set_validators(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Validator>>) -> Self {
202 self.validators = input;
203 self
204 }
205 /// <p>A list of methods for validating the configuration.</p>
206 pub fn get_validators(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Validator>> {
207 &self.validators
208 }
209 /// <p>The type of configurations contained in the profile. AppConfig supports <code>feature flags</code> and <code>freeform</code> configurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values for <code>Type</code>:</p>
210 /// <p><code>AWS.AppConfig.FeatureFlags</code></p>
211 /// <p><code>AWS.Freeform</code></p>
212 pub fn r#type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
213 self.r#type = ::std::option::Option::Some(input.into());
214 self
215 }
216 /// <p>The type of configurations contained in the profile. AppConfig supports <code>feature flags</code> and <code>freeform</code> configurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values for <code>Type</code>:</p>
217 /// <p><code>AWS.AppConfig.FeatureFlags</code></p>
218 /// <p><code>AWS.Freeform</code></p>
219 pub fn set_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
220 self.r#type = input;
221 self
222 }
223 /// <p>The type of configurations contained in the profile. AppConfig supports <code>feature flags</code> and <code>freeform</code> configurations. We recommend you create feature flag configurations to enable or disable new features and freeform configurations to distribute configurations to an application. When calling this API, enter one of the following values for <code>Type</code>:</p>
224 /// <p><code>AWS.AppConfig.FeatureFlags</code></p>
225 /// <p><code>AWS.Freeform</code></p>
226 pub fn get_type(&self) -> &::std::option::Option<::std::string::String> {
227 &self.r#type
228 }
229 /// <p>The Amazon Resource Name of the Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for <code>hosted</code> configuration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an KMS key for that particular service.</p>
230 pub fn kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
231 self.kms_key_arn = ::std::option::Option::Some(input.into());
232 self
233 }
234 /// <p>The Amazon Resource Name of the Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for <code>hosted</code> configuration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an KMS key for that particular service.</p>
235 pub fn set_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
236 self.kms_key_arn = input;
237 self
238 }
239 /// <p>The Amazon Resource Name of the Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for <code>hosted</code> configuration types. To encrypt data managed in other configuration stores, see the documentation for how to specify an KMS key for that particular service.</p>
240 pub fn get_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
241 &self.kms_key_arn
242 }
243 /// <p>The Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.</p>
244 pub fn kms_key_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
245 self.kms_key_identifier = ::std::option::Option::Some(input.into());
246 self
247 }
248 /// <p>The Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.</p>
249 pub fn set_kms_key_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
250 self.kms_key_identifier = input;
251 self
252 }
253 /// <p>The Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.</p>
254 pub fn get_kms_key_identifier(&self) -> &::std::option::Option<::std::string::String> {
255 &self.kms_key_identifier
256 }
257 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
258 self._request_id = Some(request_id.into());
259 self
260 }
261
262 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
263 self._request_id = request_id;
264 self
265 }
266 /// Consumes the builder and constructs a [`UpdateConfigurationProfileOutput`](crate::operation::update_configuration_profile::UpdateConfigurationProfileOutput).
267 pub fn build(self) -> crate::operation::update_configuration_profile::UpdateConfigurationProfileOutput {
268 crate::operation::update_configuration_profile::UpdateConfigurationProfileOutput {
269 application_id: self.application_id,
270 id: self.id,
271 name: self.name,
272 description: self.description,
273 location_uri: self.location_uri,
274 retrieval_role_arn: self.retrieval_role_arn,
275 validators: self.validators,
276 r#type: self.r#type,
277 kms_key_arn: self.kms_key_arn,
278 kms_key_identifier: self.kms_key_identifier,
279 _request_id: self._request_id,
280 }
281 }
282}