aws_sdk_storagegateway/operation/create_nfs_file_share/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_nfs_file_share::_create_nfs_file_share_output::CreateNfsFileShareOutputBuilder;
3
4pub use crate::operation::create_nfs_file_share::_create_nfs_file_share_input::CreateNfsFileShareInputBuilder;
5
6impl crate::operation::create_nfs_file_share::builders::CreateNfsFileShareInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_nfs_file_share::CreateNFSFileShareError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_nfs_file_share();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateNFSFileShare`.
24///
25/// <p>Creates a Network File System (NFS) file share on an existing S3 File Gateway. In Storage Gateway, a file share is a file system mount point backed by Amazon S3 cloud storage. Storage Gateway exposes file shares using an NFS interface. This operation is only supported for S3 File Gateways.</p><important>
26/// <p>S3 File gateway requires Security Token Service (Amazon Web Services STS) to be activated to enable you to create a file share. Make sure Amazon Web Services STS is activated in the Amazon Web Services Region you are creating your S3 File Gateway in. If Amazon Web Services STS is not activated in the Amazon Web Services Region, activate it. For information about how to activate Amazon Web Services STS, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating and deactivating Amazon Web Services STS in an Amazon Web Services Region</a> in the <i>Identity and Access Management User Guide</i>.</p>
27/// <p>S3 File Gateways do not support creating hard or symbolic links on a file share.</p>
28/// </important>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct CreateNFSFileShareFluentBuilder {
31    handle: ::std::sync::Arc<crate::client::Handle>,
32    inner: crate::operation::create_nfs_file_share::builders::CreateNfsFileShareInputBuilder,
33    config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36    crate::client::customize::internal::CustomizableSend<
37        crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
38        crate::operation::create_nfs_file_share::CreateNFSFileShareError,
39    > for CreateNFSFileShareFluentBuilder
40{
41    fn send(
42        self,
43        config_override: crate::config::Builder,
44    ) -> crate::client::customize::internal::BoxFuture<
45        crate::client::customize::internal::SendResult<
46            crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
47            crate::operation::create_nfs_file_share::CreateNFSFileShareError,
48        >,
49    > {
50        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51    }
52}
53impl CreateNFSFileShareFluentBuilder {
54    /// Creates a new `CreateNFSFileShareFluentBuilder`.
55    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
56        Self {
57            handle,
58            inner: ::std::default::Default::default(),
59            config_override: ::std::option::Option::None,
60        }
61    }
62    /// Access the CreateNFSFileShare as a reference.
63    pub fn as_input(&self) -> &crate::operation::create_nfs_file_share::builders::CreateNfsFileShareInputBuilder {
64        &self.inner
65    }
66    /// Sends the request and returns the response.
67    ///
68    /// If an error occurs, an `SdkError` will be returned with additional details that
69    /// can be matched against.
70    ///
71    /// By default, any retryable failures will be retried twice. Retry behavior
72    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
73    /// set when configuring the client.
74    pub async fn send(
75        self,
76    ) -> ::std::result::Result<
77        crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
78        ::aws_smithy_runtime_api::client::result::SdkError<
79            crate::operation::create_nfs_file_share::CreateNFSFileShareError,
80            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
81        >,
82    > {
83        let input = self
84            .inner
85            .build()
86            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
87        let runtime_plugins = crate::operation::create_nfs_file_share::CreateNFSFileShare::operation_runtime_plugins(
88            self.handle.runtime_plugins.clone(),
89            &self.handle.conf,
90            self.config_override,
91        );
92        crate::operation::create_nfs_file_share::CreateNFSFileShare::orchestrate(&runtime_plugins, input).await
93    }
94
95    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
96    pub fn customize(
97        self,
98    ) -> crate::client::customize::CustomizableOperation<
99        crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
100        crate::operation::create_nfs_file_share::CreateNFSFileShareError,
101        Self,
102    > {
103        crate::client::customize::CustomizableOperation::new(self)
104    }
105    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
106        self.set_config_override(::std::option::Option::Some(config_override.into()));
107        self
108    }
109
110    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
111        self.config_override = config_override;
112        self
113    }
114    /// <p>A unique string value that you supply that is used by S3 File Gateway to ensure idempotent file share creation.</p>
115    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
116        self.inner = self.inner.client_token(input.into());
117        self
118    }
119    /// <p>A unique string value that you supply that is used by S3 File Gateway to ensure idempotent file share creation.</p>
120    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
121        self.inner = self.inner.set_client_token(input);
122        self
123    }
124    /// <p>A unique string value that you supply that is used by S3 File Gateway to ensure idempotent file share creation.</p>
125    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
126        self.inner.get_client_token()
127    }
128    /// <p>File share default values. Optional.</p>
129    pub fn nfs_file_share_defaults(mut self, input: crate::types::NfsFileShareDefaults) -> Self {
130        self.inner = self.inner.nfs_file_share_defaults(input);
131        self
132    }
133    /// <p>File share default values. Optional.</p>
134    pub fn set_nfs_file_share_defaults(mut self, input: ::std::option::Option<crate::types::NfsFileShareDefaults>) -> Self {
135        self.inner = self.inner.set_nfs_file_share_defaults(input);
136        self
137    }
138    /// <p>File share default values. Optional.</p>
139    pub fn get_nfs_file_share_defaults(&self) -> &::std::option::Option<crate::types::NfsFileShareDefaults> {
140        self.inner.get_nfs_file_share_defaults()
141    }
142    /// <p>The Amazon Resource Name (ARN) of the S3 File Gateway on which you want to create a file share.</p>
143    pub fn gateway_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144        self.inner = self.inner.gateway_arn(input.into());
145        self
146    }
147    /// <p>The Amazon Resource Name (ARN) of the S3 File Gateway on which you want to create a file share.</p>
148    pub fn set_gateway_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149        self.inner = self.inner.set_gateway_arn(input);
150        self
151    }
152    /// <p>The Amazon Resource Name (ARN) of the S3 File Gateway on which you want to create a file share.</p>
153    pub fn get_gateway_arn(&self) -> &::std::option::Option<::std::string::String> {
154        self.inner.get_gateway_arn()
155    }
156    /// <p>A value that specifies the type of server-side encryption that the file share will use for the data that it stores in Amazon S3.</p><note>
157    /// <p>We recommend using <code>EncryptionType</code> instead of <code>KMSEncrypted</code> to set the file share encryption method. You do not need to provide values for both parameters.</p>
158    /// <p>If values for both parameters exist in the same request, then the specified encryption methods must not conflict. For example, if <code>EncryptionType</code> is <code>SseS3</code>, then <code>KMSEncrypted</code> must be <code>false</code>. If <code>EncryptionType</code> is <code>SseKms</code> or <code>DsseKms</code>, then <code>KMSEncrypted</code> must be <code>true</code>.</p>
159    /// </note>
160    pub fn encryption_type(mut self, input: crate::types::EncryptionType) -> Self {
161        self.inner = self.inner.encryption_type(input);
162        self
163    }
164    /// <p>A value that specifies the type of server-side encryption that the file share will use for the data that it stores in Amazon S3.</p><note>
165    /// <p>We recommend using <code>EncryptionType</code> instead of <code>KMSEncrypted</code> to set the file share encryption method. You do not need to provide values for both parameters.</p>
166    /// <p>If values for both parameters exist in the same request, then the specified encryption methods must not conflict. For example, if <code>EncryptionType</code> is <code>SseS3</code>, then <code>KMSEncrypted</code> must be <code>false</code>. If <code>EncryptionType</code> is <code>SseKms</code> or <code>DsseKms</code>, then <code>KMSEncrypted</code> must be <code>true</code>.</p>
167    /// </note>
168    pub fn set_encryption_type(mut self, input: ::std::option::Option<crate::types::EncryptionType>) -> Self {
169        self.inner = self.inner.set_encryption_type(input);
170        self
171    }
172    /// <p>A value that specifies the type of server-side encryption that the file share will use for the data that it stores in Amazon S3.</p><note>
173    /// <p>We recommend using <code>EncryptionType</code> instead of <code>KMSEncrypted</code> to set the file share encryption method. You do not need to provide values for both parameters.</p>
174    /// <p>If values for both parameters exist in the same request, then the specified encryption methods must not conflict. For example, if <code>EncryptionType</code> is <code>SseS3</code>, then <code>KMSEncrypted</code> must be <code>false</code>. If <code>EncryptionType</code> is <code>SseKms</code> or <code>DsseKms</code>, then <code>KMSEncrypted</code> must be <code>true</code>.</p>
175    /// </note>
176    pub fn get_encryption_type(&self) -> &::std::option::Option<crate::types::EncryptionType> {
177        self.inner.get_encryption_type()
178    }
179    /// <p>Optional. Set to <code>true</code> to use Amazon S3 server-side encryption with your own KMS key (SSE-KMS), or <code>false</code> to use a key managed by Amazon S3 (SSE-S3). To use dual-layer encryption (DSSE-KMS), set the <code>EncryptionType</code> parameter instead.</p><note>
180    /// <p>We recommend using <code>EncryptionType</code> instead of <code>KMSEncrypted</code> to set the file share encryption method. You do not need to provide values for both parameters.</p>
181    /// <p>If values for both parameters exist in the same request, then the specified encryption methods must not conflict. For example, if <code>EncryptionType</code> is <code>SseS3</code>, then <code>KMSEncrypted</code> must be <code>false</code>. If <code>EncryptionType</code> is <code>SseKms</code> or <code>DsseKms</code>, then <code>KMSEncrypted</code> must be <code>true</code>.</p>
182    /// </note>
183    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
184    #[deprecated(note = "KMSEncrypted is deprecated, use EncryptionType instead.")]
185    pub fn kms_encrypted(mut self, input: bool) -> Self {
186        self.inner = self.inner.kms_encrypted(input);
187        self
188    }
189    /// <p>Optional. Set to <code>true</code> to use Amazon S3 server-side encryption with your own KMS key (SSE-KMS), or <code>false</code> to use a key managed by Amazon S3 (SSE-S3). To use dual-layer encryption (DSSE-KMS), set the <code>EncryptionType</code> parameter instead.</p><note>
190    /// <p>We recommend using <code>EncryptionType</code> instead of <code>KMSEncrypted</code> to set the file share encryption method. You do not need to provide values for both parameters.</p>
191    /// <p>If values for both parameters exist in the same request, then the specified encryption methods must not conflict. For example, if <code>EncryptionType</code> is <code>SseS3</code>, then <code>KMSEncrypted</code> must be <code>false</code>. If <code>EncryptionType</code> is <code>SseKms</code> or <code>DsseKms</code>, then <code>KMSEncrypted</code> must be <code>true</code>.</p>
192    /// </note>
193    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
194    #[deprecated(note = "KMSEncrypted is deprecated, use EncryptionType instead.")]
195    pub fn set_kms_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
196        self.inner = self.inner.set_kms_encrypted(input);
197        self
198    }
199    /// <p>Optional. Set to <code>true</code> to use Amazon S3 server-side encryption with your own KMS key (SSE-KMS), or <code>false</code> to use a key managed by Amazon S3 (SSE-S3). To use dual-layer encryption (DSSE-KMS), set the <code>EncryptionType</code> parameter instead.</p><note>
200    /// <p>We recommend using <code>EncryptionType</code> instead of <code>KMSEncrypted</code> to set the file share encryption method. You do not need to provide values for both parameters.</p>
201    /// <p>If values for both parameters exist in the same request, then the specified encryption methods must not conflict. For example, if <code>EncryptionType</code> is <code>SseS3</code>, then <code>KMSEncrypted</code> must be <code>false</code>. If <code>EncryptionType</code> is <code>SseKms</code> or <code>DsseKms</code>, then <code>KMSEncrypted</code> must be <code>true</code>.</p>
202    /// </note>
203    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
204    #[deprecated(note = "KMSEncrypted is deprecated, use EncryptionType instead.")]
205    pub fn get_kms_encrypted(&self) -> &::std::option::Option<bool> {
206        self.inner.get_kms_encrypted()
207    }
208    /// <p>Optional. The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value must be set if <code>KMSEncrypted</code> is <code>true</code>, or if <code>EncryptionType</code> is <code>SseKms</code> or <code>DsseKms</code>.</p>
209    pub fn kms_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
210        self.inner = self.inner.kms_key(input.into());
211        self
212    }
213    /// <p>Optional. The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value must be set if <code>KMSEncrypted</code> is <code>true</code>, or if <code>EncryptionType</code> is <code>SseKms</code> or <code>DsseKms</code>.</p>
214    pub fn set_kms_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
215        self.inner = self.inner.set_kms_key(input);
216        self
217    }
218    /// <p>Optional. The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value must be set if <code>KMSEncrypted</code> is <code>true</code>, or if <code>EncryptionType</code> is <code>SseKms</code> or <code>DsseKms</code>.</p>
219    pub fn get_kms_key(&self) -> &::std::option::Option<::std::string::String> {
220        self.inner.get_kms_key()
221    }
222    /// <p>The ARN of the Identity and Access Management (IAM) role that an S3 File Gateway assumes when it accesses the underlying storage.</p>
223    pub fn role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
224        self.inner = self.inner.role(input.into());
225        self
226    }
227    /// <p>The ARN of the Identity and Access Management (IAM) role that an S3 File Gateway assumes when it accesses the underlying storage.</p>
228    pub fn set_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
229        self.inner = self.inner.set_role(input);
230        self
231    }
232    /// <p>The ARN of the Identity and Access Management (IAM) role that an S3 File Gateway assumes when it accesses the underlying storage.</p>
233    pub fn get_role(&self) -> &::std::option::Option<::std::string::String> {
234        self.inner.get_role()
235    }
236    /// <p>A custom ARN for the backend storage used for storing data for file shares. It includes a resource ARN with an optional prefix concatenation. The prefix must end with a forward slash (/).</p><note>
237    /// <p>You can specify LocationARN as a bucket ARN, access point ARN or access point alias, as shown in the following examples.</p>
238    /// <p>Bucket ARN:</p>
239    /// <p><code>arn:aws:s3:::amzn-s3-demo-bucket/prefix/</code></p>
240    /// <p>Access point ARN:</p>
241    /// <p><code>arn:aws:s3:region:account-id:accesspoint/access-point-name/prefix/</code></p>
242    /// <p>If you specify an access point, the bucket policy must be configured to delegate access control to the access point. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-policies.html#access-points-delegating-control">Delegating access control to access points</a> in the <i>Amazon S3 User Guide</i>.</p>
243    /// <p>Access point alias:</p>
244    /// <p><code>test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias</code></p>
245    /// </note>
246    pub fn location_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
247        self.inner = self.inner.location_arn(input.into());
248        self
249    }
250    /// <p>A custom ARN for the backend storage used for storing data for file shares. It includes a resource ARN with an optional prefix concatenation. The prefix must end with a forward slash (/).</p><note>
251    /// <p>You can specify LocationARN as a bucket ARN, access point ARN or access point alias, as shown in the following examples.</p>
252    /// <p>Bucket ARN:</p>
253    /// <p><code>arn:aws:s3:::amzn-s3-demo-bucket/prefix/</code></p>
254    /// <p>Access point ARN:</p>
255    /// <p><code>arn:aws:s3:region:account-id:accesspoint/access-point-name/prefix/</code></p>
256    /// <p>If you specify an access point, the bucket policy must be configured to delegate access control to the access point. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-policies.html#access-points-delegating-control">Delegating access control to access points</a> in the <i>Amazon S3 User Guide</i>.</p>
257    /// <p>Access point alias:</p>
258    /// <p><code>test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias</code></p>
259    /// </note>
260    pub fn set_location_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
261        self.inner = self.inner.set_location_arn(input);
262        self
263    }
264    /// <p>A custom ARN for the backend storage used for storing data for file shares. It includes a resource ARN with an optional prefix concatenation. The prefix must end with a forward slash (/).</p><note>
265    /// <p>You can specify LocationARN as a bucket ARN, access point ARN or access point alias, as shown in the following examples.</p>
266    /// <p>Bucket ARN:</p>
267    /// <p><code>arn:aws:s3:::amzn-s3-demo-bucket/prefix/</code></p>
268    /// <p>Access point ARN:</p>
269    /// <p><code>arn:aws:s3:region:account-id:accesspoint/access-point-name/prefix/</code></p>
270    /// <p>If you specify an access point, the bucket policy must be configured to delegate access control to the access point. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-policies.html#access-points-delegating-control">Delegating access control to access points</a> in the <i>Amazon S3 User Guide</i>.</p>
271    /// <p>Access point alias:</p>
272    /// <p><code>test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias</code></p>
273    /// </note>
274    pub fn get_location_arn(&self) -> &::std::option::Option<::std::string::String> {
275        self.inner.get_location_arn()
276    }
277    /// <p>The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is <code>S3_STANDARD</code>. Optional.</p>
278    /// <p>Valid Values: <code>S3_STANDARD</code> | <code>S3_INTELLIGENT_TIERING</code> | <code>S3_STANDARD_IA</code> | <code>S3_ONEZONE_IA</code></p>
279    pub fn default_storage_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
280        self.inner = self.inner.default_storage_class(input.into());
281        self
282    }
283    /// <p>The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is <code>S3_STANDARD</code>. Optional.</p>
284    /// <p>Valid Values: <code>S3_STANDARD</code> | <code>S3_INTELLIGENT_TIERING</code> | <code>S3_STANDARD_IA</code> | <code>S3_ONEZONE_IA</code></p>
285    pub fn set_default_storage_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
286        self.inner = self.inner.set_default_storage_class(input);
287        self
288    }
289    /// <p>The default storage class for objects put into an Amazon S3 bucket by the S3 File Gateway. The default value is <code>S3_STANDARD</code>. Optional.</p>
290    /// <p>Valid Values: <code>S3_STANDARD</code> | <code>S3_INTELLIGENT_TIERING</code> | <code>S3_STANDARD_IA</code> | <code>S3_ONEZONE_IA</code></p>
291    pub fn get_default_storage_class(&self) -> &::std::option::Option<::std::string::String> {
292        self.inner.get_default_storage_class()
293    }
294    /// <p>A value that sets the access control list (ACL) permission for objects in the S3 bucket that a S3 File Gateway puts objects into. The default value is <code>private</code>.</p>
295    pub fn object_acl(mut self, input: crate::types::ObjectAcl) -> Self {
296        self.inner = self.inner.object_acl(input);
297        self
298    }
299    /// <p>A value that sets the access control list (ACL) permission for objects in the S3 bucket that a S3 File Gateway puts objects into. The default value is <code>private</code>.</p>
300    pub fn set_object_acl(mut self, input: ::std::option::Option<crate::types::ObjectAcl>) -> Self {
301        self.inner = self.inner.set_object_acl(input);
302        self
303    }
304    /// <p>A value that sets the access control list (ACL) permission for objects in the S3 bucket that a S3 File Gateway puts objects into. The default value is <code>private</code>.</p>
305    pub fn get_object_acl(&self) -> &::std::option::Option<crate::types::ObjectAcl> {
306        self.inner.get_object_acl()
307    }
308    ///
309    /// Appends an item to `ClientList`.
310    ///
311    /// To override the contents of this collection use [`set_client_list`](Self::set_client_list).
312    ///
313    /// <p>The list of clients that are allowed to access the S3 File Gateway. The list must contain either valid IPv4/IPv6 addresses or valid CIDR blocks.</p>
314    pub fn client_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
315        self.inner = self.inner.client_list(input.into());
316        self
317    }
318    /// <p>The list of clients that are allowed to access the S3 File Gateway. The list must contain either valid IPv4/IPv6 addresses or valid CIDR blocks.</p>
319    pub fn set_client_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
320        self.inner = self.inner.set_client_list(input);
321        self
322    }
323    /// <p>The list of clients that are allowed to access the S3 File Gateway. The list must contain either valid IPv4/IPv6 addresses or valid CIDR blocks.</p>
324    pub fn get_client_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
325        self.inner.get_client_list()
326    }
327    /// <p>A value that maps a user to anonymous user.</p>
328    /// <p>Valid values are the following:</p>
329    /// <ul>
330    /// <li>
331    /// <p><code>RootSquash</code>: Only root is mapped to anonymous user.</p></li>
332    /// <li>
333    /// <p><code>NoSquash</code>: No one is mapped to anonymous user.</p></li>
334    /// <li>
335    /// <p><code>AllSquash</code>: Everyone is mapped to anonymous user.</p></li>
336    /// </ul>
337    pub fn squash(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
338        self.inner = self.inner.squash(input.into());
339        self
340    }
341    /// <p>A value that maps a user to anonymous user.</p>
342    /// <p>Valid values are the following:</p>
343    /// <ul>
344    /// <li>
345    /// <p><code>RootSquash</code>: Only root is mapped to anonymous user.</p></li>
346    /// <li>
347    /// <p><code>NoSquash</code>: No one is mapped to anonymous user.</p></li>
348    /// <li>
349    /// <p><code>AllSquash</code>: Everyone is mapped to anonymous user.</p></li>
350    /// </ul>
351    pub fn set_squash(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
352        self.inner = self.inner.set_squash(input);
353        self
354    }
355    /// <p>A value that maps a user to anonymous user.</p>
356    /// <p>Valid values are the following:</p>
357    /// <ul>
358    /// <li>
359    /// <p><code>RootSquash</code>: Only root is mapped to anonymous user.</p></li>
360    /// <li>
361    /// <p><code>NoSquash</code>: No one is mapped to anonymous user.</p></li>
362    /// <li>
363    /// <p><code>AllSquash</code>: Everyone is mapped to anonymous user.</p></li>
364    /// </ul>
365    pub fn get_squash(&self) -> &::std::option::Option<::std::string::String> {
366        self.inner.get_squash()
367    }
368    /// <p>A value that sets the write status of a file share. Set this value to <code>true</code> to set the write status to read-only, otherwise set to <code>false</code>.</p>
369    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
370    pub fn read_only(mut self, input: bool) -> Self {
371        self.inner = self.inner.read_only(input);
372        self
373    }
374    /// <p>A value that sets the write status of a file share. Set this value to <code>true</code> to set the write status to read-only, otherwise set to <code>false</code>.</p>
375    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
376    pub fn set_read_only(mut self, input: ::std::option::Option<bool>) -> Self {
377        self.inner = self.inner.set_read_only(input);
378        self
379    }
380    /// <p>A value that sets the write status of a file share. Set this value to <code>true</code> to set the write status to read-only, otherwise set to <code>false</code>.</p>
381    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
382    pub fn get_read_only(&self) -> &::std::option::Option<bool> {
383        self.inner.get_read_only()
384    }
385    /// <p>A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to <code>true</code> to enable MIME type guessing, otherwise set to <code>false</code>. The default value is <code>true</code>.</p>
386    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
387    pub fn guess_mime_type_enabled(mut self, input: bool) -> Self {
388        self.inner = self.inner.guess_mime_type_enabled(input);
389        self
390    }
391    /// <p>A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to <code>true</code> to enable MIME type guessing, otherwise set to <code>false</code>. The default value is <code>true</code>.</p>
392    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
393    pub fn set_guess_mime_type_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
394        self.inner = self.inner.set_guess_mime_type_enabled(input);
395        self
396    }
397    /// <p>A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to <code>true</code> to enable MIME type guessing, otherwise set to <code>false</code>. The default value is <code>true</code>.</p>
398    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
399    pub fn get_guess_mime_type_enabled(&self) -> &::std::option::Option<bool> {
400        self.inner.get_guess_mime_type_enabled()
401    }
402    /// <p>A value that sets who pays the cost of the request and the cost associated with data download from the S3 bucket. If this value is set to <code>true</code>, the requester pays the costs; otherwise, the S3 bucket owner pays. However, the S3 bucket owner always pays the cost of storing data.</p><note>
403    /// <p><code>RequesterPays</code> is a configuration for the S3 bucket that backs the file share, so make sure that the configuration on the file share is the same as the S3 bucket configuration.</p>
404    /// </note>
405    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
406    pub fn requester_pays(mut self, input: bool) -> Self {
407        self.inner = self.inner.requester_pays(input);
408        self
409    }
410    /// <p>A value that sets who pays the cost of the request and the cost associated with data download from the S3 bucket. If this value is set to <code>true</code>, the requester pays the costs; otherwise, the S3 bucket owner pays. However, the S3 bucket owner always pays the cost of storing data.</p><note>
411    /// <p><code>RequesterPays</code> is a configuration for the S3 bucket that backs the file share, so make sure that the configuration on the file share is the same as the S3 bucket configuration.</p>
412    /// </note>
413    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
414    pub fn set_requester_pays(mut self, input: ::std::option::Option<bool>) -> Self {
415        self.inner = self.inner.set_requester_pays(input);
416        self
417    }
418    /// <p>A value that sets who pays the cost of the request and the cost associated with data download from the S3 bucket. If this value is set to <code>true</code>, the requester pays the costs; otherwise, the S3 bucket owner pays. However, the S3 bucket owner always pays the cost of storing data.</p><note>
419    /// <p><code>RequesterPays</code> is a configuration for the S3 bucket that backs the file share, so make sure that the configuration on the file share is the same as the S3 bucket configuration.</p>
420    /// </note>
421    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
422    pub fn get_requester_pays(&self) -> &::std::option::Option<bool> {
423        self.inner.get_requester_pays()
424    }
425    ///
426    /// Appends an item to `Tags`.
427    ///
428    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
429    ///
430    /// <p>A list of up to 50 tags that can be assigned to the NFS file share. Each tag is a key-value pair.</p><note>
431    /// <p>Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.</p>
432    /// </note>
433    pub fn tags(mut self, input: crate::types::Tag) -> Self {
434        self.inner = self.inner.tags(input);
435        self
436    }
437    /// <p>A list of up to 50 tags that can be assigned to the NFS file share. Each tag is a key-value pair.</p><note>
438    /// <p>Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.</p>
439    /// </note>
440    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
441        self.inner = self.inner.set_tags(input);
442        self
443    }
444    /// <p>A list of up to 50 tags that can be assigned to the NFS file share. Each tag is a key-value pair.</p><note>
445    /// <p>Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.</p>
446    /// </note>
447    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
448        self.inner.get_tags()
449    }
450    /// <p>The name of the file share. Optional.</p><note>
451    /// <p><code>FileShareName</code> must be set if an S3 prefix name is set in <code>LocationARN</code>, or if an access point or access point alias is used.</p>
452    /// <p>A valid NFS file share name can only contain the following characters: <code>a</code>-<code>z</code>, <code>A</code>-<code>Z</code>, <code>0</code>-<code>9</code>, <code>-</code>, <code>.</code>, and <code>_</code>.</p>
453    /// </note>
454    pub fn file_share_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
455        self.inner = self.inner.file_share_name(input.into());
456        self
457    }
458    /// <p>The name of the file share. Optional.</p><note>
459    /// <p><code>FileShareName</code> must be set if an S3 prefix name is set in <code>LocationARN</code>, or if an access point or access point alias is used.</p>
460    /// <p>A valid NFS file share name can only contain the following characters: <code>a</code>-<code>z</code>, <code>A</code>-<code>Z</code>, <code>0</code>-<code>9</code>, <code>-</code>, <code>.</code>, and <code>_</code>.</p>
461    /// </note>
462    pub fn set_file_share_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
463        self.inner = self.inner.set_file_share_name(input);
464        self
465    }
466    /// <p>The name of the file share. Optional.</p><note>
467    /// <p><code>FileShareName</code> must be set if an S3 prefix name is set in <code>LocationARN</code>, or if an access point or access point alias is used.</p>
468    /// <p>A valid NFS file share name can only contain the following characters: <code>a</code>-<code>z</code>, <code>A</code>-<code>Z</code>, <code>0</code>-<code>9</code>, <code>-</code>, <code>.</code>, and <code>_</code>.</p>
469    /// </note>
470    pub fn get_file_share_name(&self) -> &::std::option::Option<::std::string::String> {
471        self.inner.get_file_share_name()
472    }
473    /// <p>Specifies refresh cache information for the file share.</p>
474    pub fn cache_attributes(mut self, input: crate::types::CacheAttributes) -> Self {
475        self.inner = self.inner.cache_attributes(input);
476        self
477    }
478    /// <p>Specifies refresh cache information for the file share.</p>
479    pub fn set_cache_attributes(mut self, input: ::std::option::Option<crate::types::CacheAttributes>) -> Self {
480        self.inner = self.inner.set_cache_attributes(input);
481        self
482    }
483    /// <p>Specifies refresh cache information for the file share.</p>
484    pub fn get_cache_attributes(&self) -> &::std::option::Option<crate::types::CacheAttributes> {
485        self.inner.get_cache_attributes()
486    }
487    /// <p>The notification policy of the file share. <code>SettlingTimeInSeconds</code> controls the number of seconds to wait after the last point in time a client wrote to a file before generating an <code>ObjectUploaded</code> notification. Because clients can make many small writes to files, it's best to set this parameter for as long as possible to avoid generating multiple notifications for the same file in a small time period.</p><note>
488    /// <p><code>SettlingTimeInSeconds</code> has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.</p>
489    /// <p>This setting is not meant to specify an exact time at which the notification will be sent. In some cases, the gateway might require more than the specified delay time to generate and send notifications.</p>
490    /// </note>
491    /// <p>The following example sets <code>NotificationPolicy</code> on with <code>SettlingTimeInSeconds</code> set to 60.</p>
492    /// <p><code>{\"Upload\": {\"SettlingTimeInSeconds\": 60}}</code></p>
493    /// <p>The following example sets <code>NotificationPolicy</code> off.</p>
494    /// <p><code>{}</code></p>
495    pub fn notification_policy(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
496        self.inner = self.inner.notification_policy(input.into());
497        self
498    }
499    /// <p>The notification policy of the file share. <code>SettlingTimeInSeconds</code> controls the number of seconds to wait after the last point in time a client wrote to a file before generating an <code>ObjectUploaded</code> notification. Because clients can make many small writes to files, it's best to set this parameter for as long as possible to avoid generating multiple notifications for the same file in a small time period.</p><note>
500    /// <p><code>SettlingTimeInSeconds</code> has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.</p>
501    /// <p>This setting is not meant to specify an exact time at which the notification will be sent. In some cases, the gateway might require more than the specified delay time to generate and send notifications.</p>
502    /// </note>
503    /// <p>The following example sets <code>NotificationPolicy</code> on with <code>SettlingTimeInSeconds</code> set to 60.</p>
504    /// <p><code>{\"Upload\": {\"SettlingTimeInSeconds\": 60}}</code></p>
505    /// <p>The following example sets <code>NotificationPolicy</code> off.</p>
506    /// <p><code>{}</code></p>
507    pub fn set_notification_policy(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
508        self.inner = self.inner.set_notification_policy(input);
509        self
510    }
511    /// <p>The notification policy of the file share. <code>SettlingTimeInSeconds</code> controls the number of seconds to wait after the last point in time a client wrote to a file before generating an <code>ObjectUploaded</code> notification. Because clients can make many small writes to files, it's best to set this parameter for as long as possible to avoid generating multiple notifications for the same file in a small time period.</p><note>
512    /// <p><code>SettlingTimeInSeconds</code> has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.</p>
513    /// <p>This setting is not meant to specify an exact time at which the notification will be sent. In some cases, the gateway might require more than the specified delay time to generate and send notifications.</p>
514    /// </note>
515    /// <p>The following example sets <code>NotificationPolicy</code> on with <code>SettlingTimeInSeconds</code> set to 60.</p>
516    /// <p><code>{\"Upload\": {\"SettlingTimeInSeconds\": 60}}</code></p>
517    /// <p>The following example sets <code>NotificationPolicy</code> off.</p>
518    /// <p><code>{}</code></p>
519    pub fn get_notification_policy(&self) -> &::std::option::Option<::std::string::String> {
520        self.inner.get_notification_policy()
521    }
522    /// <p>Specifies the DNS name for the VPC endpoint that the NFS file share uses to connect to Amazon S3.</p><note>
523    /// <p>This parameter is required for NFS file shares that connect to Amazon S3 through a VPC endpoint, a VPC access point, or an access point alias that points to a VPC access point.</p>
524    /// </note>
525    pub fn vpc_endpoint_dns_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
526        self.inner = self.inner.vpc_endpoint_dns_name(input.into());
527        self
528    }
529    /// <p>Specifies the DNS name for the VPC endpoint that the NFS file share uses to connect to Amazon S3.</p><note>
530    /// <p>This parameter is required for NFS file shares that connect to Amazon S3 through a VPC endpoint, a VPC access point, or an access point alias that points to a VPC access point.</p>
531    /// </note>
532    pub fn set_vpc_endpoint_dns_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
533        self.inner = self.inner.set_vpc_endpoint_dns_name(input);
534        self
535    }
536    /// <p>Specifies the DNS name for the VPC endpoint that the NFS file share uses to connect to Amazon S3.</p><note>
537    /// <p>This parameter is required for NFS file shares that connect to Amazon S3 through a VPC endpoint, a VPC access point, or an access point alias that points to a VPC access point.</p>
538    /// </note>
539    pub fn get_vpc_endpoint_dns_name(&self) -> &::std::option::Option<::std::string::String> {
540        self.inner.get_vpc_endpoint_dns_name()
541    }
542    /// <p>Specifies the Region of the S3 bucket where the NFS file share stores files.</p><note>
543    /// <p>This parameter is required for NFS file shares that connect to Amazon S3 through a VPC endpoint, a VPC access point, or an access point alias that points to a VPC access point.</p>
544    /// </note>
545    pub fn bucket_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
546        self.inner = self.inner.bucket_region(input.into());
547        self
548    }
549    /// <p>Specifies the Region of the S3 bucket where the NFS file share stores files.</p><note>
550    /// <p>This parameter is required for NFS file shares that connect to Amazon S3 through a VPC endpoint, a VPC access point, or an access point alias that points to a VPC access point.</p>
551    /// </note>
552    pub fn set_bucket_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
553        self.inner = self.inner.set_bucket_region(input);
554        self
555    }
556    /// <p>Specifies the Region of the S3 bucket where the NFS file share stores files.</p><note>
557    /// <p>This parameter is required for NFS file shares that connect to Amazon S3 through a VPC endpoint, a VPC access point, or an access point alias that points to a VPC access point.</p>
558    /// </note>
559    pub fn get_bucket_region(&self) -> &::std::option::Option<::std::string::String> {
560        self.inner.get_bucket_region()
561    }
562    /// <p>The Amazon Resource Name (ARN) of the storage used for audit logs.</p>
563    pub fn audit_destination_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
564        self.inner = self.inner.audit_destination_arn(input.into());
565        self
566    }
567    /// <p>The Amazon Resource Name (ARN) of the storage used for audit logs.</p>
568    pub fn set_audit_destination_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
569        self.inner = self.inner.set_audit_destination_arn(input);
570        self
571    }
572    /// <p>The Amazon Resource Name (ARN) of the storage used for audit logs.</p>
573    pub fn get_audit_destination_arn(&self) -> &::std::option::Option<::std::string::String> {
574        self.inner.get_audit_destination_arn()
575    }
576}