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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Provides a description of an EFS file system access point.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateAccessPointOutput {
/// <p>The opaque string specified in the request to ensure idempotent creation.</p>
pub client_token: ::std::option::Option<::std::string::String>,
/// <p>The name of the access point. This is the value of the <code>Name</code> tag.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The tags associated with the access point, presented as an array of Tag objects.</p>
pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
/// <p>The ID of the access point, assigned by Amazon EFS.</p>
pub access_point_id: ::std::option::Option<::std::string::String>,
/// <p>The unique Amazon Resource Name (ARN) associated with the access point.</p>
pub access_point_arn: ::std::option::Option<::std::string::String>,
/// <p>The ID of the EFS file system that the access point applies to.</p>
pub file_system_id: ::std::option::Option<::std::string::String>,
/// <p>The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point.</p>
pub posix_user: ::std::option::Option<crate::types::PosixUser>,
/// <p>The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point.</p>
pub root_directory: ::std::option::Option<crate::types::RootDirectory>,
/// <p>Identifies the Amazon Web Services account that owns the access point resource.</p>
pub owner_id: ::std::option::Option<::std::string::String>,
/// <p>Identifies the lifecycle phase of the access point.</p>
pub life_cycle_state: ::std::option::Option<crate::types::LifeCycleState>,
_request_id: Option<String>,
}
impl CreateAccessPointOutput {
/// <p>The opaque string specified in the request to ensure idempotent creation.</p>
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
/// <p>The name of the access point. This is the value of the <code>Name</code> tag.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The tags associated with the access point, presented as an array of Tag objects.</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 ID of the access point, assigned by Amazon EFS.</p>
pub fn access_point_id(&self) -> ::std::option::Option<&str> {
self.access_point_id.as_deref()
}
/// <p>The unique Amazon Resource Name (ARN) associated with the access point.</p>
pub fn access_point_arn(&self) -> ::std::option::Option<&str> {
self.access_point_arn.as_deref()
}
/// <p>The ID of the EFS file system that the access point applies to.</p>
pub fn file_system_id(&self) -> ::std::option::Option<&str> {
self.file_system_id.as_deref()
}
/// <p>The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point.</p>
pub fn posix_user(&self) -> ::std::option::Option<&crate::types::PosixUser> {
self.posix_user.as_ref()
}
/// <p>The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point.</p>
pub fn root_directory(&self) -> ::std::option::Option<&crate::types::RootDirectory> {
self.root_directory.as_ref()
}
/// <p>Identifies the Amazon Web Services account that owns the access point resource.</p>
pub fn owner_id(&self) -> ::std::option::Option<&str> {
self.owner_id.as_deref()
}
/// <p>Identifies the lifecycle phase of the access point.</p>
pub fn life_cycle_state(&self) -> ::std::option::Option<&crate::types::LifeCycleState> {
self.life_cycle_state.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateAccessPointOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateAccessPointOutput {
/// Creates a new builder-style object to manufacture [`CreateAccessPointOutput`](crate::operation::create_access_point::CreateAccessPointOutput).
pub fn builder() -> crate::operation::create_access_point::builders::CreateAccessPointOutputBuilder {
crate::operation::create_access_point::builders::CreateAccessPointOutputBuilder::default()
}
}
/// A builder for [`CreateAccessPointOutput`](crate::operation::create_access_point::CreateAccessPointOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateAccessPointOutputBuilder {
pub(crate) client_token: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
pub(crate) access_point_id: ::std::option::Option<::std::string::String>,
pub(crate) access_point_arn: ::std::option::Option<::std::string::String>,
pub(crate) file_system_id: ::std::option::Option<::std::string::String>,
pub(crate) posix_user: ::std::option::Option<crate::types::PosixUser>,
pub(crate) root_directory: ::std::option::Option<crate::types::RootDirectory>,
pub(crate) owner_id: ::std::option::Option<::std::string::String>,
pub(crate) life_cycle_state: ::std::option::Option<crate::types::LifeCycleState>,
_request_id: Option<String>,
}
impl CreateAccessPointOutputBuilder {
/// <p>The opaque string specified in the request to ensure idempotent creation.</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 opaque string specified in the request to ensure idempotent creation.</p>
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
/// <p>The opaque string specified in the request to ensure idempotent creation.</p>
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
/// <p>The name of the access point. This is the value of the <code>Name</code> tag.</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 access point. This is the value of the <code>Name</code> tag.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the access point. This is the value of the <code>Name</code> tag.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The tags associated with the access point, presented as an array of Tag objects.</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 access point, presented as an array of Tag objects.</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 access point, presented as an array of Tag objects.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
&self.tags
}
/// <p>The ID of the access point, assigned by Amazon EFS.</p>
pub fn access_point_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.access_point_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the access point, assigned by Amazon EFS.</p>
pub fn set_access_point_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.access_point_id = input;
self
}
/// <p>The ID of the access point, assigned by Amazon EFS.</p>
pub fn get_access_point_id(&self) -> &::std::option::Option<::std::string::String> {
&self.access_point_id
}
/// <p>The unique Amazon Resource Name (ARN) associated with the access point.</p>
pub fn access_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.access_point_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique Amazon Resource Name (ARN) associated with the access point.</p>
pub fn set_access_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.access_point_arn = input;
self
}
/// <p>The unique Amazon Resource Name (ARN) associated with the access point.</p>
pub fn get_access_point_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.access_point_arn
}
/// <p>The ID of the EFS file system that the access point applies to.</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 EFS file system that the access point applies to.</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 EFS file system that the access point applies to.</p>
pub fn get_file_system_id(&self) -> &::std::option::Option<::std::string::String> {
&self.file_system_id
}
/// <p>The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point.</p>
pub fn posix_user(mut self, input: crate::types::PosixUser) -> Self {
self.posix_user = ::std::option::Option::Some(input);
self
}
/// <p>The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point.</p>
pub fn set_posix_user(mut self, input: ::std::option::Option<crate::types::PosixUser>) -> Self {
self.posix_user = input;
self
}
/// <p>The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point.</p>
pub fn get_posix_user(&self) -> &::std::option::Option<crate::types::PosixUser> {
&self.posix_user
}
/// <p>The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point.</p>
pub fn root_directory(mut self, input: crate::types::RootDirectory) -> Self {
self.root_directory = ::std::option::Option::Some(input);
self
}
/// <p>The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point.</p>
pub fn set_root_directory(mut self, input: ::std::option::Option<crate::types::RootDirectory>) -> Self {
self.root_directory = input;
self
}
/// <p>The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point.</p>
pub fn get_root_directory(&self) -> &::std::option::Option<crate::types::RootDirectory> {
&self.root_directory
}
/// <p>Identifies the Amazon Web Services account that owns the access point resource.</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>Identifies the Amazon Web Services account that owns the access point resource.</p>
pub fn set_owner_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.owner_id = input;
self
}
/// <p>Identifies the Amazon Web Services account that owns the access point resource.</p>
pub fn get_owner_id(&self) -> &::std::option::Option<::std::string::String> {
&self.owner_id
}
/// <p>Identifies the lifecycle phase of the access point.</p>
pub fn life_cycle_state(mut self, input: crate::types::LifeCycleState) -> Self {
self.life_cycle_state = ::std::option::Option::Some(input);
self
}
/// <p>Identifies the lifecycle phase of the access point.</p>
pub fn set_life_cycle_state(mut self, input: ::std::option::Option<crate::types::LifeCycleState>) -> Self {
self.life_cycle_state = input;
self
}
/// <p>Identifies the lifecycle phase of the access point.</p>
pub fn get_life_cycle_state(&self) -> &::std::option::Option<crate::types::LifeCycleState> {
&self.life_cycle_state
}
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 [`CreateAccessPointOutput`](crate::operation::create_access_point::CreateAccessPointOutput).
pub fn build(self) -> crate::operation::create_access_point::CreateAccessPointOutput {
crate::operation::create_access_point::CreateAccessPointOutput {
client_token: self.client_token,
name: self.name,
tags: self.tags,
access_point_id: self.access_point_id,
access_point_arn: self.access_point_arn,
file_system_id: self.file_system_id,
posix_user: self.posix_user,
root_directory: self.root_directory,
owner_id: self.owner_id,
life_cycle_state: self.life_cycle_state,
_request_id: self._request_id,
}
}
}