1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateApplicationOutput {
/// <p>The application Amazon Resource Name (ARN).</p>
pub application_id: ::std::option::Option<::std::string::String>,
/// <p>The name of the author publishing the app.</p>
/// <p>Minimum length=1. Maximum length=127.</p>
/// <p>Pattern "^\[a-z0-9\]((\[a-z0-9\]|-(?!-))*\[a-z0-9\])?$";</p>
pub author: ::std::option::Option<::std::string::String>,
/// <p>The date and time this resource was created.</p>
pub creation_time: ::std::option::Option<::std::string::String>,
/// <p>The description of the application.</p>
/// <p>Minimum length=1. Maximum length=256</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>A URL with more information about the application, for example the location of your GitHub repository for the application.</p>
pub home_page_url: ::std::option::Option<::std::string::String>,
/// <p>Whether the author of this application has been verified. This means means that AWS has made a good faith review, as a reasonable and prudent service provider, of the information provided by the requester and has confirmed that the requester's identity is as claimed.</p>
pub is_verified_author: ::std::option::Option<bool>,
/// <p>Labels to improve discovery of apps in search results.</p>
/// <p>Minimum length=1. Maximum length=127. Maximum number of labels: 10</p>
/// <p>Pattern: "^\[a-zA-Z0-9+\\-_:\\/@\]+$";</p>
pub labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>A link to a license file of the app that matches the spdxLicenseID value of your application.</p>
/// <p>Maximum size 5 MB</p>
pub license_url: ::std::option::Option<::std::string::String>,
/// <p>The name of the application.</p>
/// <p>Minimum length=1. Maximum length=140</p>
/// <p>Pattern: "\[a-zA-Z0-9\\-\]+";</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>A link to the readme file in Markdown language that contains a more detailed description of the application and how it works.</p>
/// <p>Maximum size 5 MB</p>
pub readme_url: ::std::option::Option<::std::string::String>,
/// <p>A valid identifier from https://spdx.org/licenses/.</p>
pub spdx_license_id: ::std::option::Option<::std::string::String>,
/// <p>The URL to the public profile of a verified author. This URL is submitted by the author.</p>
pub verified_author_url: ::std::option::Option<::std::string::String>,
/// <p>Version information about the application.</p>
pub version: ::std::option::Option<crate::types::Version>,
_request_id: Option<String>,
}
impl CreateApplicationOutput {
/// <p>The application Amazon Resource Name (ARN).</p>
pub fn application_id(&self) -> ::std::option::Option<&str> {
self.application_id.as_deref()
}
/// <p>The name of the author publishing the app.</p>
/// <p>Minimum length=1. Maximum length=127.</p>
/// <p>Pattern "^\[a-z0-9\]((\[a-z0-9\]|-(?!-))*\[a-z0-9\])?$";</p>
pub fn author(&self) -> ::std::option::Option<&str> {
self.author.as_deref()
}
/// <p>The date and time this resource was created.</p>
pub fn creation_time(&self) -> ::std::option::Option<&str> {
self.creation_time.as_deref()
}
/// <p>The description of the application.</p>
/// <p>Minimum length=1. Maximum length=256</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>A URL with more information about the application, for example the location of your GitHub repository for the application.</p>
pub fn home_page_url(&self) -> ::std::option::Option<&str> {
self.home_page_url.as_deref()
}
/// <p>Whether the author of this application has been verified. This means means that AWS has made a good faith review, as a reasonable and prudent service provider, of the information provided by the requester and has confirmed that the requester's identity is as claimed.</p>
pub fn is_verified_author(&self) -> ::std::option::Option<bool> {
self.is_verified_author
}
/// <p>Labels to improve discovery of apps in search results.</p>
/// <p>Minimum length=1. Maximum length=127. Maximum number of labels: 10</p>
/// <p>Pattern: "^\[a-zA-Z0-9+\\-_:\\/@\]+$";</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.labels.is_none()`.
pub fn labels(&self) -> &[::std::string::String] {
self.labels.as_deref().unwrap_or_default()
}
/// <p>A link to a license file of the app that matches the spdxLicenseID value of your application.</p>
/// <p>Maximum size 5 MB</p>
pub fn license_url(&self) -> ::std::option::Option<&str> {
self.license_url.as_deref()
}
/// <p>The name of the application.</p>
/// <p>Minimum length=1. Maximum length=140</p>
/// <p>Pattern: "\[a-zA-Z0-9\\-\]+";</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>A link to the readme file in Markdown language that contains a more detailed description of the application and how it works.</p>
/// <p>Maximum size 5 MB</p>
pub fn readme_url(&self) -> ::std::option::Option<&str> {
self.readme_url.as_deref()
}
/// <p>A valid identifier from https://spdx.org/licenses/.</p>
pub fn spdx_license_id(&self) -> ::std::option::Option<&str> {
self.spdx_license_id.as_deref()
}
/// <p>The URL to the public profile of a verified author. This URL is submitted by the author.</p>
pub fn verified_author_url(&self) -> ::std::option::Option<&str> {
self.verified_author_url.as_deref()
}
/// <p>Version information about the application.</p>
pub fn version(&self) -> ::std::option::Option<&crate::types::Version> {
self.version.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateApplicationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateApplicationOutput {
/// Creates a new builder-style object to manufacture [`CreateApplicationOutput`](crate::operation::create_application::CreateApplicationOutput).
pub fn builder() -> crate::operation::create_application::builders::CreateApplicationOutputBuilder {
crate::operation::create_application::builders::CreateApplicationOutputBuilder::default()
}
}
/// A builder for [`CreateApplicationOutput`](crate::operation::create_application::CreateApplicationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateApplicationOutputBuilder {
pub(crate) application_id: ::std::option::Option<::std::string::String>,
pub(crate) author: ::std::option::Option<::std::string::String>,
pub(crate) creation_time: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) home_page_url: ::std::option::Option<::std::string::String>,
pub(crate) is_verified_author: ::std::option::Option<bool>,
pub(crate) labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) license_url: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) readme_url: ::std::option::Option<::std::string::String>,
pub(crate) spdx_license_id: ::std::option::Option<::std::string::String>,
pub(crate) verified_author_url: ::std::option::Option<::std::string::String>,
pub(crate) version: ::std::option::Option<crate::types::Version>,
_request_id: Option<String>,
}
impl CreateApplicationOutputBuilder {
/// <p>The application Amazon Resource Name (ARN).</p>
pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The application Amazon Resource Name (ARN).</p>
pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_id = input;
self
}
/// <p>The application Amazon Resource Name (ARN).</p>
pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
&self.application_id
}
/// <p>The name of the author publishing the app.</p>
/// <p>Minimum length=1. Maximum length=127.</p>
/// <p>Pattern "^\[a-z0-9\]((\[a-z0-9\]|-(?!-))*\[a-z0-9\])?$";</p>
pub fn author(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.author = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the author publishing the app.</p>
/// <p>Minimum length=1. Maximum length=127.</p>
/// <p>Pattern "^\[a-z0-9\]((\[a-z0-9\]|-(?!-))*\[a-z0-9\])?$";</p>
pub fn set_author(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.author = input;
self
}
/// <p>The name of the author publishing the app.</p>
/// <p>Minimum length=1. Maximum length=127.</p>
/// <p>Pattern "^\[a-z0-9\]((\[a-z0-9\]|-(?!-))*\[a-z0-9\])?$";</p>
pub fn get_author(&self) -> &::std::option::Option<::std::string::String> {
&self.author
}
/// <p>The date and time this resource was created.</p>
pub fn creation_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.creation_time = ::std::option::Option::Some(input.into());
self
}
/// <p>The date and time this resource was created.</p>
pub fn set_creation_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.creation_time = input;
self
}
/// <p>The date and time this resource was created.</p>
pub fn get_creation_time(&self) -> &::std::option::Option<::std::string::String> {
&self.creation_time
}
/// <p>The description of the application.</p>
/// <p>Minimum length=1. Maximum length=256</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The description of the application.</p>
/// <p>Minimum length=1. Maximum length=256</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description of the application.</p>
/// <p>Minimum length=1. Maximum length=256</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>A URL with more information about the application, for example the location of your GitHub repository for the application.</p>
pub fn home_page_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.home_page_url = ::std::option::Option::Some(input.into());
self
}
/// <p>A URL with more information about the application, for example the location of your GitHub repository for the application.</p>
pub fn set_home_page_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.home_page_url = input;
self
}
/// <p>A URL with more information about the application, for example the location of your GitHub repository for the application.</p>
pub fn get_home_page_url(&self) -> &::std::option::Option<::std::string::String> {
&self.home_page_url
}
/// <p>Whether the author of this application has been verified. This means means that AWS has made a good faith review, as a reasonable and prudent service provider, of the information provided by the requester and has confirmed that the requester's identity is as claimed.</p>
pub fn is_verified_author(mut self, input: bool) -> Self {
self.is_verified_author = ::std::option::Option::Some(input);
self
}
/// <p>Whether the author of this application has been verified. This means means that AWS has made a good faith review, as a reasonable and prudent service provider, of the information provided by the requester and has confirmed that the requester's identity is as claimed.</p>
pub fn set_is_verified_author(mut self, input: ::std::option::Option<bool>) -> Self {
self.is_verified_author = input;
self
}
/// <p>Whether the author of this application has been verified. This means means that AWS has made a good faith review, as a reasonable and prudent service provider, of the information provided by the requester and has confirmed that the requester's identity is as claimed.</p>
pub fn get_is_verified_author(&self) -> &::std::option::Option<bool> {
&self.is_verified_author
}
/// Appends an item to `labels`.
///
/// To override the contents of this collection use [`set_labels`](Self::set_labels).
///
/// <p>Labels to improve discovery of apps in search results.</p>
/// <p>Minimum length=1. Maximum length=127. Maximum number of labels: 10</p>
/// <p>Pattern: "^\[a-zA-Z0-9+\\-_:\\/@\]+$";</p>
pub fn labels(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.labels.unwrap_or_default();
v.push(input.into());
self.labels = ::std::option::Option::Some(v);
self
}
/// <p>Labels to improve discovery of apps in search results.</p>
/// <p>Minimum length=1. Maximum length=127. Maximum number of labels: 10</p>
/// <p>Pattern: "^\[a-zA-Z0-9+\\-_:\\/@\]+$";</p>
pub fn set_labels(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.labels = input;
self
}
/// <p>Labels to improve discovery of apps in search results.</p>
/// <p>Minimum length=1. Maximum length=127. Maximum number of labels: 10</p>
/// <p>Pattern: "^\[a-zA-Z0-9+\\-_:\\/@\]+$";</p>
pub fn get_labels(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.labels
}
/// <p>A link to a license file of the app that matches the spdxLicenseID value of your application.</p>
/// <p>Maximum size 5 MB</p>
pub fn license_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.license_url = ::std::option::Option::Some(input.into());
self
}
/// <p>A link to a license file of the app that matches the spdxLicenseID value of your application.</p>
/// <p>Maximum size 5 MB</p>
pub fn set_license_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.license_url = input;
self
}
/// <p>A link to a license file of the app that matches the spdxLicenseID value of your application.</p>
/// <p>Maximum size 5 MB</p>
pub fn get_license_url(&self) -> &::std::option::Option<::std::string::String> {
&self.license_url
}
/// <p>The name of the application.</p>
/// <p>Minimum length=1. Maximum length=140</p>
/// <p>Pattern: "\[a-zA-Z0-9\\-\]+";</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the application.</p>
/// <p>Minimum length=1. Maximum length=140</p>
/// <p>Pattern: "\[a-zA-Z0-9\\-\]+";</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the application.</p>
/// <p>Minimum length=1. Maximum length=140</p>
/// <p>Pattern: "\[a-zA-Z0-9\\-\]+";</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>A link to the readme file in Markdown language that contains a more detailed description of the application and how it works.</p>
/// <p>Maximum size 5 MB</p>
pub fn readme_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.readme_url = ::std::option::Option::Some(input.into());
self
}
/// <p>A link to the readme file in Markdown language that contains a more detailed description of the application and how it works.</p>
/// <p>Maximum size 5 MB</p>
pub fn set_readme_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.readme_url = input;
self
}
/// <p>A link to the readme file in Markdown language that contains a more detailed description of the application and how it works.</p>
/// <p>Maximum size 5 MB</p>
pub fn get_readme_url(&self) -> &::std::option::Option<::std::string::String> {
&self.readme_url
}
/// <p>A valid identifier from https://spdx.org/licenses/.</p>
pub fn spdx_license_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.spdx_license_id = ::std::option::Option::Some(input.into());
self
}
/// <p>A valid identifier from https://spdx.org/licenses/.</p>
pub fn set_spdx_license_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.spdx_license_id = input;
self
}
/// <p>A valid identifier from https://spdx.org/licenses/.</p>
pub fn get_spdx_license_id(&self) -> &::std::option::Option<::std::string::String> {
&self.spdx_license_id
}
/// <p>The URL to the public profile of a verified author. This URL is submitted by the author.</p>
pub fn verified_author_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.verified_author_url = ::std::option::Option::Some(input.into());
self
}
/// <p>The URL to the public profile of a verified author. This URL is submitted by the author.</p>
pub fn set_verified_author_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.verified_author_url = input;
self
}
/// <p>The URL to the public profile of a verified author. This URL is submitted by the author.</p>
pub fn get_verified_author_url(&self) -> &::std::option::Option<::std::string::String> {
&self.verified_author_url
}
/// <p>Version information about the application.</p>
pub fn version(mut self, input: crate::types::Version) -> Self {
self.version = ::std::option::Option::Some(input);
self
}
/// <p>Version information about the application.</p>
pub fn set_version(mut self, input: ::std::option::Option<crate::types::Version>) -> Self {
self.version = input;
self
}
/// <p>Version information about the application.</p>
pub fn get_version(&self) -> &::std::option::Option<crate::types::Version> {
&self.version
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`CreateApplicationOutput`](crate::operation::create_application::CreateApplicationOutput).
pub fn build(self) -> crate::operation::create_application::CreateApplicationOutput {
crate::operation::create_application::CreateApplicationOutput {
application_id: self.application_id,
author: self.author,
creation_time: self.creation_time,
description: self.description,
home_page_url: self.home_page_url,
is_verified_author: self.is_verified_author,
labels: self.labels,
license_url: self.license_url,
name: self.name,
readme_url: self.readme_url,
spdx_license_id: self.spdx_license_id,
verified_author_url: self.verified_author_url,
version: self.version,
_request_id: self._request_id,
}
}
}