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

The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.

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

The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.

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

The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.

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

The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.

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

The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.

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

The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.

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

The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.

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

The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.

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

The type of protocol that DataSync uses to access your file system.

*/ inline const FsxProtocol& GetProtocol() const{ return m_protocol; } /** *

The type of protocol that DataSync uses to access your file system.

*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *

The type of protocol that DataSync uses to access your file system.

*/ inline void SetProtocol(const FsxProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *

The type of protocol that DataSync uses to access your file system.

*/ inline void SetProtocol(FsxProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *

The type of protocol that DataSync uses to access your file system.

*/ inline CreateLocationFsxOpenZfsRequest& WithProtocol(const FsxProtocol& value) { SetProtocol(value); return *this;} /** *

The type of protocol that DataSync uses to access your file system.

*/ inline CreateLocationFsxOpenZfsRequest& WithProtocol(FsxProtocol&& value) { SetProtocol(std::move(value)); return *this;} /** *

The ARNs of the security groups that are used to configure the FSx for * OpenZFS file system.

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

The ARNs of the security groups that are used to configure the FSx for * OpenZFS file system.

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

The ARNs of the security groups that are used to configure the FSx for * OpenZFS file system.

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

The ARNs of the security groups that are used to configure the FSx for * OpenZFS file system.

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

The ARNs of the security groups that are used to configure the FSx for * OpenZFS file system.

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

The ARNs of the security groups that are used to configure the FSx for * OpenZFS file system.

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

The ARNs of the security groups that are used to configure the FSx for * OpenZFS file system.

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

The ARNs of the security groups that are used to configure the FSx for * OpenZFS file system.

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

The ARNs of the security groups that are used to configure the FSx for * OpenZFS file system.

*/ inline CreateLocationFsxOpenZfsRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; } /** *

A subdirectory in the location's path that must begin with /fsx. * DataSync uses this subdirectory to read or write data (depending on whether the * file system is a source or destination location).

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

A subdirectory in the location's path that must begin with /fsx. * DataSync uses this subdirectory to read or write data (depending on whether the * file system is a source or destination location).

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

A subdirectory in the location's path that must begin with /fsx. * DataSync uses this subdirectory to read or write data (depending on whether the * file system is a source or destination location).

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

A subdirectory in the location's path that must begin with /fsx. * DataSync uses this subdirectory to read or write data (depending on whether the * file system is a source or destination location).

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

A subdirectory in the location's path that must begin with /fsx. * DataSync uses this subdirectory to read or write data (depending on whether the * file system is a source or destination location).

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

A subdirectory in the location's path that must begin with /fsx. * DataSync uses this subdirectory to read or write data (depending on whether the * file system is a source or destination location).

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

A subdirectory in the location's path that must begin with /fsx. * DataSync uses this subdirectory to read or write data (depending on whether the * file system is a source or destination location).

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

A subdirectory in the location's path that must begin with /fsx. * DataSync uses this subdirectory to read or write data (depending on whether the * file system is a source or destination location).

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

The key-value pair that represents a tag that you want to add to the * resource. The value can be an empty string. This value helps you manage, filter, * and search for your resources. We recommend that you create a name tag for your * location.

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

The key-value pair that represents a tag that you want to add to the * resource. The value can be an empty string. This value helps you manage, filter, * and search for your resources. We recommend that you create a name tag for your * location.

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

The key-value pair that represents a tag that you want to add to the * resource. The value can be an empty string. This value helps you manage, filter, * and search for your resources. We recommend that you create a name tag for your * location.

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

The key-value pair that represents a tag that you want to add to the * resource. The value can be an empty string. This value helps you manage, filter, * and search for your resources. We recommend that you create a name tag for your * location.

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

The key-value pair that represents a tag that you want to add to the * resource. The value can be an empty string. This value helps you manage, filter, * and search for your resources. We recommend that you create a name tag for your * location.

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

The key-value pair that represents a tag that you want to add to the * resource. The value can be an empty string. This value helps you manage, filter, * and search for your resources. We recommend that you create a name tag for your * location.

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

The key-value pair that represents a tag that you want to add to the * resource. The value can be an empty string. This value helps you manage, filter, * and search for your resources. We recommend that you create a name tag for your * location.

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

The key-value pair that represents a tag that you want to add to the * resource. The value can be an empty string. This value helps you manage, filter, * and search for your resources. We recommend that you create a name tag for your * location.

*/ inline CreateLocationFsxOpenZfsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_fsxFilesystemArn; bool m_fsxFilesystemArnHasBeenSet = false; FsxProtocol m_protocol; bool m_protocolHasBeenSet = false; Aws::Vector m_securityGroupArns; bool m_securityGroupArnsHasBeenSet = false; Aws::String m_subdirectory; bool m_subdirectoryHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws