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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>An object that contains the catalog data for a repository. This data is publicly visible in the Amazon ECR Public Gallery.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RepositoryCatalogDataInput {
    /// <p>A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>ARM</code></p></li>
    /// <li>
    /// <p><code>ARM 64</code></p></li>
    /// <li>
    /// <p><code>x86</code></p></li>
    /// <li>
    /// <p><code>x86-64</code></p></li>
    /// </ul>
    pub architectures: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>Linux</code></p></li>
    /// <li>
    /// <p><code>Windows</code></p></li>
    /// </ul>
    pub operating_systems: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The base64-encoded repository logo payload.</p><note>
    /// <p>The repository logo is only publicly visible in the Amazon ECR Public Gallery for verified accounts.</p>
    /// </note>
    pub logo_image_blob: ::std::option::Option<::aws_smithy_types::Blob>,
    /// <p>A detailed description of the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.</p>
    pub about_text: ::std::option::Option<::std::string::String>,
    /// <p>Detailed information about how to use the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.</p>
    pub usage_text: ::std::option::Option<::std::string::String>,
}
impl RepositoryCatalogDataInput {
    /// <p>A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>ARM</code></p></li>
    /// <li>
    /// <p><code>ARM 64</code></p></li>
    /// <li>
    /// <p><code>x86</code></p></li>
    /// <li>
    /// <p><code>x86-64</code></p></li>
    /// </ul>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.architectures.is_none()`.
    pub fn architectures(&self) -> &[::std::string::String] {
        self.architectures.as_deref().unwrap_or_default()
    }
    /// <p>The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>Linux</code></p></li>
    /// <li>
    /// <p><code>Windows</code></p></li>
    /// </ul>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.operating_systems.is_none()`.
    pub fn operating_systems(&self) -> &[::std::string::String] {
        self.operating_systems.as_deref().unwrap_or_default()
    }
    /// <p>The base64-encoded repository logo payload.</p><note>
    /// <p>The repository logo is only publicly visible in the Amazon ECR Public Gallery for verified accounts.</p>
    /// </note>
    pub fn logo_image_blob(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
        self.logo_image_blob.as_ref()
    }
    /// <p>A detailed description of the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.</p>
    pub fn about_text(&self) -> ::std::option::Option<&str> {
        self.about_text.as_deref()
    }
    /// <p>Detailed information about how to use the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.</p>
    pub fn usage_text(&self) -> ::std::option::Option<&str> {
        self.usage_text.as_deref()
    }
}
impl RepositoryCatalogDataInput {
    /// Creates a new builder-style object to manufacture [`RepositoryCatalogDataInput`](crate::types::RepositoryCatalogDataInput).
    pub fn builder() -> crate::types::builders::RepositoryCatalogDataInputBuilder {
        crate::types::builders::RepositoryCatalogDataInputBuilder::default()
    }
}

/// A builder for [`RepositoryCatalogDataInput`](crate::types::RepositoryCatalogDataInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RepositoryCatalogDataInputBuilder {
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) architectures: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) operating_systems: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) logo_image_blob: ::std::option::Option<::aws_smithy_types::Blob>,
    pub(crate) about_text: ::std::option::Option<::std::string::String>,
    pub(crate) usage_text: ::std::option::Option<::std::string::String>,
}
impl RepositoryCatalogDataInputBuilder {
    /// <p>A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.</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>A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// Appends an item to `architectures`.
    ///
    /// To override the contents of this collection use [`set_architectures`](Self::set_architectures).
    ///
    /// <p>The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>ARM</code></p></li>
    /// <li>
    /// <p><code>ARM 64</code></p></li>
    /// <li>
    /// <p><code>x86</code></p></li>
    /// <li>
    /// <p><code>x86-64</code></p></li>
    /// </ul>
    pub fn architectures(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.architectures.unwrap_or_default();
        v.push(input.into());
        self.architectures = ::std::option::Option::Some(v);
        self
    }
    /// <p>The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>ARM</code></p></li>
    /// <li>
    /// <p><code>ARM 64</code></p></li>
    /// <li>
    /// <p><code>x86</code></p></li>
    /// <li>
    /// <p><code>x86-64</code></p></li>
    /// </ul>
    pub fn set_architectures(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.architectures = input;
        self
    }
    /// <p>The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>ARM</code></p></li>
    /// <li>
    /// <p><code>ARM 64</code></p></li>
    /// <li>
    /// <p><code>x86</code></p></li>
    /// <li>
    /// <p><code>x86-64</code></p></li>
    /// </ul>
    pub fn get_architectures(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.architectures
    }
    /// Appends an item to `operating_systems`.
    ///
    /// To override the contents of this collection use [`set_operating_systems`](Self::set_operating_systems).
    ///
    /// <p>The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>Linux</code></p></li>
    /// <li>
    /// <p><code>Windows</code></p></li>
    /// </ul>
    pub fn operating_systems(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.operating_systems.unwrap_or_default();
        v.push(input.into());
        self.operating_systems = ::std::option::Option::Some(v);
        self
    }
    /// <p>The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>Linux</code></p></li>
    /// <li>
    /// <p><code>Windows</code></p></li>
    /// </ul>
    pub fn set_operating_systems(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.operating_systems = input;
        self
    }
    /// <p>The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems appear as badges on the repository and are used as search filters.</p><note>
    /// <p>If an unsupported tag is added to your repository catalog data, it's associated with the repository and can be retrieved using the API but isn't discoverable in the Amazon ECR Public Gallery.</p>
    /// </note>
    /// <ul>
    /// <li>
    /// <p><code>Linux</code></p></li>
    /// <li>
    /// <p><code>Windows</code></p></li>
    /// </ul>
    pub fn get_operating_systems(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.operating_systems
    }
    /// <p>The base64-encoded repository logo payload.</p><note>
    /// <p>The repository logo is only publicly visible in the Amazon ECR Public Gallery for verified accounts.</p>
    /// </note>
    pub fn logo_image_blob(mut self, input: ::aws_smithy_types::Blob) -> Self {
        self.logo_image_blob = ::std::option::Option::Some(input);
        self
    }
    /// <p>The base64-encoded repository logo payload.</p><note>
    /// <p>The repository logo is only publicly visible in the Amazon ECR Public Gallery for verified accounts.</p>
    /// </note>
    pub fn set_logo_image_blob(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
        self.logo_image_blob = input;
        self
    }
    /// <p>The base64-encoded repository logo payload.</p><note>
    /// <p>The repository logo is only publicly visible in the Amazon ECR Public Gallery for verified accounts.</p>
    /// </note>
    pub fn get_logo_image_blob(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
        &self.logo_image_blob
    }
    /// <p>A detailed description of the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.</p>
    pub fn about_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.about_text = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A detailed description of the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.</p>
    pub fn set_about_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.about_text = input;
        self
    }
    /// <p>A detailed description of the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.</p>
    pub fn get_about_text(&self) -> &::std::option::Option<::std::string::String> {
        &self.about_text
    }
    /// <p>Detailed information about how to use the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.</p>
    pub fn usage_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.usage_text = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Detailed information about how to use the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.</p>
    pub fn set_usage_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.usage_text = input;
        self
    }
    /// <p>Detailed information about how to use the contents of the repository. It's publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.</p>
    pub fn get_usage_text(&self) -> &::std::option::Option<::std::string::String> {
        &self.usage_text
    }
    /// Consumes the builder and constructs a [`RepositoryCatalogDataInput`](crate::types::RepositoryCatalogDataInput).
    pub fn build(self) -> crate::types::RepositoryCatalogDataInput {
        crate::types::RepositoryCatalogDataInput {
            description: self.description,
            architectures: self.architectures,
            operating_systems: self.operating_systems,
            logo_image_blob: self.logo_image_blob,
            about_text: self.about_text,
            usage_text: self.usage_text,
        }
    }
}