AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFolderRequest.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/quicksight/model/FolderType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/quicksight/model/SharingModel.h>
13#include <aws/quicksight/model/ResourcePermission.h>
14#include <aws/quicksight/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace QuickSight
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_QUICKSIGHT_API CreateFolderRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateFolder"; }
36
37 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
46 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
47 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
48 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
49 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
50 inline CreateFolderRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
51 inline CreateFolderRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
52 inline CreateFolderRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
54
56
59 inline const Aws::String& GetFolderId() const{ return m_folderId; }
60 inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; }
61 inline void SetFolderId(const Aws::String& value) { m_folderIdHasBeenSet = true; m_folderId = value; }
62 inline void SetFolderId(Aws::String&& value) { m_folderIdHasBeenSet = true; m_folderId = std::move(value); }
63 inline void SetFolderId(const char* value) { m_folderIdHasBeenSet = true; m_folderId.assign(value); }
64 inline CreateFolderRequest& WithFolderId(const Aws::String& value) { SetFolderId(value); return *this;}
65 inline CreateFolderRequest& WithFolderId(Aws::String&& value) { SetFolderId(std::move(value)); return *this;}
66 inline CreateFolderRequest& WithFolderId(const char* value) { SetFolderId(value); return *this;}
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline CreateFolderRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline CreateFolderRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline CreateFolderRequest& WithName(const char* value) { SetName(value); return *this;}
82
84
88 inline const FolderType& GetFolderType() const{ return m_folderType; }
89 inline bool FolderTypeHasBeenSet() const { return m_folderTypeHasBeenSet; }
90 inline void SetFolderType(const FolderType& value) { m_folderTypeHasBeenSet = true; m_folderType = value; }
91 inline void SetFolderType(FolderType&& value) { m_folderTypeHasBeenSet = true; m_folderType = std::move(value); }
92 inline CreateFolderRequest& WithFolderType(const FolderType& value) { SetFolderType(value); return *this;}
93 inline CreateFolderRequest& WithFolderType(FolderType&& value) { SetFolderType(std::move(value)); return *this;}
95
97
102 inline const Aws::String& GetParentFolderArn() const{ return m_parentFolderArn; }
103 inline bool ParentFolderArnHasBeenSet() const { return m_parentFolderArnHasBeenSet; }
104 inline void SetParentFolderArn(const Aws::String& value) { m_parentFolderArnHasBeenSet = true; m_parentFolderArn = value; }
105 inline void SetParentFolderArn(Aws::String&& value) { m_parentFolderArnHasBeenSet = true; m_parentFolderArn = std::move(value); }
106 inline void SetParentFolderArn(const char* value) { m_parentFolderArnHasBeenSet = true; m_parentFolderArn.assign(value); }
107 inline CreateFolderRequest& WithParentFolderArn(const Aws::String& value) { SetParentFolderArn(value); return *this;}
108 inline CreateFolderRequest& WithParentFolderArn(Aws::String&& value) { SetParentFolderArn(std::move(value)); return *this;}
109 inline CreateFolderRequest& WithParentFolderArn(const char* value) { SetParentFolderArn(value); return *this;}
111
113
118 inline const Aws::Vector<ResourcePermission>& GetPermissions() const{ return m_permissions; }
119 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
120 inline void SetPermissions(const Aws::Vector<ResourcePermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
121 inline void SetPermissions(Aws::Vector<ResourcePermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
123 inline CreateFolderRequest& WithPermissions(Aws::Vector<ResourcePermission>&& value) { SetPermissions(std::move(value)); return *this;}
124 inline CreateFolderRequest& AddPermissions(const ResourcePermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
125 inline CreateFolderRequest& AddPermissions(ResourcePermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
127
129
132 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
135 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
136 inline CreateFolderRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
137 inline CreateFolderRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
138 inline CreateFolderRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
139 inline CreateFolderRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
141
143
147 inline const SharingModel& GetSharingModel() const{ return m_sharingModel; }
148 inline bool SharingModelHasBeenSet() const { return m_sharingModelHasBeenSet; }
149 inline void SetSharingModel(const SharingModel& value) { m_sharingModelHasBeenSet = true; m_sharingModel = value; }
150 inline void SetSharingModel(SharingModel&& value) { m_sharingModelHasBeenSet = true; m_sharingModel = std::move(value); }
151 inline CreateFolderRequest& WithSharingModel(const SharingModel& value) { SetSharingModel(value); return *this;}
152 inline CreateFolderRequest& WithSharingModel(SharingModel&& value) { SetSharingModel(std::move(value)); return *this;}
154 private:
155
156 Aws::String m_awsAccountId;
157 bool m_awsAccountIdHasBeenSet = false;
158
159 Aws::String m_folderId;
160 bool m_folderIdHasBeenSet = false;
161
162 Aws::String m_name;
163 bool m_nameHasBeenSet = false;
164
165 FolderType m_folderType;
166 bool m_folderTypeHasBeenSet = false;
167
168 Aws::String m_parentFolderArn;
169 bool m_parentFolderArnHasBeenSet = false;
170
172 bool m_permissionsHasBeenSet = false;
173
174 Aws::Vector<Tag> m_tags;
175 bool m_tagsHasBeenSet = false;
176
177 SharingModel m_sharingModel;
178 bool m_sharingModelHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace QuickSight
183} // namespace Aws
CreateFolderRequest & WithSharingModel(SharingModel &&value)
CreateFolderRequest & WithParentFolderArn(const Aws::String &value)
CreateFolderRequest & WithFolderId(const Aws::String &value)
CreateFolderRequest & WithFolderId(Aws::String &&value)
void SetPermissions(Aws::Vector< ResourcePermission > &&value)
CreateFolderRequest & AddPermissions(ResourcePermission &&value)
CreateFolderRequest & WithTags(const Aws::Vector< Tag > &value)
CreateFolderRequest & AddTags(Tag &&value)
CreateFolderRequest & WithName(Aws::String &&value)
CreateFolderRequest & WithTags(Aws::Vector< Tag > &&value)
CreateFolderRequest & WithSharingModel(const SharingModel &value)
CreateFolderRequest & WithAwsAccountId(const char *value)
CreateFolderRequest & WithAwsAccountId(const Aws::String &value)
CreateFolderRequest & WithPermissions(const Aws::Vector< ResourcePermission > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateFolderRequest & WithPermissions(Aws::Vector< ResourcePermission > &&value)
void SetAwsAccountId(const Aws::String &value)
CreateFolderRequest & WithFolderType(const FolderType &value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateFolderRequest & WithName(const Aws::String &value)
CreateFolderRequest & WithName(const char *value)
void SetSharingModel(const SharingModel &value)
virtual const char * GetServiceRequestName() const override
CreateFolderRequest & WithFolderId(const char *value)
CreateFolderRequest & AddPermissions(const ResourcePermission &value)
CreateFolderRequest & WithAwsAccountId(Aws::String &&value)
const Aws::Vector< ResourcePermission > & GetPermissions() const
void SetParentFolderArn(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetPermissions(const Aws::Vector< ResourcePermission > &value)
CreateFolderRequest & WithFolderType(FolderType &&value)
CreateFolderRequest & AddTags(const Tag &value)
CreateFolderRequest & WithParentFolderArn(Aws::String &&value)
CreateFolderRequest & WithParentFolderArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector