/** * 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 QuickSight { namespace Model { /** */ class CreateFolderRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API CreateFolderRequest(); // 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 "CreateFolder"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; /** *

The ID for the Amazon Web Services account where you want to create the * folder.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The ID for the Amazon Web Services account where you want to create the * folder.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The ID for the Amazon Web Services account where you want to create the * folder.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

The ID for the Amazon Web Services account where you want to create the * folder.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

The ID for the Amazon Web Services account where you want to create the * folder.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

The ID for the Amazon Web Services account where you want to create the * folder.

*/ inline CreateFolderRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The ID for the Amazon Web Services account where you want to create the * folder.

*/ inline CreateFolderRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The ID for the Amazon Web Services account where you want to create the * folder.

*/ inline CreateFolderRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *

The ID of the folder.

*/ inline const Aws::String& GetFolderId() const{ return m_folderId; } /** *

The ID of the folder.

*/ inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; } /** *

The ID of the folder.

*/ inline void SetFolderId(const Aws::String& value) { m_folderIdHasBeenSet = true; m_folderId = value; } /** *

The ID of the folder.

*/ inline void SetFolderId(Aws::String&& value) { m_folderIdHasBeenSet = true; m_folderId = std::move(value); } /** *

The ID of the folder.

*/ inline void SetFolderId(const char* value) { m_folderIdHasBeenSet = true; m_folderId.assign(value); } /** *

The ID of the folder.

*/ inline CreateFolderRequest& WithFolderId(const Aws::String& value) { SetFolderId(value); return *this;} /** *

The ID of the folder.

*/ inline CreateFolderRequest& WithFolderId(Aws::String&& value) { SetFolderId(std::move(value)); return *this;} /** *

The ID of the folder.

*/ inline CreateFolderRequest& WithFolderId(const char* value) { SetFolderId(value); return *this;} /** *

The name of the folder.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the folder.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the folder.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the folder.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the folder.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the folder.

*/ inline CreateFolderRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the folder.

*/ inline CreateFolderRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the folder.

*/ inline CreateFolderRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The type of folder. By default, folderType is * SHARED.

*/ inline const FolderType& GetFolderType() const{ return m_folderType; } /** *

The type of folder. By default, folderType is * SHARED.

*/ inline bool FolderTypeHasBeenSet() const { return m_folderTypeHasBeenSet; } /** *

The type of folder. By default, folderType is * SHARED.

*/ inline void SetFolderType(const FolderType& value) { m_folderTypeHasBeenSet = true; m_folderType = value; } /** *

The type of folder. By default, folderType is * SHARED.

*/ inline void SetFolderType(FolderType&& value) { m_folderTypeHasBeenSet = true; m_folderType = std::move(value); } /** *

The type of folder. By default, folderType is * SHARED.

*/ inline CreateFolderRequest& WithFolderType(const FolderType& value) { SetFolderType(value); return *this;} /** *

The type of folder. By default, folderType is * SHARED.

*/ inline CreateFolderRequest& WithFolderType(FolderType&& value) { SetFolderType(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the parent folder.

* ParentFolderArn can be null. An empty parentFolderArn * creates a root-level folder.

*/ inline const Aws::String& GetParentFolderArn() const{ return m_parentFolderArn; } /** *

The Amazon Resource Name (ARN) for the parent folder.

* ParentFolderArn can be null. An empty parentFolderArn * creates a root-level folder.

*/ inline bool ParentFolderArnHasBeenSet() const { return m_parentFolderArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the parent folder.

* ParentFolderArn can be null. An empty parentFolderArn * creates a root-level folder.

*/ inline void SetParentFolderArn(const Aws::String& value) { m_parentFolderArnHasBeenSet = true; m_parentFolderArn = value; } /** *

The Amazon Resource Name (ARN) for the parent folder.

* ParentFolderArn can be null. An empty parentFolderArn * creates a root-level folder.

*/ inline void SetParentFolderArn(Aws::String&& value) { m_parentFolderArnHasBeenSet = true; m_parentFolderArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the parent folder.

* ParentFolderArn can be null. An empty parentFolderArn * creates a root-level folder.

*/ inline void SetParentFolderArn(const char* value) { m_parentFolderArnHasBeenSet = true; m_parentFolderArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the parent folder.

* ParentFolderArn can be null. An empty parentFolderArn * creates a root-level folder.

*/ inline CreateFolderRequest& WithParentFolderArn(const Aws::String& value) { SetParentFolderArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the parent folder.

* ParentFolderArn can be null. An empty parentFolderArn * creates a root-level folder.

*/ inline CreateFolderRequest& WithParentFolderArn(Aws::String&& value) { SetParentFolderArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the parent folder.

* ParentFolderArn can be null. An empty parentFolderArn * creates a root-level folder.

*/ inline CreateFolderRequest& WithParentFolderArn(const char* value) { SetParentFolderArn(value); return *this;} /** *

A structure that describes the principals and the resource-level permissions * of a folder.

To specify no permissions, omit * Permissions.

*/ inline const Aws::Vector& GetPermissions() const{ return m_permissions; } /** *

A structure that describes the principals and the resource-level permissions * of a folder.

To specify no permissions, omit * Permissions.

*/ inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } /** *

A structure that describes the principals and the resource-level permissions * of a folder.

To specify no permissions, omit * Permissions.

*/ inline void SetPermissions(const Aws::Vector& value) { m_permissionsHasBeenSet = true; m_permissions = value; } /** *

A structure that describes the principals and the resource-level permissions * of a folder.

To specify no permissions, omit * Permissions.

*/ inline void SetPermissions(Aws::Vector&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); } /** *

A structure that describes the principals and the resource-level permissions * of a folder.

To specify no permissions, omit * Permissions.

*/ inline CreateFolderRequest& WithPermissions(const Aws::Vector& value) { SetPermissions(value); return *this;} /** *

A structure that describes the principals and the resource-level permissions * of a folder.

To specify no permissions, omit * Permissions.

*/ inline CreateFolderRequest& WithPermissions(Aws::Vector&& value) { SetPermissions(std::move(value)); return *this;} /** *

A structure that describes the principals and the resource-level permissions * of a folder.

To specify no permissions, omit * Permissions.

*/ inline CreateFolderRequest& AddPermissions(const ResourcePermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; } /** *

A structure that describes the principals and the resource-level permissions * of a folder.

To specify no permissions, omit * Permissions.

*/ inline CreateFolderRequest& AddPermissions(ResourcePermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; } /** *

Tags for the folder.

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

Tags for the folder.

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

Tags for the folder.

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

Tags for the folder.

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

Tags for the folder.

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

Tags for the folder.

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

Tags for the folder.

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

Tags for the folder.

*/ inline CreateFolderRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_folderId; bool m_folderIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; FolderType m_folderType; bool m_folderTypeHasBeenSet = false; Aws::String m_parentFolderArn; bool m_parentFolderArnHasBeenSet = false; Aws::Vector m_permissions; bool m_permissionsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws