AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateFolderRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/FolderType.h>
12#include <aws/quicksight/model/ResourcePermission.h>
13#include <aws/quicksight/model/SharingModel.h>
14#include <aws/quicksight/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace QuickSight {
20namespace Model {
21
25 public:
26 AWS_QUICKSIGHT_API CreateFolderRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateFolder"; }
33
34 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
42 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
43 template <typename AwsAccountIdT = Aws::String>
44 void SetAwsAccountId(AwsAccountIdT&& value) {
45 m_awsAccountIdHasBeenSet = true;
46 m_awsAccountId = std::forward<AwsAccountIdT>(value);
47 }
48 template <typename AwsAccountIdT = Aws::String>
49 CreateFolderRequest& WithAwsAccountId(AwsAccountIdT&& value) {
50 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFolderId() const { return m_folderId; }
60 inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; }
61 template <typename FolderIdT = Aws::String>
62 void SetFolderId(FolderIdT&& value) {
63 m_folderIdHasBeenSet = true;
64 m_folderId = std::forward<FolderIdT>(value);
65 }
66 template <typename FolderIdT = Aws::String>
67 CreateFolderRequest& WithFolderId(FolderIdT&& value) {
68 SetFolderId(std::forward<FolderIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 CreateFolderRequest& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
96 inline FolderType GetFolderType() const { return m_folderType; }
97 inline bool FolderTypeHasBeenSet() const { return m_folderTypeHasBeenSet; }
98 inline void SetFolderType(FolderType value) {
99 m_folderTypeHasBeenSet = true;
100 m_folderType = value;
101 }
103 SetFolderType(value);
104 return *this;
105 }
107
109
114 inline const Aws::String& GetParentFolderArn() const { return m_parentFolderArn; }
115 inline bool ParentFolderArnHasBeenSet() const { return m_parentFolderArnHasBeenSet; }
116 template <typename ParentFolderArnT = Aws::String>
117 void SetParentFolderArn(ParentFolderArnT&& value) {
118 m_parentFolderArnHasBeenSet = true;
119 m_parentFolderArn = std::forward<ParentFolderArnT>(value);
120 }
121 template <typename ParentFolderArnT = Aws::String>
122 CreateFolderRequest& WithParentFolderArn(ParentFolderArnT&& value) {
123 SetParentFolderArn(std::forward<ParentFolderArnT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
135 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
136 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
137 void SetPermissions(PermissionsT&& value) {
138 m_permissionsHasBeenSet = true;
139 m_permissions = std::forward<PermissionsT>(value);
140 }
141 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
142 CreateFolderRequest& WithPermissions(PermissionsT&& value) {
143 SetPermissions(std::forward<PermissionsT>(value));
144 return *this;
145 }
146 template <typename PermissionsT = ResourcePermission>
147 CreateFolderRequest& AddPermissions(PermissionsT&& value) {
148 m_permissionsHasBeenSet = true;
149 m_permissions.emplace_back(std::forward<PermissionsT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template <typename TagsT = Aws::Vector<Tag>>
161 void SetTags(TagsT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags = std::forward<TagsT>(value);
164 }
165 template <typename TagsT = Aws::Vector<Tag>>
167 SetTags(std::forward<TagsT>(value));
168 return *this;
169 }
170 template <typename TagsT = Tag>
171 CreateFolderRequest& AddTags(TagsT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags.emplace_back(std::forward<TagsT>(value));
174 return *this;
175 }
177
179
183 inline SharingModel GetSharingModel() const { return m_sharingModel; }
184 inline bool SharingModelHasBeenSet() const { return m_sharingModelHasBeenSet; }
185 inline void SetSharingModel(SharingModel value) {
186 m_sharingModelHasBeenSet = true;
187 m_sharingModel = value;
188 }
190 SetSharingModel(value);
191 return *this;
192 }
194 private:
195 Aws::String m_awsAccountId;
196
197 Aws::String m_folderId;
198
199 Aws::String m_name;
200
201 FolderType m_folderType{FolderType::NOT_SET};
202
203 Aws::String m_parentFolderArn;
204
206
207 Aws::Vector<Tag> m_tags;
208
209 SharingModel m_sharingModel{SharingModel::NOT_SET};
210 bool m_awsAccountIdHasBeenSet = false;
211 bool m_folderIdHasBeenSet = false;
212 bool m_nameHasBeenSet = false;
213 bool m_folderTypeHasBeenSet = false;
214 bool m_parentFolderArnHasBeenSet = false;
215 bool m_permissionsHasBeenSet = false;
216 bool m_tagsHasBeenSet = false;
217 bool m_sharingModelHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace QuickSight
222} // namespace Aws
CreateFolderRequest & AddPermissions(PermissionsT &&value)
CreateFolderRequest & WithFolderId(FolderIdT &&value)
void SetParentFolderArn(ParentFolderArnT &&value)
CreateFolderRequest & WithTags(TagsT &&value)
AWS_QUICKSIGHT_API CreateFolderRequest()=default
CreateFolderRequest & WithSharingModel(SharingModel value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateFolderRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateFolderRequest & WithFolderType(FolderType value)
CreateFolderRequest & WithName(NameT &&value)
CreateFolderRequest & WithAwsAccountId(AwsAccountIdT &&value)
CreateFolderRequest & WithPermissions(PermissionsT &&value)
CreateFolderRequest & WithParentFolderArn(ParentFolderArnT &&value)
const Aws::Vector< ResourcePermission > & GetPermissions() const
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector