/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace DataSync { namespace Model { /** *

CreateLocationNfsRequest

See Also:

AWS * API Reference

*/ class CreateLocationNfsRequest : public DataSyncRequest { public: AWS_DATASYNC_API CreateLocationNfsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateLocationNfs"; } AWS_DATASYNC_API Aws::String SerializePayload() const override; AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the subdirectory in the NFS file server that DataSync transfers to * or from. 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 Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; } /** *

Specifies the subdirectory in the NFS file server that DataSync transfers to * or from. 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 Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; } /** *

Specifies the subdirectory in the NFS file server that DataSync transfers to * or from. 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 Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; } /** *

Specifies the subdirectory in the NFS file server that DataSync transfers to * or from. 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 Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); } /** *

Specifies the subdirectory in the NFS file server that DataSync transfers to * or from. 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 Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); } /** *

Specifies the subdirectory in the NFS file server that DataSync transfers to * or from. 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 Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline CreateLocationNfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;} /** *

Specifies the subdirectory in the NFS file server that DataSync transfers to * or from. 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 Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline CreateLocationNfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;} /** *

Specifies the subdirectory in the NFS file server that DataSync transfers to * or from. 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 Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline CreateLocationNfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;} /** *

Specifies the IP address or domain name of your NFS file server. An agent * that is installed on-premises uses this hostname to mount the NFS server in a * network.

If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information.

You must specify be * an IP version 4 address or Domain Name System (DNS)-compliant name.

*/ inline const Aws::String& GetServerHostname() const{ return m_serverHostname; } /** *

Specifies the IP address or domain name of your NFS file server. An agent * that is installed on-premises uses this hostname to mount the NFS server in a * network.

If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information.

You must specify be * an IP version 4 address or Domain Name System (DNS)-compliant name.

*/ inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; } /** *

Specifies the IP address or domain name of your NFS file server. An agent * that is installed on-premises uses this hostname to mount the NFS server in a * network.

If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information.

You must specify be * an IP version 4 address or Domain Name System (DNS)-compliant name.

*/ inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; } /** *

Specifies the IP address or domain name of your NFS file server. An agent * that is installed on-premises uses this hostname to mount the NFS server in a * network.

If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information.

You must specify be * an IP version 4 address or Domain Name System (DNS)-compliant name.

*/ inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); } /** *

Specifies the IP address or domain name of your NFS file server. An agent * that is installed on-premises uses this hostname to mount the NFS server in a * network.

If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information.

You must specify be * an IP version 4 address or Domain Name System (DNS)-compliant name.

*/ inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); } /** *

Specifies the IP address or domain name of your NFS file server. An agent * that is installed on-premises uses this hostname to mount the NFS server in a * network.

If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information.

You must specify be * an IP version 4 address or Domain Name System (DNS)-compliant name.

*/ inline CreateLocationNfsRequest& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;} /** *

Specifies the IP address or domain name of your NFS file server. An agent * that is installed on-premises uses this hostname to mount the NFS server in a * network.

If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information.

You must specify be * an IP version 4 address or Domain Name System (DNS)-compliant name.

*/ inline CreateLocationNfsRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;} /** *

Specifies the IP address or domain name of your NFS file server. An agent * that is installed on-premises uses this hostname to mount the NFS server in a * network.

If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information.

You must specify be * an IP version 4 address or Domain Name System (DNS)-compliant name.

*/ inline CreateLocationNfsRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;} /** *

Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to * connect to your NFS file server.

If you are copying data to or from your * Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline const OnPremConfig& GetOnPremConfig() const{ return m_onPremConfig; } /** *

Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to * connect to your NFS file server.

If you are copying data to or from your * Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; } /** *

Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to * connect to your NFS file server.

If you are copying data to or from your * Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline void SetOnPremConfig(const OnPremConfig& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = value; } /** *

Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to * connect to your NFS file server.

If you are copying data to or from your * Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline void SetOnPremConfig(OnPremConfig&& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = std::move(value); } /** *

Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to * connect to your NFS file server.

If you are copying data to or from your * Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline CreateLocationNfsRequest& WithOnPremConfig(const OnPremConfig& value) { SetOnPremConfig(value); return *this;} /** *

Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to * connect to your NFS file server.

If you are copying data to or from your * Snowcone device, see NFS * Server on Snowcone for more information.

*/ inline CreateLocationNfsRequest& WithOnPremConfig(OnPremConfig&& value) { SetOnPremConfig(std::move(value)); return *this;} /** *

Specifies the mount options that DataSync can use to mount your NFS * share.

*/ inline const NfsMountOptions& GetMountOptions() const{ return m_mountOptions; } /** *

Specifies the mount options that DataSync can use to mount your NFS * share.

*/ inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; } /** *

Specifies the mount options that DataSync can use to mount your NFS * share.

*/ inline void SetMountOptions(const NfsMountOptions& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; } /** *

Specifies the mount options that DataSync can use to mount your NFS * share.

*/ inline void SetMountOptions(NfsMountOptions&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); } /** *

Specifies the mount options that DataSync can use to mount your NFS * share.

*/ inline CreateLocationNfsRequest& WithMountOptions(const NfsMountOptions& value) { SetMountOptions(value); return *this;} /** *

Specifies the mount options that DataSync can use to mount your NFS * share.

*/ inline CreateLocationNfsRequest& WithMountOptions(NfsMountOptions&& value) { SetMountOptions(std::move(value)); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * location.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * location.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * location.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * location.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * location.

*/ inline CreateLocationNfsRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * location.

*/ inline CreateLocationNfsRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * location.

*/ inline CreateLocationNfsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Specifies labels that help you categorize, filter, and search for your Amazon * Web Services resources. We recommend creating at least a name tag for your * location.

*/ 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 = false; Aws::String m_serverHostname; bool m_serverHostnameHasBeenSet = false; OnPremConfig m_onPremConfig; bool m_onPremConfigHasBeenSet = false; NfsMountOptions m_mountOptions; bool m_mountOptionsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws