// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::create_nfs_file_share::_create_nfs_file_share_input::CreateNfsFileShareInputBuilder;
pub use crate::operation::create_nfs_file_share::_create_nfs_file_share_output::CreateNfsFileShareOutputBuilder;
impl crate::operation::create_nfs_file_share::builders::CreateNfsFileShareInputBuilder {
/// Sends a request with this input using the given client.
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_nfs_file_share::CreateNFSFileShareError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_nfs_file_share();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
/// Fluent builder constructing a request to `CreateNFSFileShare`.
///
/// <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>
/// <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>
/// <p>S3 File Gateways do not support creating hard or symbolic links on a file share.</p>
/// </important>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateNFSFileShareFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_nfs_file_share::builders::CreateNfsFileShareInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
crate::operation::create_nfs_file_share::CreateNFSFileShareError,
> for CreateNFSFileShareFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
crate::operation::create_nfs_file_share::CreateNFSFileShareError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateNFSFileShareFluentBuilder {
/// Creates a new `CreateNFSFileShareFluentBuilder`.
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
/// Access the CreateNFSFileShare as a reference.
pub fn as_input(&self) -> &crate::operation::create_nfs_file_share::builders::CreateNfsFileShareInputBuilder {
&self.inner
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_nfs_file_share::CreateNFSFileShareError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::create_nfs_file_share::CreateNFSFileShare::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_nfs_file_share::CreateNFSFileShare::orchestrate(&runtime_plugins, input).await
}
/// Consumes this builder, creating a customizable operation that can be modified before being sent.
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_nfs_file_share::CreateNfsFileShareOutput,
crate::operation::create_nfs_file_share::CreateNFSFileShareError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
/// <p>A unique string value that you supply that is used by S3 File Gateway to ensure idempotent file share creation.</p>
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
/// <p>A unique string value that you supply that is used by S3 File Gateway to ensure idempotent file share creation.</p>
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
/// <p>A unique string value that you supply that is used by S3 File Gateway to ensure idempotent file share creation.</p>
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_client_token()
}
/// <p>File share default values. Optional.</p>
pub fn nfs_file_share_defaults(mut self, input: crate::types::NfsFileShareDefaults) -> Self {
self.inner = self.inner.nfs_file_share_defaults(input);
self
}
/// <p>File share default values. Optional.</p>
pub fn set_nfs_file_share_defaults(mut self, input: ::std::option::Option<crate::types::NfsFileShareDefaults>) -> Self {
self.inner = self.inner.set_nfs_file_share_defaults(input);
self
}
/// <p>File share default values. Optional.</p>
pub fn get_nfs_file_share_defaults(&self) -> &::std::option::Option<crate::types::NfsFileShareDefaults> {
self.inner.get_nfs_file_share_defaults()
}
/// <p>The Amazon Resource Name (ARN) of the S3 File Gateway on which you want to create a file share.</p>
pub fn gateway_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.gateway_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the S3 File Gateway on which you want to create a file share.</p>
pub fn set_gateway_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_gateway_arn(input);
self
}
/// <p>The Amazon Resource Name (ARN) of the S3 File Gateway on which you want to create a file share.</p>
pub fn get_gateway_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_gateway_arn()
}
/// <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>
/// <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>
/// <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>
/// </note>
pub fn encryption_type(mut self, input: crate::types::EncryptionType) -> Self {
self.inner = self.inner.encryption_type(input);
self
}
/// <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>
/// <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>
/// <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>
/// </note>
pub fn set_encryption_type(mut self, input: ::std::option::Option<crate::types::EncryptionType>) -> Self {
self.inner = self.inner.set_encryption_type(input);
self
}
/// <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>
/// <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>
/// <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>
/// </note>
pub fn get_encryption_type(&self) -> &::std::option::Option<crate::types::EncryptionType> {
self.inner.get_encryption_type()
}
/// <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>
/// <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>
/// <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>
/// </note>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
#[deprecated(note = "KMSEncrypted is deprecated, use EncryptionType instead.")]
pub fn kms_encrypted(mut self, input: bool) -> Self {
self.inner = self.inner.kms_encrypted(input);
self
}
/// <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>
/// <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>
/// <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>
/// </note>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
#[deprecated(note = "KMSEncrypted is deprecated, use EncryptionType instead.")]
pub fn set_kms_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_kms_encrypted(input);
self
}
/// <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>
/// <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>
/// <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>
/// </note>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
#[deprecated(note = "KMSEncrypted is deprecated, use EncryptionType instead.")]
pub fn get_kms_encrypted(&self) -> &::std::option::Option<bool> {
self.inner.get_kms_encrypted()
}
/// <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>
pub fn kms_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.kms_key(input.into());
self
}
/// <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>
pub fn set_kms_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_kms_key(input);
self
}
/// <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>
pub fn get_kms_key(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_kms_key()
}
/// <p>The ARN of the Identity and Access Management (IAM) role that an S3 File Gateway assumes when it accesses the underlying storage.</p>
pub fn role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.role(input.into());
self
}
/// <p>The ARN of the Identity and Access Management (IAM) role that an S3 File Gateway assumes when it accesses the underlying storage.</p>
pub fn set_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_role(input);
self
}
/// <p>The ARN of the Identity and Access Management (IAM) role that an S3 File Gateway assumes when it accesses the underlying storage.</p>
pub fn get_role(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_role()
}
/// <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>
/// <p>You can specify LocationARN as a bucket ARN, access point ARN or access point alias, as shown in the following examples.</p>
/// <p>Bucket ARN:</p>
/// <p><code>arn:aws:s3:::amzn-s3-demo-bucket/prefix/</code></p>
/// <p>Access point ARN:</p>
/// <p><code>arn:aws:s3:region:account-id:accesspoint/access-point-name/prefix/</code></p>
/// <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>
/// <p>Access point alias:</p>
/// <p><code>test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias</code></p>
/// </note>
pub fn location_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.location_arn(input.into());
self
}
/// <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>
/// <p>You can specify LocationARN as a bucket ARN, access point ARN or access point alias, as shown in the following examples.</p>
/// <p>Bucket ARN:</p>
/// <p><code>arn:aws:s3:::amzn-s3-demo-bucket/prefix/</code></p>
/// <p>Access point ARN:</p>
/// <p><code>arn:aws:s3:region:account-id:accesspoint/access-point-name/prefix/</code></p>
/// <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>
/// <p>Access point alias:</p>
/// <p><code>test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias</code></p>
/// </note>
pub fn set_location_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_location_arn(input);
self
}
/// <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>
/// <p>You can specify LocationARN as a bucket ARN, access point ARN or access point alias, as shown in the following examples.</p>
/// <p>Bucket ARN:</p>
/// <p><code>arn:aws:s3:::amzn-s3-demo-bucket/prefix/</code></p>
/// <p>Access point ARN:</p>
/// <p><code>arn:aws:s3:region:account-id:accesspoint/access-point-name/prefix/</code></p>
/// <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>
/// <p>Access point alias:</p>
/// <p><code>test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias</code></p>
/// </note>
pub fn get_location_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_location_arn()
}
/// <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>
/// <p>Valid Values: <code>S3_STANDARD</code> | <code>S3_INTELLIGENT_TIERING</code> | <code>S3_STANDARD_IA</code> | <code>S3_ONEZONE_IA</code></p>
pub fn default_storage_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.default_storage_class(input.into());
self
}
/// <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>
/// <p>Valid Values: <code>S3_STANDARD</code> | <code>S3_INTELLIGENT_TIERING</code> | <code>S3_STANDARD_IA</code> | <code>S3_ONEZONE_IA</code></p>
pub fn set_default_storage_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_default_storage_class(input);
self
}
/// <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>
/// <p>Valid Values: <code>S3_STANDARD</code> | <code>S3_INTELLIGENT_TIERING</code> | <code>S3_STANDARD_IA</code> | <code>S3_ONEZONE_IA</code></p>
pub fn get_default_storage_class(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_default_storage_class()
}
/// <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>
pub fn object_acl(mut self, input: crate::types::ObjectAcl) -> Self {
self.inner = self.inner.object_acl(input);
self
}
/// <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>
pub fn set_object_acl(mut self, input: ::std::option::Option<crate::types::ObjectAcl>) -> Self {
self.inner = self.inner.set_object_acl(input);
self
}
/// <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>
pub fn get_object_acl(&self) -> &::std::option::Option<crate::types::ObjectAcl> {
self.inner.get_object_acl()
}
///
/// Appends an item to `ClientList`.
///
/// To override the contents of this collection use [`set_client_list`](Self::set_client_list).
///
/// <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>
pub fn client_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_list(input.into());
self
}
/// <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>
pub fn set_client_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_client_list(input);
self
}
/// <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>
pub fn get_client_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_client_list()
}
/// <p>A value that maps a user to anonymous user.</p>
/// <p>Valid values are the following:</p>
/// <ul>
/// <li>
/// <p><code>RootSquash</code>: Only root is mapped to anonymous user.</p></li>
/// <li>
/// <p><code>NoSquash</code>: No one is mapped to anonymous user.</p></li>
/// <li>
/// <p><code>AllSquash</code>: Everyone is mapped to anonymous user.</p></li>
/// </ul>
pub fn squash(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.squash(input.into());
self
}
/// <p>A value that maps a user to anonymous user.</p>
/// <p>Valid values are the following:</p>
/// <ul>
/// <li>
/// <p><code>RootSquash</code>: Only root is mapped to anonymous user.</p></li>
/// <li>
/// <p><code>NoSquash</code>: No one is mapped to anonymous user.</p></li>
/// <li>
/// <p><code>AllSquash</code>: Everyone is mapped to anonymous user.</p></li>
/// </ul>
pub fn set_squash(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_squash(input);
self
}
/// <p>A value that maps a user to anonymous user.</p>
/// <p>Valid values are the following:</p>
/// <ul>
/// <li>
/// <p><code>RootSquash</code>: Only root is mapped to anonymous user.</p></li>
/// <li>
/// <p><code>NoSquash</code>: No one is mapped to anonymous user.</p></li>
/// <li>
/// <p><code>AllSquash</code>: Everyone is mapped to anonymous user.</p></li>
/// </ul>
pub fn get_squash(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_squash()
}
/// <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>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
pub fn read_only(mut self, input: bool) -> Self {
self.inner = self.inner.read_only(input);
self
}
/// <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>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
pub fn set_read_only(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_read_only(input);
self
}
/// <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>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
pub fn get_read_only(&self) -> &::std::option::Option<bool> {
self.inner.get_read_only()
}
/// <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>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
pub fn guess_mime_type_enabled(mut self, input: bool) -> Self {
self.inner = self.inner.guess_mime_type_enabled(input);
self
}
/// <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>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
pub fn set_guess_mime_type_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_guess_mime_type_enabled(input);
self
}
/// <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>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
pub fn get_guess_mime_type_enabled(&self) -> &::std::option::Option<bool> {
self.inner.get_guess_mime_type_enabled()
}
/// <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>
/// <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>
/// </note>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
pub fn requester_pays(mut self, input: bool) -> Self {
self.inner = self.inner.requester_pays(input);
self
}
/// <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>
/// <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>
/// </note>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
pub fn set_requester_pays(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_requester_pays(input);
self
}
/// <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>
/// <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>
/// </note>
/// <p>Valid Values: <code>true</code> | <code>false</code></p>
pub fn get_requester_pays(&self) -> &::std::option::Option<bool> {
self.inner.get_requester_pays()
}
///
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <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>
/// <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>
/// </note>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <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>
/// <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>
/// </note>
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// <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>
/// <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>
/// </note>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
self.inner.get_tags()
}
/// <p>The name of the file share. Optional.</p><note>
/// <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>
/// <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>
/// </note>
pub fn file_share_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.file_share_name(input.into());
self
}
/// <p>The name of the file share. Optional.</p><note>
/// <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>
/// <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>
/// </note>
pub fn set_file_share_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_file_share_name(input);
self
}
/// <p>The name of the file share. Optional.</p><note>
/// <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>
/// <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>
/// </note>
pub fn get_file_share_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_file_share_name()
}
/// <p>Specifies refresh cache information for the file share.</p>
pub fn cache_attributes(mut self, input: crate::types::CacheAttributes) -> Self {
self.inner = self.inner.cache_attributes(input);
self
}
/// <p>Specifies refresh cache information for the file share.</p>
pub fn set_cache_attributes(mut self, input: ::std::option::Option<crate::types::CacheAttributes>) -> Self {
self.inner = self.inner.set_cache_attributes(input);
self
}
/// <p>Specifies refresh cache information for the file share.</p>
pub fn get_cache_attributes(&self) -> &::std::option::Option<crate::types::CacheAttributes> {
self.inner.get_cache_attributes()
}
/// <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>
/// <p><code>SettlingTimeInSeconds</code> has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.</p>
/// <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>
/// </note>
/// <p>The following example sets <code>NotificationPolicy</code> on with <code>SettlingTimeInSeconds</code> set to 60.</p>
/// <p><code>{\"Upload\": {\"SettlingTimeInSeconds\": 60}}</code></p>
/// <p>The following example sets <code>NotificationPolicy</code> off.</p>
/// <p><code>{}</code></p>
pub fn notification_policy(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.notification_policy(input.into());
self
}
/// <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>
/// <p><code>SettlingTimeInSeconds</code> has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.</p>
/// <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>
/// </note>
/// <p>The following example sets <code>NotificationPolicy</code> on with <code>SettlingTimeInSeconds</code> set to 60.</p>
/// <p><code>{\"Upload\": {\"SettlingTimeInSeconds\": 60}}</code></p>
/// <p>The following example sets <code>NotificationPolicy</code> off.</p>
/// <p><code>{}</code></p>
pub fn set_notification_policy(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_notification_policy(input);
self
}
/// <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>
/// <p><code>SettlingTimeInSeconds</code> has no effect on the timing of the object uploading to Amazon S3, only the timing of the notification.</p>
/// <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>
/// </note>
/// <p>The following example sets <code>NotificationPolicy</code> on with <code>SettlingTimeInSeconds</code> set to 60.</p>
/// <p><code>{\"Upload\": {\"SettlingTimeInSeconds\": 60}}</code></p>
/// <p>The following example sets <code>NotificationPolicy</code> off.</p>
/// <p><code>{}</code></p>
pub fn get_notification_policy(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_notification_policy()
}
/// <p>Specifies the DNS name for the VPC endpoint that the NFS file share uses to connect to Amazon S3.</p><note>
/// <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>
/// </note>
pub fn vpc_endpoint_dns_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.vpc_endpoint_dns_name(input.into());
self
}
/// <p>Specifies the DNS name for the VPC endpoint that the NFS file share uses to connect to Amazon S3.</p><note>
/// <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>
/// </note>
pub fn set_vpc_endpoint_dns_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_vpc_endpoint_dns_name(input);
self
}
/// <p>Specifies the DNS name for the VPC endpoint that the NFS file share uses to connect to Amazon S3.</p><note>
/// <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>
/// </note>
pub fn get_vpc_endpoint_dns_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_vpc_endpoint_dns_name()
}
/// <p>Specifies the Region of the S3 bucket where the NFS file share stores files.</p><note>
/// <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>
/// </note>
pub fn bucket_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.bucket_region(input.into());
self
}
/// <p>Specifies the Region of the S3 bucket where the NFS file share stores files.</p><note>
/// <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>
/// </note>
pub fn set_bucket_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_bucket_region(input);
self
}
/// <p>Specifies the Region of the S3 bucket where the NFS file share stores files.</p><note>
/// <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>
/// </note>
pub fn get_bucket_region(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_bucket_region()
}
/// <p>The Amazon Resource Name (ARN) of the storage used for audit logs.</p>
pub fn audit_destination_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.audit_destination_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the storage used for audit logs.</p>
pub fn set_audit_destination_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_audit_destination_arn(input);
self
}
/// <p>The Amazon Resource Name (ARN) of the storage used for audit logs.</p>
pub fn get_audit_destination_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_audit_destination_arn()
}
}