/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include CreateLocationNfsRequestSee Also:
AWS
* API Reference
The subdirectory in the NFS file system that is used to read data from the * NFS source location or write data to the NFS destination. The NFS path should be * a path that's exported by the NFS server, or a subdirectory of that path. The * path should be such that it can be mounted by other NFS clients in your network. *
To see all the paths exported by your NFS server. run "showmount
* -e nfs-server-name" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with no_root_squash, or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.
If * you are copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
For information about * NFS export configuration, see 18.7. The /etc/exports Configuration File in the * Red Hat Enterprise Linux documentation.
*/ inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; } /** *The subdirectory in the NFS file system that is used to read data from the * NFS source location or write data to the NFS destination. The NFS path should be * a path that's exported by the NFS server, or a subdirectory of that path. The * path should be such that it can be mounted by other NFS clients in your network. *
To see all the paths exported by your NFS server. run "showmount
* -e nfs-server-name" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with no_root_squash, or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.
If * you are copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
For information about * NFS export configuration, see 18.7. The /etc/exports Configuration File in the * Red Hat Enterprise Linux documentation.
*/ inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; } /** *The subdirectory in the NFS file system that is used to read data from the * NFS source location or write data to the NFS destination. The NFS path should be * a path that's exported by the NFS server, or a subdirectory of that path. The * path should be such that it can be mounted by other NFS clients in your network. *
To see all the paths exported by your NFS server. run "showmount
* -e nfs-server-name" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with no_root_squash, or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.
If * you are copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
For information about * NFS export configuration, see 18.7. The /etc/exports Configuration File in the * Red Hat Enterprise Linux documentation.
*/ inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; } /** *The subdirectory in the NFS file system that is used to read data from the * NFS source location or write data to the NFS destination. The NFS path should be * a path that's exported by the NFS server, or a subdirectory of that path. The * path should be such that it can be mounted by other NFS clients in your network. *
To see all the paths exported by your NFS server. run "showmount
* -e nfs-server-name" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with no_root_squash, or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.
If * you are copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
For information about * NFS export configuration, see 18.7. The /etc/exports Configuration File in the * Red Hat Enterprise Linux documentation.
*/ inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); } /** *The subdirectory in the NFS file system that is used to read data from the * NFS source location or write data to the NFS destination. The NFS path should be * a path that's exported by the NFS server, or a subdirectory of that path. The * path should be such that it can be mounted by other NFS clients in your network. *
To see all the paths exported by your NFS server. run "showmount
* -e nfs-server-name" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with no_root_squash, or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.
If * you are copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
For information about * NFS export configuration, see 18.7. The /etc/exports Configuration File in the * Red Hat Enterprise Linux documentation.
*/ inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); } /** *The subdirectory in the NFS file system that is used to read data from the * NFS source location or write data to the NFS destination. The NFS path should be * a path that's exported by the NFS server, or a subdirectory of that path. The * path should be such that it can be mounted by other NFS clients in your network. *
To see all the paths exported by your NFS server. run "showmount
* -e nfs-server-name" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with no_root_squash, or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.
If * you are copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
For information about * NFS export configuration, see 18.7. The /etc/exports Configuration File in the * Red Hat Enterprise Linux documentation.
*/ inline CreateLocationNfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;} /** *The subdirectory in the NFS file system that is used to read data from the * NFS source location or write data to the NFS destination. The NFS path should be * a path that's exported by the NFS server, or a subdirectory of that path. The * path should be such that it can be mounted by other NFS clients in your network. *
To see all the paths exported by your NFS server. run "showmount
* -e nfs-server-name" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with no_root_squash, or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.
If * you are copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
For information about * NFS export configuration, see 18.7. The /etc/exports Configuration File in the * Red Hat Enterprise Linux documentation.
*/ inline CreateLocationNfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;} /** *The subdirectory in the NFS file system that is used to read data from the * NFS source location or write data to the NFS destination. The NFS path should be * a path that's exported by the NFS server, or a subdirectory of that path. The * path should be such that it can be mounted by other NFS clients in your network. *
To see all the paths exported by your NFS server. run "showmount
* -e nfs-server-name" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with no_root_squash, or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.
If * you are copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
For information about * NFS export configuration, see 18.7. The /etc/exports Configuration File in the * Red Hat Enterprise Linux documentation.
*/ inline CreateLocationNfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;} /** *The name of the NFS server. This value is the IP address or Domain Name * Service (DNS) name of the NFS server. An agent that is installed on-premises * uses this host name to mount the NFS server in a network.
If you are * copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
This name must * either be DNS-compliant or must be an IP version 4 (IPv4) address.
*/ inline const Aws::String& GetServerHostname() const{ return m_serverHostname; } /** *The name of the NFS server. This value is the IP address or Domain Name * Service (DNS) name of the NFS server. An agent that is installed on-premises * uses this host name to mount the NFS server in a network.
If you are * copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
This name must * either be DNS-compliant or must be an IP version 4 (IPv4) address.
*/ inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; } /** *The name of the NFS server. This value is the IP address or Domain Name * Service (DNS) name of the NFS server. An agent that is installed on-premises * uses this host name to mount the NFS server in a network.
If you are * copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
This name must * either be DNS-compliant or must be an IP version 4 (IPv4) address.
*/ inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; } /** *The name of the NFS server. This value is the IP address or Domain Name * Service (DNS) name of the NFS server. An agent that is installed on-premises * uses this host name to mount the NFS server in a network.
If you are * copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
This name must * either be DNS-compliant or must be an IP version 4 (IPv4) address.
*/ inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); } /** *The name of the NFS server. This value is the IP address or Domain Name * Service (DNS) name of the NFS server. An agent that is installed on-premises * uses this host name to mount the NFS server in a network.
If you are * copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
This name must * either be DNS-compliant or must be an IP version 4 (IPv4) address.
*/ inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); } /** *The name of the NFS server. This value is the IP address or Domain Name * Service (DNS) name of the NFS server. An agent that is installed on-premises * uses this host name to mount the NFS server in a network.
If you are * copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
This name must * either be DNS-compliant or must be an IP version 4 (IPv4) address.
*/ inline CreateLocationNfsRequest& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;} /** *The name of the NFS server. This value is the IP address or Domain Name * Service (DNS) name of the NFS server. An agent that is installed on-premises * uses this host name to mount the NFS server in a network.
If you are * copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
This name must * either be DNS-compliant or must be an IP version 4 (IPv4) address.
*/ inline CreateLocationNfsRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;} /** *The name of the NFS server. This value is the IP address or Domain Name * Service (DNS) name of the NFS server. An agent that is installed on-premises * uses this host name to mount the NFS server in a network.
If you are * copying data to or from your AWS Snowcone device, see NFS * Server on AWS Snowcone for more information.
This name must * either be DNS-compliant or must be an IP version 4 (IPv4) address.
*/ inline CreateLocationNfsRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;} /** *Contains a list of Amazon Resource Names (ARNs) of agents that are used to * connect to an NFS server.
If you are copying data to or from your AWS * Snowcone device, see NFS * Server on AWS Snowcone for more information.
*/ inline const OnPremConfig& GetOnPremConfig() const{ return m_onPremConfig; } /** *Contains a list of Amazon Resource Names (ARNs) of agents that are used to * connect to an NFS server.
If you are copying data to or from your AWS * Snowcone device, see NFS * Server on AWS Snowcone for more information.
*/ inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; } /** *Contains a list of Amazon Resource Names (ARNs) of agents that are used to * connect to an NFS server.
If you are copying data to or from your AWS * Snowcone device, see NFS * Server on AWS Snowcone for more information.
*/ inline void SetOnPremConfig(const OnPremConfig& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = value; } /** *Contains a list of Amazon Resource Names (ARNs) of agents that are used to * connect to an NFS server.
If you are copying data to or from your AWS * Snowcone device, see NFS * Server on AWS Snowcone for more information.
*/ inline void SetOnPremConfig(OnPremConfig&& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = std::move(value); } /** *Contains a list of Amazon Resource Names (ARNs) of agents that are used to * connect to an NFS server.
If you are copying data to or from your AWS * Snowcone device, see NFS * Server on AWS Snowcone for more information.
*/ inline CreateLocationNfsRequest& WithOnPremConfig(const OnPremConfig& value) { SetOnPremConfig(value); return *this;} /** *Contains a list of Amazon Resource Names (ARNs) of agents that are used to * connect to an NFS server.
If you are copying data to or from your AWS * Snowcone device, see NFS * Server on AWS Snowcone for more information.
*/ inline CreateLocationNfsRequest& WithOnPremConfig(OnPremConfig&& value) { SetOnPremConfig(std::move(value)); return *this;} /** *The NFS mount options that DataSync can use to mount your NFS share.
*/ inline const NfsMountOptions& GetMountOptions() const{ return m_mountOptions; } /** *The NFS mount options that DataSync can use to mount your NFS share.
*/ inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; } /** *The NFS mount options that DataSync can use to mount your NFS share.
*/ inline void SetMountOptions(const NfsMountOptions& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; } /** *The NFS mount options that DataSync can use to mount your NFS share.
*/ inline void SetMountOptions(NfsMountOptions&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); } /** *The NFS mount options that DataSync can use to mount your NFS share.
*/ inline CreateLocationNfsRequest& WithMountOptions(const NfsMountOptions& value) { SetMountOptions(value); return *this;} /** *The NFS mount options that DataSync can use to mount your NFS share.
*/ inline CreateLocationNfsRequest& WithMountOptions(NfsMountOptions&& value) { SetMountOptions(std::move(value)); return *this;} /** *The key-value pair that represents the tag that you want to add to the * location. The value can be an empty string. We recommend using tags to name your * resources.
*/ inline const Aws::VectorThe key-value pair that represents the tag that you want to add to the * location. The value can be an empty string. We recommend using tags to name your * resources.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The key-value pair that represents the tag that you want to add to the * location. The value can be an empty string. We recommend using tags to name your * resources.
*/ inline void SetTags(const Aws::VectorThe key-value pair that represents the tag that you want to add to the * location. The value can be an empty string. We recommend using tags to name your * resources.
*/ inline void SetTags(Aws::VectorThe key-value pair that represents the tag that you want to add to the * location. The value can be an empty string. We recommend using tags to name your * resources.
*/ inline CreateLocationNfsRequest& WithTags(const Aws::VectorThe key-value pair that represents the tag that you want to add to the * location. The value can be an empty string. We recommend using tags to name your * resources.
*/ inline CreateLocationNfsRequest& WithTags(Aws::VectorThe key-value pair that represents the tag that you want to add to the * location. The value can be an empty string. We recommend using tags to name your * resources.
*/ inline CreateLocationNfsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The key-value pair that represents the tag that you want to add to the * location. The value can be an empty string. We recommend using tags to name your * resources.
*/ inline CreateLocationNfsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_subdirectory; bool m_subdirectoryHasBeenSet; Aws::String m_serverHostname; bool m_serverHostnameHasBeenSet; OnPremConfig m_onPremConfig; bool m_onPremConfigHasBeenSet; NfsMountOptions m_mountOptions; bool m_mountOptionsHasBeenSet; Aws::Vector