aws_sdk_storagegateway/operation/create_smb_file_share/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_smb_file_share::_create_smb_file_share_output::CreateSmbFileShareOutputBuilder;
3
4pub use crate::operation::create_smb_file_share::_create_smb_file_share_input::CreateSmbFileShareInputBuilder;
5
6impl crate::operation::create_smb_file_share::builders::CreateSmbFileShareInputBuilder {
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_smb_file_share::CreateSmbFileShareOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_smb_file_share::CreateSMBFileShareError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_smb_file_share();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateSMBFileShare`.
24///
25/// <p>Creates a Server Message Block (SMB) 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 SMB interface. This operation is only supported for S3 File Gateways.</p><important>
26/// <p>S3 File Gateways require Security Token Service (Amazon Web Services STS) to be activated to enable you to create a file share. Make sure that 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 this 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>File gateways don't support creating hard or symbolic links on a file share.</p>
28/// </important>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct CreateSMBFileShareFluentBuilder {
31    handle: ::std::sync::Arc<crate::client::Handle>,
32    inner: crate::operation::create_smb_file_share::builders::CreateSmbFileShareInputBuilder,
33    config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36    crate::client::customize::internal::CustomizableSend<
37        crate::operation::create_smb_file_share::CreateSmbFileShareOutput,
38        crate::operation::create_smb_file_share::CreateSMBFileShareError,
39    > for CreateSMBFileShareFluentBuilder
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_smb_file_share::CreateSmbFileShareOutput,
47            crate::operation::create_smb_file_share::CreateSMBFileShareError,
48        >,
49    > {
50        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51    }
52}
53impl CreateSMBFileShareFluentBuilder {
54    /// Creates a new `CreateSMBFileShareFluentBuilder`.
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 CreateSMBFileShare as a reference.
63    pub fn as_input(&self) -> &crate::operation::create_smb_file_share::builders::CreateSmbFileShareInputBuilder {
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_smb_file_share::CreateSmbFileShareOutput,
78        ::aws_smithy_runtime_api::client::result::SdkError<
79            crate::operation::create_smb_file_share::CreateSMBFileShareError,
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_smb_file_share::CreateSMBFileShare::operation_runtime_plugins(
88            self.handle.runtime_plugins.clone(),
89            &self.handle.conf,
90            self.config_override,
91        );
92        crate::operation::create_smb_file_share::CreateSMBFileShare::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_smb_file_share::CreateSmbFileShareOutput,
100        crate::operation::create_smb_file_share::CreateSMBFileShareError,
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>The ARN of the S3 File Gateway on which you want to create a file share.</p>
129    pub fn gateway_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130        self.inner = self.inner.gateway_arn(input.into());
131        self
132    }
133    /// <p>The ARN of the S3 File Gateway on which you want to create a file share.</p>
134    pub fn set_gateway_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135        self.inner = self.inner.set_gateway_arn(input);
136        self
137    }
138    /// <p>The ARN of the S3 File Gateway on which you want to create a file share.</p>
139    pub fn get_gateway_arn(&self) -> &::std::option::Option<::std::string::String> {
140        self.inner.get_gateway_arn()
141    }
142    /// <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>
143    /// <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>
144    /// <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>
145    /// </note>
146    pub fn encryption_type(mut self, input: crate::types::EncryptionType) -> Self {
147        self.inner = self.inner.encryption_type(input);
148        self
149    }
150    /// <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>
151    /// <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>
152    /// <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>
153    /// </note>
154    pub fn set_encryption_type(mut self, input: ::std::option::Option<crate::types::EncryptionType>) -> Self {
155        self.inner = self.inner.set_encryption_type(input);
156        self
157    }
158    /// <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>
159    /// <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>
160    /// <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>
161    /// </note>
162    pub fn get_encryption_type(&self) -> &::std::option::Option<crate::types::EncryptionType> {
163        self.inner.get_encryption_type()
164    }
165    /// <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>
166    /// <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>
167    /// <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>
168    /// </note>
169    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
170    #[deprecated(note = "KMSEncrypted is deprecated, use EncryptionType instead.")]
171    pub fn kms_encrypted(mut self, input: bool) -> Self {
172        self.inner = self.inner.kms_encrypted(input);
173        self
174    }
175    /// <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>
176    /// <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>
177    /// <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>
178    /// </note>
179    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
180    #[deprecated(note = "KMSEncrypted is deprecated, use EncryptionType instead.")]
181    pub fn set_kms_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
182        self.inner = self.inner.set_kms_encrypted(input);
183        self
184    }
185    /// <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>
186    /// <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>
187    /// <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>
188    /// </note>
189    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
190    #[deprecated(note = "KMSEncrypted is deprecated, use EncryptionType instead.")]
191    pub fn get_kms_encrypted(&self) -> &::std::option::Option<bool> {
192        self.inner.get_kms_encrypted()
193    }
194    /// <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>
195    pub fn kms_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
196        self.inner = self.inner.kms_key(input.into());
197        self
198    }
199    /// <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>
200    pub fn set_kms_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
201        self.inner = self.inner.set_kms_key(input);
202        self
203    }
204    /// <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>
205    pub fn get_kms_key(&self) -> &::std::option::Option<::std::string::String> {
206        self.inner.get_kms_key()
207    }
208    /// <p>The ARN of the Identity and Access Management (IAM) role that an S3 File Gateway assumes when it accesses the underlying storage.</p>
209    pub fn role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
210        self.inner = self.inner.role(input.into());
211        self
212    }
213    /// <p>The ARN of the Identity and Access Management (IAM) role that an S3 File Gateway assumes when it accesses the underlying storage.</p>
214    pub fn set_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
215        self.inner = self.inner.set_role(input);
216        self
217    }
218    /// <p>The ARN of the Identity and Access Management (IAM) role that an S3 File Gateway assumes when it accesses the underlying storage.</p>
219    pub fn get_role(&self) -> &::std::option::Option<::std::string::String> {
220        self.inner.get_role()
221    }
222    /// <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>
223    /// <p>You can specify LocationARN as a bucket ARN, access point ARN or access point alias, as shown in the following examples.</p>
224    /// <p>Bucket ARN:</p>
225    /// <p><code>arn:aws:s3:::amzn-s3-demo-bucket/prefix/</code></p>
226    /// <p>Access point ARN:</p>
227    /// <p><code>arn:aws:s3:region:account-id:accesspoint/access-point-name/prefix/</code></p>
228    /// <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>
229    /// <p>Access point alias:</p>
230    /// <p><code>test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias</code></p>
231    /// </note>
232    pub fn location_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
233        self.inner = self.inner.location_arn(input.into());
234        self
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 set_location_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
247        self.inner = self.inner.set_location_arn(input);
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 get_location_arn(&self) -> &::std::option::Option<::std::string::String> {
261        self.inner.get_location_arn()
262    }
263    /// <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>
264    /// <p>Valid Values: <code>S3_STANDARD</code> | <code>S3_INTELLIGENT_TIERING</code> | <code>S3_STANDARD_IA</code> | <code>S3_ONEZONE_IA</code></p>
265    pub fn default_storage_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
266        self.inner = self.inner.default_storage_class(input.into());
267        self
268    }
269    /// <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>
270    /// <p>Valid Values: <code>S3_STANDARD</code> | <code>S3_INTELLIGENT_TIERING</code> | <code>S3_STANDARD_IA</code> | <code>S3_ONEZONE_IA</code></p>
271    pub fn set_default_storage_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
272        self.inner = self.inner.set_default_storage_class(input);
273        self
274    }
275    /// <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>
276    /// <p>Valid Values: <code>S3_STANDARD</code> | <code>S3_INTELLIGENT_TIERING</code> | <code>S3_STANDARD_IA</code> | <code>S3_ONEZONE_IA</code></p>
277    pub fn get_default_storage_class(&self) -> &::std::option::Option<::std::string::String> {
278        self.inner.get_default_storage_class()
279    }
280    /// <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>
281    pub fn object_acl(mut self, input: crate::types::ObjectAcl) -> Self {
282        self.inner = self.inner.object_acl(input);
283        self
284    }
285    /// <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>
286    pub fn set_object_acl(mut self, input: ::std::option::Option<crate::types::ObjectAcl>) -> Self {
287        self.inner = self.inner.set_object_acl(input);
288        self
289    }
290    /// <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>
291    pub fn get_object_acl(&self) -> &::std::option::Option<crate::types::ObjectAcl> {
292        self.inner.get_object_acl()
293    }
294    /// <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>
295    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
296    pub fn read_only(mut self, input: bool) -> Self {
297        self.inner = self.inner.read_only(input);
298        self
299    }
300    /// <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>
301    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
302    pub fn set_read_only(mut self, input: ::std::option::Option<bool>) -> Self {
303        self.inner = self.inner.set_read_only(input);
304        self
305    }
306    /// <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>
307    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
308    pub fn get_read_only(&self) -> &::std::option::Option<bool> {
309        self.inner.get_read_only()
310    }
311    /// <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>
312    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
313    pub fn guess_mime_type_enabled(mut self, input: bool) -> Self {
314        self.inner = self.inner.guess_mime_type_enabled(input);
315        self
316    }
317    /// <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>
318    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
319    pub fn set_guess_mime_type_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
320        self.inner = self.inner.set_guess_mime_type_enabled(input);
321        self
322    }
323    /// <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>
324    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
325    pub fn get_guess_mime_type_enabled(&self) -> &::std::option::Option<bool> {
326        self.inner.get_guess_mime_type_enabled()
327    }
328    /// <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>
329    /// <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>
330    /// </note>
331    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
332    pub fn requester_pays(mut self, input: bool) -> Self {
333        self.inner = self.inner.requester_pays(input);
334        self
335    }
336    /// <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>
337    /// <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>
338    /// </note>
339    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
340    pub fn set_requester_pays(mut self, input: ::std::option::Option<bool>) -> Self {
341        self.inner = self.inner.set_requester_pays(input);
342        self
343    }
344    /// <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>
345    /// <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>
346    /// </note>
347    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
348    pub fn get_requester_pays(&self) -> &::std::option::Option<bool> {
349        self.inner.get_requester_pays()
350    }
351    /// <p>Set this value to <code>true</code> to enable access control list (ACL) on the SMB file share. Set it to <code>false</code> to map file and directory permissions to the POSIX permissions.</p>
352    /// <p>For more information, see <a href="https://docs.aws.amazon.com/filegateway/latest/files3/smb-acl.html">Using Windows ACLs to limit SMB file share access</a> in the <i>Amazon S3 File Gateway User Guide</i>.</p>
353    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
354    pub fn smbacl_enabled(mut self, input: bool) -> Self {
355        self.inner = self.inner.smbacl_enabled(input);
356        self
357    }
358    /// <p>Set this value to <code>true</code> to enable access control list (ACL) on the SMB file share. Set it to <code>false</code> to map file and directory permissions to the POSIX permissions.</p>
359    /// <p>For more information, see <a href="https://docs.aws.amazon.com/filegateway/latest/files3/smb-acl.html">Using Windows ACLs to limit SMB file share access</a> in the <i>Amazon S3 File Gateway User Guide</i>.</p>
360    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
361    pub fn set_smbacl_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
362        self.inner = self.inner.set_smbacl_enabled(input);
363        self
364    }
365    /// <p>Set this value to <code>true</code> to enable access control list (ACL) on the SMB file share. Set it to <code>false</code> to map file and directory permissions to the POSIX permissions.</p>
366    /// <p>For more information, see <a href="https://docs.aws.amazon.com/filegateway/latest/files3/smb-acl.html">Using Windows ACLs to limit SMB file share access</a> in the <i>Amazon S3 File Gateway User Guide</i>.</p>
367    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
368    pub fn get_smbacl_enabled(&self) -> &::std::option::Option<bool> {
369        self.inner.get_smbacl_enabled()
370    }
371    /// <p>The files and folders on this share will only be visible to users with read access.</p>
372    pub fn access_based_enumeration(mut self, input: bool) -> Self {
373        self.inner = self.inner.access_based_enumeration(input);
374        self
375    }
376    /// <p>The files and folders on this share will only be visible to users with read access.</p>
377    pub fn set_access_based_enumeration(mut self, input: ::std::option::Option<bool>) -> Self {
378        self.inner = self.inner.set_access_based_enumeration(input);
379        self
380    }
381    /// <p>The files and folders on this share will only be visible to users with read access.</p>
382    pub fn get_access_based_enumeration(&self) -> &::std::option::Option<bool> {
383        self.inner.get_access_based_enumeration()
384    }
385    ///
386    /// Appends an item to `AdminUserList`.
387    ///
388    /// To override the contents of this collection use [`set_admin_user_list`](Self::set_admin_user_list).
389    ///
390    /// <p>A list of users or groups in the Active Directory that will be granted administrator privileges on the file share. These users can do all file operations as the super-user. Acceptable formats include: <code>DOMAIN\User1</code>, <code>user1</code>, <code>@group1</code>, and <code>@DOMAIN\group1</code>.</p><important>
391    /// <p>Use this option very carefully, because any user in this list can do anything they like on the file share, regardless of file permissions.</p>
392    /// </important>
393    pub fn admin_user_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
394        self.inner = self.inner.admin_user_list(input.into());
395        self
396    }
397    /// <p>A list of users or groups in the Active Directory that will be granted administrator privileges on the file share. These users can do all file operations as the super-user. Acceptable formats include: <code>DOMAIN\User1</code>, <code>user1</code>, <code>@group1</code>, and <code>@DOMAIN\group1</code>.</p><important>
398    /// <p>Use this option very carefully, because any user in this list can do anything they like on the file share, regardless of file permissions.</p>
399    /// </important>
400    pub fn set_admin_user_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
401        self.inner = self.inner.set_admin_user_list(input);
402        self
403    }
404    /// <p>A list of users or groups in the Active Directory that will be granted administrator privileges on the file share. These users can do all file operations as the super-user. Acceptable formats include: <code>DOMAIN\User1</code>, <code>user1</code>, <code>@group1</code>, and <code>@DOMAIN\group1</code>.</p><important>
405    /// <p>Use this option very carefully, because any user in this list can do anything they like on the file share, regardless of file permissions.</p>
406    /// </important>
407    pub fn get_admin_user_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
408        self.inner.get_admin_user_list()
409    }
410    ///
411    /// Appends an item to `ValidUserList`.
412    ///
413    /// To override the contents of this collection use [`set_valid_user_list`](Self::set_valid_user_list).
414    ///
415    /// <p>A list of users or groups in the Active Directory that are allowed to access the file <code></code> share. A group must be prefixed with the @ character. Acceptable formats include: <code>DOMAIN\User1</code>, <code>user1</code>, <code>@group1</code>, and <code>@DOMAIN\group1</code>. Can only be set if Authentication is set to <code>ActiveDirectory</code>.</p>
416    pub fn valid_user_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
417        self.inner = self.inner.valid_user_list(input.into());
418        self
419    }
420    /// <p>A list of users or groups in the Active Directory that are allowed to access the file <code></code> share. A group must be prefixed with the @ character. Acceptable formats include: <code>DOMAIN\User1</code>, <code>user1</code>, <code>@group1</code>, and <code>@DOMAIN\group1</code>. Can only be set if Authentication is set to <code>ActiveDirectory</code>.</p>
421    pub fn set_valid_user_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
422        self.inner = self.inner.set_valid_user_list(input);
423        self
424    }
425    /// <p>A list of users or groups in the Active Directory that are allowed to access the file <code></code> share. A group must be prefixed with the @ character. Acceptable formats include: <code>DOMAIN\User1</code>, <code>user1</code>, <code>@group1</code>, and <code>@DOMAIN\group1</code>. Can only be set if Authentication is set to <code>ActiveDirectory</code>.</p>
426    pub fn get_valid_user_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
427        self.inner.get_valid_user_list()
428    }
429    ///
430    /// Appends an item to `InvalidUserList`.
431    ///
432    /// To override the contents of this collection use [`set_invalid_user_list`](Self::set_invalid_user_list).
433    ///
434    /// <p>A list of users or groups in the Active Directory that are not allowed to access the file share. A group must be prefixed with the @ character. Acceptable formats include: <code>DOMAIN\User1</code>, <code>user1</code>, <code>@group1</code>, and <code>@DOMAIN\group1</code>. Can only be set if Authentication is set to <code>ActiveDirectory</code>.</p>
435    pub fn invalid_user_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
436        self.inner = self.inner.invalid_user_list(input.into());
437        self
438    }
439    /// <p>A list of users or groups in the Active Directory that are not allowed to access the file share. A group must be prefixed with the @ character. Acceptable formats include: <code>DOMAIN\User1</code>, <code>user1</code>, <code>@group1</code>, and <code>@DOMAIN\group1</code>. Can only be set if Authentication is set to <code>ActiveDirectory</code>.</p>
440    pub fn set_invalid_user_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
441        self.inner = self.inner.set_invalid_user_list(input);
442        self
443    }
444    /// <p>A list of users or groups in the Active Directory that are not allowed to access the file share. A group must be prefixed with the @ character. Acceptable formats include: <code>DOMAIN\User1</code>, <code>user1</code>, <code>@group1</code>, and <code>@DOMAIN\group1</code>. Can only be set if Authentication is set to <code>ActiveDirectory</code>.</p>
445    pub fn get_invalid_user_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
446        self.inner.get_invalid_user_list()
447    }
448    /// <p>The Amazon Resource Name (ARN) of the storage used for audit logs.</p>
449    pub fn audit_destination_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
450        self.inner = self.inner.audit_destination_arn(input.into());
451        self
452    }
453    /// <p>The Amazon Resource Name (ARN) of the storage used for audit logs.</p>
454    pub fn set_audit_destination_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
455        self.inner = self.inner.set_audit_destination_arn(input);
456        self
457    }
458    /// <p>The Amazon Resource Name (ARN) of the storage used for audit logs.</p>
459    pub fn get_audit_destination_arn(&self) -> &::std::option::Option<::std::string::String> {
460        self.inner.get_audit_destination_arn()
461    }
462    /// <p>The authentication method that users use to access the file share. The default is <code>ActiveDirectory</code>.</p>
463    /// <p>Valid Values: <code>ActiveDirectory</code> | <code>GuestAccess</code></p>
464    pub fn authentication(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
465        self.inner = self.inner.authentication(input.into());
466        self
467    }
468    /// <p>The authentication method that users use to access the file share. The default is <code>ActiveDirectory</code>.</p>
469    /// <p>Valid Values: <code>ActiveDirectory</code> | <code>GuestAccess</code></p>
470    pub fn set_authentication(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
471        self.inner = self.inner.set_authentication(input);
472        self
473    }
474    /// <p>The authentication method that users use to access the file share. The default is <code>ActiveDirectory</code>.</p>
475    /// <p>Valid Values: <code>ActiveDirectory</code> | <code>GuestAccess</code></p>
476    pub fn get_authentication(&self) -> &::std::option::Option<::std::string::String> {
477        self.inner.get_authentication()
478    }
479    /// <p>The case of an object name in an Amazon S3 bucket. For <code>ClientSpecified</code>, the client determines the case sensitivity. For <code>CaseSensitive</code>, the gateway determines the case sensitivity. The default value is <code>ClientSpecified</code>.</p>
480    pub fn case_sensitivity(mut self, input: crate::types::CaseSensitivity) -> Self {
481        self.inner = self.inner.case_sensitivity(input);
482        self
483    }
484    /// <p>The case of an object name in an Amazon S3 bucket. For <code>ClientSpecified</code>, the client determines the case sensitivity. For <code>CaseSensitive</code>, the gateway determines the case sensitivity. The default value is <code>ClientSpecified</code>.</p>
485    pub fn set_case_sensitivity(mut self, input: ::std::option::Option<crate::types::CaseSensitivity>) -> Self {
486        self.inner = self.inner.set_case_sensitivity(input);
487        self
488    }
489    /// <p>The case of an object name in an Amazon S3 bucket. For <code>ClientSpecified</code>, the client determines the case sensitivity. For <code>CaseSensitive</code>, the gateway determines the case sensitivity. The default value is <code>ClientSpecified</code>.</p>
490    pub fn get_case_sensitivity(&self) -> &::std::option::Option<crate::types::CaseSensitivity> {
491        self.inner.get_case_sensitivity()
492    }
493    ///
494    /// Appends an item to `Tags`.
495    ///
496    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
497    ///
498    /// <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>
499    /// <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>
500    /// </note>
501    pub fn tags(mut self, input: crate::types::Tag) -> Self {
502        self.inner = self.inner.tags(input);
503        self
504    }
505    /// <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>
506    /// <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>
507    /// </note>
508    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
509        self.inner = self.inner.set_tags(input);
510        self
511    }
512    /// <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>
513    /// <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>
514    /// </note>
515    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
516        self.inner.get_tags()
517    }
518    /// <p>The name of the file share. Optional.</p><note>
519    /// <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>
520    /// <p>A valid SMB file share name cannot contain the following characters: <code>\[</code>,<code>\]</code>,<code>#</code>,<code>;</code>,<code>&lt;</code>,<code>&gt;</code>,<code>:</code>,<code>"</code>,<code>\</code>,<code>/</code>,<code>|</code>,<code>?</code>,<code>*</code>,<code>+</code>, or ASCII control characters <code>1-31</code>.</p>
521    /// </note>
522    pub fn file_share_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
523        self.inner = self.inner.file_share_name(input.into());
524        self
525    }
526    /// <p>The name of the file share. Optional.</p><note>
527    /// <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>
528    /// <p>A valid SMB file share name cannot contain the following characters: <code>\[</code>,<code>\]</code>,<code>#</code>,<code>;</code>,<code>&lt;</code>,<code>&gt;</code>,<code>:</code>,<code>"</code>,<code>\</code>,<code>/</code>,<code>|</code>,<code>?</code>,<code>*</code>,<code>+</code>, or ASCII control characters <code>1-31</code>.</p>
529    /// </note>
530    pub fn set_file_share_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
531        self.inner = self.inner.set_file_share_name(input);
532        self
533    }
534    /// <p>The name of the file share. Optional.</p><note>
535    /// <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>
536    /// <p>A valid SMB file share name cannot contain the following characters: <code>\[</code>,<code>\]</code>,<code>#</code>,<code>;</code>,<code>&lt;</code>,<code>&gt;</code>,<code>:</code>,<code>"</code>,<code>\</code>,<code>/</code>,<code>|</code>,<code>?</code>,<code>*</code>,<code>+</code>, or ASCII control characters <code>1-31</code>.</p>
537    /// </note>
538    pub fn get_file_share_name(&self) -> &::std::option::Option<::std::string::String> {
539        self.inner.get_file_share_name()
540    }
541    /// <p>Specifies refresh cache information for the file share.</p>
542    pub fn cache_attributes(mut self, input: crate::types::CacheAttributes) -> Self {
543        self.inner = self.inner.cache_attributes(input);
544        self
545    }
546    /// <p>Specifies refresh cache information for the file share.</p>
547    pub fn set_cache_attributes(mut self, input: ::std::option::Option<crate::types::CacheAttributes>) -> Self {
548        self.inner = self.inner.set_cache_attributes(input);
549        self
550    }
551    /// <p>Specifies refresh cache information for the file share.</p>
552    pub fn get_cache_attributes(&self) -> &::std::option::Option<crate::types::CacheAttributes> {
553        self.inner.get_cache_attributes()
554    }
555    /// <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>
556    /// <p><code>SettlingTimeInSeconds</code> has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.</p>
557    /// <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>
558    /// </note>
559    /// <p>The following example sets <code>NotificationPolicy</code> on with <code>SettlingTimeInSeconds</code> set to 60.</p>
560    /// <p><code>{\"Upload\": {\"SettlingTimeInSeconds\": 60}}</code></p>
561    /// <p>The following example sets <code>NotificationPolicy</code> off.</p>
562    /// <p><code>{}</code></p>
563    pub fn notification_policy(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
564        self.inner = self.inner.notification_policy(input.into());
565        self
566    }
567    /// <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>
568    /// <p><code>SettlingTimeInSeconds</code> has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.</p>
569    /// <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>
570    /// </note>
571    /// <p>The following example sets <code>NotificationPolicy</code> on with <code>SettlingTimeInSeconds</code> set to 60.</p>
572    /// <p><code>{\"Upload\": {\"SettlingTimeInSeconds\": 60}}</code></p>
573    /// <p>The following example sets <code>NotificationPolicy</code> off.</p>
574    /// <p><code>{}</code></p>
575    pub fn set_notification_policy(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
576        self.inner = self.inner.set_notification_policy(input);
577        self
578    }
579    /// <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>
580    /// <p><code>SettlingTimeInSeconds</code> has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.</p>
581    /// <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>
582    /// </note>
583    /// <p>The following example sets <code>NotificationPolicy</code> on with <code>SettlingTimeInSeconds</code> set to 60.</p>
584    /// <p><code>{\"Upload\": {\"SettlingTimeInSeconds\": 60}}</code></p>
585    /// <p>The following example sets <code>NotificationPolicy</code> off.</p>
586    /// <p><code>{}</code></p>
587    pub fn get_notification_policy(&self) -> &::std::option::Option<::std::string::String> {
588        self.inner.get_notification_policy()
589    }
590    /// <p>Specifies the DNS name for the VPC endpoint that the SMB file share uses to connect to Amazon S3.</p><note>
591    /// <p>This parameter is required for SMB 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>
592    /// </note>
593    pub fn vpc_endpoint_dns_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
594        self.inner = self.inner.vpc_endpoint_dns_name(input.into());
595        self
596    }
597    /// <p>Specifies the DNS name for the VPC endpoint that the SMB file share uses to connect to Amazon S3.</p><note>
598    /// <p>This parameter is required for SMB 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>
599    /// </note>
600    pub fn set_vpc_endpoint_dns_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
601        self.inner = self.inner.set_vpc_endpoint_dns_name(input);
602        self
603    }
604    /// <p>Specifies the DNS name for the VPC endpoint that the SMB file share uses to connect to Amazon S3.</p><note>
605    /// <p>This parameter is required for SMB 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>
606    /// </note>
607    pub fn get_vpc_endpoint_dns_name(&self) -> &::std::option::Option<::std::string::String> {
608        self.inner.get_vpc_endpoint_dns_name()
609    }
610    /// <p>Specifies the Region of the S3 bucket where the SMB file share stores files.</p><note>
611    /// <p>This parameter is required for SMB 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>
612    /// </note>
613    pub fn bucket_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
614        self.inner = self.inner.bucket_region(input.into());
615        self
616    }
617    /// <p>Specifies the Region of the S3 bucket where the SMB file share stores files.</p><note>
618    /// <p>This parameter is required for SMB 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>
619    /// </note>
620    pub fn set_bucket_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
621        self.inner = self.inner.set_bucket_region(input);
622        self
623    }
624    /// <p>Specifies the Region of the S3 bucket where the SMB file share stores files.</p><note>
625    /// <p>This parameter is required for SMB 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>
626    /// </note>
627    pub fn get_bucket_region(&self) -> &::std::option::Option<::std::string::String> {
628        self.inner.get_bucket_region()
629    }
630    /// <p>Specifies whether opportunistic locking is enabled for the SMB file share.</p><note>
631    /// <p>Enabling opportunistic locking on case-sensitive shares is not recommended for workloads that involve access to files with the same name in different case.</p>
632    /// </note>
633    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
634    pub fn oplocks_enabled(mut self, input: bool) -> Self {
635        self.inner = self.inner.oplocks_enabled(input);
636        self
637    }
638    /// <p>Specifies whether opportunistic locking is enabled for the SMB file share.</p><note>
639    /// <p>Enabling opportunistic locking on case-sensitive shares is not recommended for workloads that involve access to files with the same name in different case.</p>
640    /// </note>
641    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
642    pub fn set_oplocks_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
643        self.inner = self.inner.set_oplocks_enabled(input);
644        self
645    }
646    /// <p>Specifies whether opportunistic locking is enabled for the SMB file share.</p><note>
647    /// <p>Enabling opportunistic locking on case-sensitive shares is not recommended for workloads that involve access to files with the same name in different case.</p>
648    /// </note>
649    /// <p>Valid Values: <code>true</code> | <code>false</code></p>
650    pub fn get_oplocks_enabled(&self) -> &::std::option::Option<bool> {
651        self.inner.get_oplocks_enabled()
652    }
653}