/** * 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 namespace Aws { namespace DataSync { namespace Model { /** *

CreateLocationSmbRequest

See Also:

AWS * API Reference

*/ class CreateLocationSmbRequest : public DataSyncRequest { public: AWS_DATASYNC_API CreateLocationSmbRequest(); // 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 "CreateLocationSmb"; } AWS_DATASYNC_API Aws::String SerializePayload() const override; AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the name of the share exported by your SMB file server where * DataSync will read or write data. You can include a subdirectory in the share * path (for example, /path/to/subdirectory). Make sure that other SMB * clients in your network can also mount this path.

To copy all data in the * specified subdirectory, DataSync must be able to mount the SMB share and access * all of its data. For more information, see required * permissions for SMB locations.

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

Specifies the name of the share exported by your SMB file server where * DataSync will read or write data. You can include a subdirectory in the share * path (for example, /path/to/subdirectory). Make sure that other SMB * clients in your network can also mount this path.

To copy all data in the * specified subdirectory, DataSync must be able to mount the SMB share and access * all of its data. For more information, see required * permissions for SMB locations.

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

Specifies the name of the share exported by your SMB file server where * DataSync will read or write data. You can include a subdirectory in the share * path (for example, /path/to/subdirectory). Make sure that other SMB * clients in your network can also mount this path.

To copy all data in the * specified subdirectory, DataSync must be able to mount the SMB share and access * all of its data. For more information, see required * permissions for SMB locations.

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

Specifies the name of the share exported by your SMB file server where * DataSync will read or write data. You can include a subdirectory in the share * path (for example, /path/to/subdirectory). Make sure that other SMB * clients in your network can also mount this path.

To copy all data in the * specified subdirectory, DataSync must be able to mount the SMB share and access * all of its data. For more information, see required * permissions for SMB locations.

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

Specifies the name of the share exported by your SMB file server where * DataSync will read or write data. You can include a subdirectory in the share * path (for example, /path/to/subdirectory). Make sure that other SMB * clients in your network can also mount this path.

To copy all data in the * specified subdirectory, DataSync must be able to mount the SMB share and access * all of its data. For more information, see required * permissions for SMB locations.

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

Specifies the name of the share exported by your SMB file server where * DataSync will read or write data. You can include a subdirectory in the share * path (for example, /path/to/subdirectory). Make sure that other SMB * clients in your network can also mount this path.

To copy all data in the * specified subdirectory, DataSync must be able to mount the SMB share and access * all of its data. For more information, see required * permissions for SMB locations.

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

Specifies the name of the share exported by your SMB file server where * DataSync will read or write data. You can include a subdirectory in the share * path (for example, /path/to/subdirectory). Make sure that other SMB * clients in your network can also mount this path.

To copy all data in the * specified subdirectory, DataSync must be able to mount the SMB share and access * all of its data. For more information, see required * permissions for SMB locations.

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

Specifies the name of the share exported by your SMB file server where * DataSync will read or write data. You can include a subdirectory in the share * path (for example, /path/to/subdirectory). Make sure that other SMB * clients in your network can also mount this path.

To copy all data in the * specified subdirectory, DataSync must be able to mount the SMB share and access * all of its data. For more information, see required * permissions for SMB locations.

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

Specifies the Domain Name Service (DNS) name or IP address of the SMB file * server that your DataSync agent will mount.

You can't specify an * IP version 6 (IPv6) address.

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

Specifies the Domain Name Service (DNS) name or IP address of the SMB file * server that your DataSync agent will mount.

You can't specify an * IP version 6 (IPv6) address.

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

Specifies the Domain Name Service (DNS) name or IP address of the SMB file * server that your DataSync agent will mount.

You can't specify an * IP version 6 (IPv6) address.

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

Specifies the Domain Name Service (DNS) name or IP address of the SMB file * server that your DataSync agent will mount.

You can't specify an * IP version 6 (IPv6) address.

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

Specifies the Domain Name Service (DNS) name or IP address of the SMB file * server that your DataSync agent will mount.

You can't specify an * IP version 6 (IPv6) address.

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

Specifies the Domain Name Service (DNS) name or IP address of the SMB file * server that your DataSync agent will mount.

You can't specify an * IP version 6 (IPv6) address.

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

Specifies the Domain Name Service (DNS) name or IP address of the SMB file * server that your DataSync agent will mount.

You can't specify an * IP version 6 (IPv6) address.

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

Specifies the Domain Name Service (DNS) name or IP address of the SMB file * server that your DataSync agent will mount.

You can't specify an * IP version 6 (IPv6) address.

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

Specifies the user name that can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * information about choosing a user with the right level of access for your * transfer, see required * permissions for SMB locations.

*/ inline const Aws::String& GetUser() const{ return m_user; } /** *

Specifies the user name that can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * information about choosing a user with the right level of access for your * transfer, see required * permissions for SMB locations.

*/ inline bool UserHasBeenSet() const { return m_userHasBeenSet; } /** *

Specifies the user name that can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * information about choosing a user with the right level of access for your * transfer, see required * permissions for SMB locations.

*/ inline void SetUser(const Aws::String& value) { m_userHasBeenSet = true; m_user = value; } /** *

Specifies the user name that can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * information about choosing a user with the right level of access for your * transfer, see required * permissions for SMB locations.

*/ inline void SetUser(Aws::String&& value) { m_userHasBeenSet = true; m_user = std::move(value); } /** *

Specifies the user name that can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * information about choosing a user with the right level of access for your * transfer, see required * permissions for SMB locations.

*/ inline void SetUser(const char* value) { m_userHasBeenSet = true; m_user.assign(value); } /** *

Specifies the user name that can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * information about choosing a user with the right level of access for your * transfer, see required * permissions for SMB locations.

*/ inline CreateLocationSmbRequest& WithUser(const Aws::String& value) { SetUser(value); return *this;} /** *

Specifies the user name that can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * information about choosing a user with the right level of access for your * transfer, see required * permissions for SMB locations.

*/ inline CreateLocationSmbRequest& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;} /** *

Specifies the user name that can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * information about choosing a user with the right level of access for your * transfer, see required * permissions for SMB locations.

*/ inline CreateLocationSmbRequest& WithUser(const char* value) { SetUser(value); return *this;} /** *

Specifies the Windows domain name that your SMB file server belongs to.

*

For more information, see required * permissions for SMB locations.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

Specifies the Windows domain name that your SMB file server belongs to.

*

For more information, see required * permissions for SMB locations.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

Specifies the Windows domain name that your SMB file server belongs to.

*

For more information, see required * permissions for SMB locations.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

Specifies the Windows domain name that your SMB file server belongs to.

*

For more information, see required * permissions for SMB locations.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

Specifies the Windows domain name that your SMB file server belongs to.

*

For more information, see required * permissions for SMB locations.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

Specifies the Windows domain name that your SMB file server belongs to.

*

For more information, see required * permissions for SMB locations.

*/ inline CreateLocationSmbRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *

Specifies the Windows domain name that your SMB file server belongs to.

*

For more information, see required * permissions for SMB locations.

*/ inline CreateLocationSmbRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *

Specifies the Windows domain name that your SMB file server belongs to.

*

For more information, see required * permissions for SMB locations.

*/ inline CreateLocationSmbRequest& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

Specifies the password of the user who can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * more information, see required * permissions for SMB locations.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

Specifies the password of the user who can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * more information, see required * permissions for SMB locations.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

Specifies the password of the user who can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * more information, see required * permissions for SMB locations.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

Specifies the password of the user who can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * more information, see required * permissions for SMB locations.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

Specifies the password of the user who can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * more information, see required * permissions for SMB locations.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

Specifies the password of the user who can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * more information, see required * permissions for SMB locations.

*/ inline CreateLocationSmbRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

Specifies the password of the user who can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * more information, see required * permissions for SMB locations.

*/ inline CreateLocationSmbRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

Specifies the password of the user who can mount your SMB file server and has * permission to access the files and folders involved in your transfer.

For * more information, see required * permissions for SMB locations.

*/ inline CreateLocationSmbRequest& WithPassword(const char* value) { SetPassword(value); return *this;} /** *

Specifies the DataSync agent (or agents) which you want to connect to your * SMB file server. You specify an agent by using its Amazon Resource Name * (ARN).

*/ inline const Aws::Vector& GetAgentArns() const{ return m_agentArns; } /** *

Specifies the DataSync agent (or agents) which you want to connect to your * SMB file server. You specify an agent by using its Amazon Resource Name * (ARN).

*/ inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; } /** *

Specifies the DataSync agent (or agents) which you want to connect to your * SMB file server. You specify an agent by using its Amazon Resource Name * (ARN).

*/ inline void SetAgentArns(const Aws::Vector& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; } /** *

Specifies the DataSync agent (or agents) which you want to connect to your * SMB file server. You specify an agent by using its Amazon Resource Name * (ARN).

*/ inline void SetAgentArns(Aws::Vector&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); } /** *

Specifies the DataSync agent (or agents) which you want to connect to your * SMB file server. You specify an agent by using its Amazon Resource Name * (ARN).

*/ inline CreateLocationSmbRequest& WithAgentArns(const Aws::Vector& value) { SetAgentArns(value); return *this;} /** *

Specifies the DataSync agent (or agents) which you want to connect to your * SMB file server. You specify an agent by using its Amazon Resource Name * (ARN).

*/ inline CreateLocationSmbRequest& WithAgentArns(Aws::Vector&& value) { SetAgentArns(std::move(value)); return *this;} /** *

Specifies the DataSync agent (or agents) which you want to connect to your * SMB file server. You specify an agent by using its Amazon Resource Name * (ARN).

*/ inline CreateLocationSmbRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; } /** *

Specifies the DataSync agent (or agents) which you want to connect to your * SMB file server. You specify an agent by using its Amazon Resource Name * (ARN).

*/ inline CreateLocationSmbRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; } /** *

Specifies the DataSync agent (or agents) which you want to connect to your * SMB file server. You specify an agent by using its Amazon Resource Name * (ARN).

*/ inline CreateLocationSmbRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; } /** *

Specifies the version of the SMB protocol that DataSync uses to access your * SMB file server.

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

Specifies the version of the SMB protocol that DataSync uses to access your * SMB file server.

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

Specifies the version of the SMB protocol that DataSync uses to access your * SMB file server.

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

Specifies the version of the SMB protocol that DataSync uses to access your * SMB file server.

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

Specifies the version of the SMB protocol that DataSync uses to access your * SMB file server.

*/ inline CreateLocationSmbRequest& WithMountOptions(const SmbMountOptions& value) { SetMountOptions(value); return *this;} /** *

Specifies the version of the SMB protocol that DataSync uses to access your * SMB file server.

*/ inline CreateLocationSmbRequest& WithMountOptions(SmbMountOptions&& 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 CreateLocationSmbRequest& 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 CreateLocationSmbRequest& 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 CreateLocationSmbRequest& 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 CreateLocationSmbRequest& 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; Aws::String m_user; bool m_userHasBeenSet = false; Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::Vector m_agentArns; bool m_agentArnsHasBeenSet = false; SmbMountOptions m_mountOptions; bool m_mountOptionsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws