/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DataSync { namespace Model { /** */ class CreateLocationFsxWindowsRequest : public DataSyncRequest { public: AWS_DATASYNC_API CreateLocationFsxWindowsRequest(); // 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 "CreateLocationFsxWindows"; } AWS_DATASYNC_API Aws::String SerializePayload() const override; AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies a mount path for your file system using forward slashes. This is * where DataSync reads or writes data (depending on if this is a source or * destination location).

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

Specifies a mount path for your file system using forward slashes. This is * where DataSync reads or writes data (depending on if this is a source or * destination location).

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

Specifies a mount path for your file system using forward slashes. This is * where DataSync reads or writes data (depending on if this is a source or * destination location).

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

Specifies a mount path for your file system using forward slashes. This is * where DataSync reads or writes data (depending on if this is a source or * destination location).

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

Specifies a mount path for your file system using forward slashes. This is * where DataSync reads or writes data (depending on if this is a source or * destination location).

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

Specifies a mount path for your file system using forward slashes. This is * where DataSync reads or writes data (depending on if this is a source or * destination location).

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

Specifies a mount path for your file system using forward slashes. This is * where DataSync reads or writes data (depending on if this is a source or * destination location).

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

Specifies a mount path for your file system using forward slashes. This is * where DataSync reads or writes data (depending on if this is a source or * destination location).

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

Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server * file system.

*/ inline const Aws::String& GetFsxFilesystemArn() const{ return m_fsxFilesystemArn; } /** *

Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server * file system.

*/ inline bool FsxFilesystemArnHasBeenSet() const { return m_fsxFilesystemArnHasBeenSet; } /** *

Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server * file system.

*/ inline void SetFsxFilesystemArn(const Aws::String& value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn = value; } /** *

Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server * file system.

*/ inline void SetFsxFilesystemArn(Aws::String&& value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn = std::move(value); } /** *

Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server * file system.

*/ inline void SetFsxFilesystemArn(const char* value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn.assign(value); } /** *

Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server * file system.

*/ inline CreateLocationFsxWindowsRequest& WithFsxFilesystemArn(const Aws::String& value) { SetFsxFilesystemArn(value); return *this;} /** *

Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server * file system.

*/ inline CreateLocationFsxWindowsRequest& WithFsxFilesystemArn(Aws::String&& value) { SetFsxFilesystemArn(std::move(value)); return *this;} /** *

Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server * file system.

*/ inline CreateLocationFsxWindowsRequest& WithFsxFilesystemArn(const char* value) { SetFsxFilesystemArn(value); return *this;} /** *

Specifies the ARNs of the security groups that provide access to your file * system's preferred subnet.

If you choose a security group that * doesn't allow connections from within itself, do one of the following:

    *
  • Configure the security group to allow it to communicate within * itself.

  • Choose a different security group that can communicate * with the mount target's security group.

*/ inline const Aws::Vector& GetSecurityGroupArns() const{ return m_securityGroupArns; } /** *

Specifies the ARNs of the security groups that provide access to your file * system's preferred subnet.

If you choose a security group that * doesn't allow connections from within itself, do one of the following:

    *
  • Configure the security group to allow it to communicate within * itself.

  • Choose a different security group that can communicate * with the mount target's security group.

*/ inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; } /** *

Specifies the ARNs of the security groups that provide access to your file * system's preferred subnet.

If you choose a security group that * doesn't allow connections from within itself, do one of the following:

    *
  • Configure the security group to allow it to communicate within * itself.

  • Choose a different security group that can communicate * with the mount target's security group.

*/ inline void SetSecurityGroupArns(const Aws::Vector& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; } /** *

Specifies the ARNs of the security groups that provide access to your file * system's preferred subnet.

If you choose a security group that * doesn't allow connections from within itself, do one of the following:

    *
  • Configure the security group to allow it to communicate within * itself.

  • Choose a different security group that can communicate * with the mount target's security group.

*/ inline void SetSecurityGroupArns(Aws::Vector&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); } /** *

Specifies the ARNs of the security groups that provide access to your file * system's preferred subnet.

If you choose a security group that * doesn't allow connections from within itself, do one of the following:

    *
  • Configure the security group to allow it to communicate within * itself.

  • Choose a different security group that can communicate * with the mount target's security group.

*/ inline CreateLocationFsxWindowsRequest& WithSecurityGroupArns(const Aws::Vector& value) { SetSecurityGroupArns(value); return *this;} /** *

Specifies the ARNs of the security groups that provide access to your file * system's preferred subnet.

If you choose a security group that * doesn't allow connections from within itself, do one of the following:

    *
  • Configure the security group to allow it to communicate within * itself.

  • Choose a different security group that can communicate * with the mount target's security group.

*/ inline CreateLocationFsxWindowsRequest& WithSecurityGroupArns(Aws::Vector&& value) { SetSecurityGroupArns(std::move(value)); return *this;} /** *

Specifies the ARNs of the security groups that provide access to your file * system's preferred subnet.

If you choose a security group that * doesn't allow connections from within itself, do one of the following:

    *
  • Configure the security group to allow it to communicate within * itself.

  • Choose a different security group that can communicate * with the mount target's security group.

*/ inline CreateLocationFsxWindowsRequest& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; } /** *

Specifies the ARNs of the security groups that provide access to your file * system's preferred subnet.

If you choose a security group that * doesn't allow connections from within itself, do one of the following:

    *
  • Configure the security group to allow it to communicate within * itself.

  • Choose a different security group that can communicate * with the mount target's security group.

*/ inline CreateLocationFsxWindowsRequest& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; } /** *

Specifies the ARNs of the security groups that provide access to your file * system's preferred subnet.

If you choose a security group that * doesn't allow connections from within itself, do one of the following:

    *
  • Configure the security group to allow it to communicate within * itself.

  • Choose a different security group that can communicate * with the mount target's security group.

*/ inline CreateLocationFsxWindowsRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.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 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 CreateLocationFsxWindowsRequest& 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 CreateLocationFsxWindowsRequest& 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 CreateLocationFsxWindowsRequest& 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 CreateLocationFsxWindowsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Specifies the user who has the permissions to access files, folders, and * metadata in your file system.

For information about choosing a user with * sufficient permissions, see Required * permissions.

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

Specifies the user who has the permissions to access files, folders, and * metadata in your file system.

For information about choosing a user with * sufficient permissions, see Required * permissions.

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

Specifies the user who has the permissions to access files, folders, and * metadata in your file system.

For information about choosing a user with * sufficient permissions, see Required * permissions.

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

Specifies the user who has the permissions to access files, folders, and * metadata in your file system.

For information about choosing a user with * sufficient permissions, see Required * permissions.

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

Specifies the user who has the permissions to access files, folders, and * metadata in your file system.

For information about choosing a user with * sufficient permissions, see Required * permissions.

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

Specifies the user who has the permissions to access files, folders, and * metadata in your file system.

For information about choosing a user with * sufficient permissions, see Required * permissions.

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

Specifies the user who has the permissions to access files, folders, and * metadata in your file system.

For information about choosing a user with * sufficient permissions, see Required * permissions.

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

Specifies the user who has the permissions to access files, folders, and * metadata in your file system.

For information about choosing a user with * sufficient permissions, see Required * permissions.

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

Specifies the name of the Windows domain that the FSx for Windows File Server * belongs to.

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

Specifies the name of the Windows domain that the FSx for Windows File Server * belongs to.

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

Specifies the name of the Windows domain that the FSx for Windows File Server * belongs to.

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

Specifies the name of the Windows domain that the FSx for Windows File Server * belongs to.

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

Specifies the name of the Windows domain that the FSx for Windows File Server * belongs to.

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

Specifies the name of the Windows domain that the FSx for Windows File Server * belongs to.

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

Specifies the name of the Windows domain that the FSx for Windows File Server * belongs to.

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

Specifies the name of the Windows domain that the FSx for Windows File Server * belongs to.

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

Specifies the password of the user who has the permissions to access files * and folders in the file system.

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

Specifies the password of the user who has the permissions to access files * and folders in the file system.

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

Specifies the password of the user who has the permissions to access files * and folders in the file system.

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

Specifies the password of the user who has the permissions to access files * and folders in the file system.

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

Specifies the password of the user who has the permissions to access files * and folders in the file system.

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

Specifies the password of the user who has the permissions to access files * and folders in the file system.

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

Specifies the password of the user who has the permissions to access files * and folders in the file system.

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

Specifies the password of the user who has the permissions to access files * and folders in the file system.

*/ inline CreateLocationFsxWindowsRequest& WithPassword(const char* value) { SetPassword(value); return *this;} private: Aws::String m_subdirectory; bool m_subdirectoryHasBeenSet = false; Aws::String m_fsxFilesystemArn; bool m_fsxFilesystemArnHasBeenSet = false; Aws::Vector m_securityGroupArns; bool m_securityGroupArnsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = 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; }; } // namespace Model } // namespace DataSync } // namespace Aws