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
// 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 CreateFileSystemOutput {
/// <p>The time when the file system was created, in seconds since 1970-01-01T00:00:00Z (Unix epoch time).</p>
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The ARN for the S3 file system, in the format <code>arn:aws:s3files:region:account-id:file-system/file-system-id</code>.</p>
pub file_system_arn: ::std::option::Option<::std::string::String>,
/// <p>The ID of the file system, assigned by S3 Files. This ID is used to reference the file system in subsequent API calls.</p>
pub file_system_id: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the S3 bucket associated with the file system.</p>
pub bucket: ::std::option::Option<::std::string::String>,
/// <p>The prefix within the S3 bucket that scopes the file system access.</p>
pub prefix: ::std::string::String,
/// <p>The client token used for idempotency.</p>
pub client_token: ::std::option::Option<::std::string::String>,
/// <p>The ARN or alias of the KMS key used for encryption.</p>
pub kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>The lifecycle state of the file system. Valid values are: <code>AVAILABLE</code> (the file system is available for use), <code>CREATING</code> (the file system is being created), <code>DELETING</code> (the file system is being deleted), <code>DELETED</code> (the file system has been deleted), <code>ERROR</code> (the file system is in an error state), or <code>UPDATING</code> (the file system is being updated).</p>
pub status: ::std::option::Option<crate::types::LifeCycleState>,
/// <p>Additional information about the file system status. This field provides more details when the status is <code>ERROR</code>, or during state transitions.</p>
pub status_message: ::std::option::Option<::std::string::String>,
/// <p>The ARN of the IAM role used for S3 access.</p>
pub role_arn: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Web Services account ID of the file system owner.</p>
pub owner_id: ::std::option::Option<::std::string::String>,
/// <p>The tags associated with the file system.</p>
pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
/// <p>The name of the file system, derived from the <code>Name</code> tag if present.</p>
pub name: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl CreateFileSystemOutput {
/// <p>The time when the file system was created, in seconds since 1970-01-01T00:00:00Z (Unix epoch time).</p>
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
/// <p>The ARN for the S3 file system, in the format <code>arn:aws:s3files:region:account-id:file-system/file-system-id</code>.</p>
pub fn file_system_arn(&self) -> ::std::option::Option<&str> {
self.file_system_arn.as_deref()
}
/// <p>The ID of the file system, assigned by S3 Files. This ID is used to reference the file system in subsequent API calls.</p>
pub fn file_system_id(&self) -> ::std::option::Option<&str> {
self.file_system_id.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the S3 bucket associated with the file system.</p>
pub fn bucket(&self) -> ::std::option::Option<&str> {
self.bucket.as_deref()
}
/// <p>The prefix within the S3 bucket that scopes the file system access.</p>
pub fn prefix(&self) -> &str {
use std::ops::Deref;
self.prefix.deref()
}
/// <p>The client token used for idempotency.</p>
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
/// <p>The ARN or alias of the KMS key used for encryption.</p>
pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
self.kms_key_id.as_deref()
}
/// <p>The lifecycle state of the file system. Valid values are: <code>AVAILABLE</code> (the file system is available for use), <code>CREATING</code> (the file system is being created), <code>DELETING</code> (the file system is being deleted), <code>DELETED</code> (the file system has been deleted), <code>ERROR</code> (the file system is in an error state), or <code>UPDATING</code> (the file system is being updated).</p>
pub fn status(&self) -> ::std::option::Option<&crate::types::LifeCycleState> {
self.status.as_ref()
}
/// <p>Additional information about the file system status. This field provides more details when the status is <code>ERROR</code>, or during state transitions.</p>
pub fn status_message(&self) -> ::std::option::Option<&str> {
self.status_message.as_deref()
}
/// <p>The ARN of the IAM role used for S3 access.</p>
pub fn role_arn(&self) -> ::std::option::Option<&str> {
self.role_arn.as_deref()
}
/// <p>The Amazon Web Services account ID of the file system owner.</p>
pub fn owner_id(&self) -> ::std::option::Option<&str> {
self.owner_id.as_deref()
}
/// <p>The tags associated with the file system.</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 `.tags.is_none()`.
pub fn tags(&self) -> &[crate::types::Tag] {
self.tags.as_deref().unwrap_or_default()
}
/// <p>The name of the file system, derived from the <code>Name</code> tag if present.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
}
impl ::aws_types::request_id::RequestId for CreateFileSystemOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateFileSystemOutput {
/// Creates a new builder-style object to manufacture [`CreateFileSystemOutput`](crate::operation::create_file_system::CreateFileSystemOutput).
pub fn builder() -> crate::operation::create_file_system::builders::CreateFileSystemOutputBuilder {
crate::operation::create_file_system::builders::CreateFileSystemOutputBuilder::default()
}
}
/// A builder for [`CreateFileSystemOutput`](crate::operation::create_file_system::CreateFileSystemOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateFileSystemOutputBuilder {
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) file_system_arn: ::std::option::Option<::std::string::String>,
pub(crate) file_system_id: ::std::option::Option<::std::string::String>,
pub(crate) bucket: ::std::option::Option<::std::string::String>,
pub(crate) prefix: ::std::option::Option<::std::string::String>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::LifeCycleState>,
pub(crate) status_message: ::std::option::Option<::std::string::String>,
pub(crate) role_arn: ::std::option::Option<::std::string::String>,
pub(crate) owner_id: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
pub(crate) name: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl CreateFileSystemOutputBuilder {
/// <p>The time when the file system was created, in seconds since 1970-01-01T00:00:00Z (Unix epoch time).</p>
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
/// <p>The time when the file system was created, in seconds since 1970-01-01T00:00:00Z (Unix epoch time).</p>
pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time = input;
self
}
/// <p>The time when the file system was created, in seconds since 1970-01-01T00:00:00Z (Unix epoch time).</p>
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
/// <p>The ARN for the S3 file system, in the format <code>arn:aws:s3files:region:account-id:file-system/file-system-id</code>.</p>
pub fn file_system_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.file_system_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN for the S3 file system, in the format <code>arn:aws:s3files:region:account-id:file-system/file-system-id</code>.</p>
pub fn set_file_system_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.file_system_arn = input;
self
}
/// <p>The ARN for the S3 file system, in the format <code>arn:aws:s3files:region:account-id:file-system/file-system-id</code>.</p>
pub fn get_file_system_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.file_system_arn
}
/// <p>The ID of the file system, assigned by S3 Files. This ID is used to reference the file system in subsequent API calls.</p>
pub fn file_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.file_system_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the file system, assigned by S3 Files. This ID is used to reference the file system in subsequent API calls.</p>
pub fn set_file_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.file_system_id = input;
self
}
/// <p>The ID of the file system, assigned by S3 Files. This ID is used to reference the file system in subsequent API calls.</p>
pub fn get_file_system_id(&self) -> &::std::option::Option<::std::string::String> {
&self.file_system_id
}
/// <p>The Amazon Resource Name (ARN) of the S3 bucket associated with the file system.</p>
pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bucket = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the S3 bucket associated with the file system.</p>
pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bucket = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the S3 bucket associated with the file system.</p>
pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
&self.bucket
}
/// <p>The prefix within the S3 bucket that scopes the file system access.</p>
pub fn prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.prefix = ::std::option::Option::Some(input.into());
self
}
/// <p>The prefix within the S3 bucket that scopes the file system access.</p>
pub fn set_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.prefix = input;
self
}
/// <p>The prefix within the S3 bucket that scopes the file system access.</p>
pub fn get_prefix(&self) -> &::std::option::Option<::std::string::String> {
&self.prefix
}
/// <p>The client token used for idempotency.</p>
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
/// <p>The client token used for idempotency.</p>
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
/// <p>The client token used for idempotency.</p>
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
/// <p>The ARN or alias of the KMS key used for encryption.</p>
pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN or alias of the KMS key used for encryption.</p>
pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_id = input;
self
}
/// <p>The ARN or alias of the KMS key used for encryption.</p>
pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_id
}
/// <p>The lifecycle state of the file system. Valid values are: <code>AVAILABLE</code> (the file system is available for use), <code>CREATING</code> (the file system is being created), <code>DELETING</code> (the file system is being deleted), <code>DELETED</code> (the file system has been deleted), <code>ERROR</code> (the file system is in an error state), or <code>UPDATING</code> (the file system is being updated).</p>
pub fn status(mut self, input: crate::types::LifeCycleState) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The lifecycle state of the file system. Valid values are: <code>AVAILABLE</code> (the file system is available for use), <code>CREATING</code> (the file system is being created), <code>DELETING</code> (the file system is being deleted), <code>DELETED</code> (the file system has been deleted), <code>ERROR</code> (the file system is in an error state), or <code>UPDATING</code> (the file system is being updated).</p>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::LifeCycleState>) -> Self {
self.status = input;
self
}
/// <p>The lifecycle state of the file system. Valid values are: <code>AVAILABLE</code> (the file system is available for use), <code>CREATING</code> (the file system is being created), <code>DELETING</code> (the file system is being deleted), <code>DELETED</code> (the file system has been deleted), <code>ERROR</code> (the file system is in an error state), or <code>UPDATING</code> (the file system is being updated).</p>
pub fn get_status(&self) -> &::std::option::Option<crate::types::LifeCycleState> {
&self.status
}
/// <p>Additional information about the file system status. This field provides more details when the status is <code>ERROR</code>, or during state transitions.</p>
pub fn status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status_message = ::std::option::Option::Some(input.into());
self
}
/// <p>Additional information about the file system status. This field provides more details when the status is <code>ERROR</code>, or during state transitions.</p>
pub fn set_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status_message = input;
self
}
/// <p>Additional information about the file system status. This field provides more details when the status is <code>ERROR</code>, or during state transitions.</p>
pub fn get_status_message(&self) -> &::std::option::Option<::std::string::String> {
&self.status_message
}
/// <p>The ARN of the IAM role used for S3 access.</p>
pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.role_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the IAM role used for S3 access.</p>
pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.role_arn = input;
self
}
/// <p>The ARN of the IAM role used for S3 access.</p>
pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.role_arn
}
/// <p>The Amazon Web Services account ID of the file system owner.</p>
pub fn owner_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.owner_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Web Services account ID of the file system owner.</p>
pub fn set_owner_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.owner_id = input;
self
}
/// <p>The Amazon Web Services account ID of the file system owner.</p>
pub fn get_owner_id(&self) -> &::std::option::Option<::std::string::String> {
&self.owner_id
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The tags associated with the file system.</p>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = ::std::option::Option::Some(v);
self
}
/// <p>The tags associated with the file system.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.tags = input;
self
}
/// <p>The tags associated with the file system.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
&self.tags
}
/// <p>The name of the file system, derived from the <code>Name</code> tag if present.</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 file system, derived from the <code>Name</code> tag if present.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the file system, derived from the <code>Name</code> tag if present.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
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 [`CreateFileSystemOutput`](crate::operation::create_file_system::CreateFileSystemOutput).
pub fn build(self) -> crate::operation::create_file_system::CreateFileSystemOutput {
crate::operation::create_file_system::CreateFileSystemOutput {
creation_time: self.creation_time,
file_system_arn: self.file_system_arn,
file_system_id: self.file_system_id,
bucket: self.bucket,
prefix: self.prefix.unwrap_or_default(),
client_token: self.client_token,
kms_key_id: self.kms_key_id,
status: self.status,
status_message: self.status_message,
role_arn: self.role_arn,
owner_id: self.owner_id,
tags: self.tags,
name: self.name,
_request_id: self._request_id,
}
}
}