AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateAnalysisRequest.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/AnalysisDefinition.h>
12#include <aws/quicksight/model/AnalysisSourceEntity.h>
13#include <aws/quicksight/model/Parameters.h>
14#include <aws/quicksight/model/ResourcePermission.h>
15#include <aws/quicksight/model/Tag.h>
16#include <aws/quicksight/model/ValidationStrategy.h>
17
18#include <utility>
19
20namespace Aws {
21namespace QuickSight {
22namespace Model {
23
27 public:
28 AWS_QUICKSIGHT_API CreateAnalysisRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAnalysis"; }
35
36 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
37
39
43 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
44 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
45 template <typename AwsAccountIdT = Aws::String>
46 void SetAwsAccountId(AwsAccountIdT&& value) {
47 m_awsAccountIdHasBeenSet = true;
48 m_awsAccountId = std::forward<AwsAccountIdT>(value);
49 }
50 template <typename AwsAccountIdT = Aws::String>
51 CreateAnalysisRequest& WithAwsAccountId(AwsAccountIdT&& value) {
52 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetAnalysisId() const { return m_analysisId; }
63 inline bool AnalysisIdHasBeenSet() const { return m_analysisIdHasBeenSet; }
64 template <typename AnalysisIdT = Aws::String>
65 void SetAnalysisId(AnalysisIdT&& value) {
66 m_analysisIdHasBeenSet = true;
67 m_analysisId = std::forward<AnalysisIdT>(value);
68 }
69 template <typename AnalysisIdT = Aws::String>
70 CreateAnalysisRequest& WithAnalysisId(AnalysisIdT&& value) {
71 SetAnalysisId(std::forward<AnalysisIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
100 inline const Parameters& GetParameters() const { return m_parameters; }
101 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
102 template <typename ParametersT = Parameters>
103 void SetParameters(ParametersT&& value) {
104 m_parametersHasBeenSet = true;
105 m_parameters = std::forward<ParametersT>(value);
106 }
107 template <typename ParametersT = Parameters>
108 CreateAnalysisRequest& WithParameters(ParametersT&& value) {
109 SetParameters(std::forward<ParametersT>(value));
110 return *this;
111 }
113
115
122 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
123 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
124 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
125 void SetPermissions(PermissionsT&& value) {
126 m_permissionsHasBeenSet = true;
127 m_permissions = std::forward<PermissionsT>(value);
128 }
129 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
130 CreateAnalysisRequest& WithPermissions(PermissionsT&& value) {
131 SetPermissions(std::forward<PermissionsT>(value));
132 return *this;
133 }
134 template <typename PermissionsT = ResourcePermission>
135 CreateAnalysisRequest& AddPermissions(PermissionsT&& value) {
136 m_permissionsHasBeenSet = true;
137 m_permissions.emplace_back(std::forward<PermissionsT>(value));
138 return *this;
139 }
141
143
149 inline const AnalysisSourceEntity& GetSourceEntity() const { return m_sourceEntity; }
150 inline bool SourceEntityHasBeenSet() const { return m_sourceEntityHasBeenSet; }
151 template <typename SourceEntityT = AnalysisSourceEntity>
152 void SetSourceEntity(SourceEntityT&& value) {
153 m_sourceEntityHasBeenSet = true;
154 m_sourceEntity = std::forward<SourceEntityT>(value);
155 }
156 template <typename SourceEntityT = AnalysisSourceEntity>
157 CreateAnalysisRequest& WithSourceEntity(SourceEntityT&& value) {
158 SetSourceEntity(std::forward<SourceEntityT>(value));
159 return *this;
160 }
162
164
169 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
170 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
171 template <typename ThemeArnT = Aws::String>
172 void SetThemeArn(ThemeArnT&& value) {
173 m_themeArnHasBeenSet = true;
174 m_themeArn = std::forward<ThemeArnT>(value);
175 }
176 template <typename ThemeArnT = Aws::String>
178 SetThemeArn(std::forward<ThemeArnT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 template <typename TagsT = Aws::Vector<Tag>>
191 void SetTags(TagsT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags = std::forward<TagsT>(value);
194 }
195 template <typename TagsT = Aws::Vector<Tag>>
197 SetTags(std::forward<TagsT>(value));
198 return *this;
199 }
200 template <typename TagsT = Tag>
202 m_tagsHasBeenSet = true;
203 m_tags.emplace_back(std::forward<TagsT>(value));
204 return *this;
205 }
207
209
215 inline const AnalysisDefinition& GetDefinition() const { return m_definition; }
216 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
217 template <typename DefinitionT = AnalysisDefinition>
218 void SetDefinition(DefinitionT&& value) {
219 m_definitionHasBeenSet = true;
220 m_definition = std::forward<DefinitionT>(value);
221 }
222 template <typename DefinitionT = AnalysisDefinition>
223 CreateAnalysisRequest& WithDefinition(DefinitionT&& value) {
224 SetDefinition(std::forward<DefinitionT>(value));
225 return *this;
226 }
228
230
234 inline const ValidationStrategy& GetValidationStrategy() const { return m_validationStrategy; }
235 inline bool ValidationStrategyHasBeenSet() const { return m_validationStrategyHasBeenSet; }
236 template <typename ValidationStrategyT = ValidationStrategy>
237 void SetValidationStrategy(ValidationStrategyT&& value) {
238 m_validationStrategyHasBeenSet = true;
239 m_validationStrategy = std::forward<ValidationStrategyT>(value);
240 }
241 template <typename ValidationStrategyT = ValidationStrategy>
242 CreateAnalysisRequest& WithValidationStrategy(ValidationStrategyT&& value) {
243 SetValidationStrategy(std::forward<ValidationStrategyT>(value));
244 return *this;
245 }
247
249
253 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
254 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
255 template <typename FolderArnsT = Aws::Vector<Aws::String>>
256 void SetFolderArns(FolderArnsT&& value) {
257 m_folderArnsHasBeenSet = true;
258 m_folderArns = std::forward<FolderArnsT>(value);
259 }
260 template <typename FolderArnsT = Aws::Vector<Aws::String>>
261 CreateAnalysisRequest& WithFolderArns(FolderArnsT&& value) {
262 SetFolderArns(std::forward<FolderArnsT>(value));
263 return *this;
264 }
265 template <typename FolderArnsT = Aws::String>
266 CreateAnalysisRequest& AddFolderArns(FolderArnsT&& value) {
267 m_folderArnsHasBeenSet = true;
268 m_folderArns.emplace_back(std::forward<FolderArnsT>(value));
269 return *this;
270 }
272 private:
273 Aws::String m_awsAccountId;
274
275 Aws::String m_analysisId;
276
277 Aws::String m_name;
278
279 Parameters m_parameters;
280
282
283 AnalysisSourceEntity m_sourceEntity;
284
285 Aws::String m_themeArn;
286
287 Aws::Vector<Tag> m_tags;
288
289 AnalysisDefinition m_definition;
290
291 ValidationStrategy m_validationStrategy;
292
293 Aws::Vector<Aws::String> m_folderArns;
294 bool m_awsAccountIdHasBeenSet = false;
295 bool m_analysisIdHasBeenSet = false;
296 bool m_nameHasBeenSet = false;
297 bool m_parametersHasBeenSet = false;
298 bool m_permissionsHasBeenSet = false;
299 bool m_sourceEntityHasBeenSet = false;
300 bool m_themeArnHasBeenSet = false;
301 bool m_tagsHasBeenSet = false;
302 bool m_definitionHasBeenSet = false;
303 bool m_validationStrategyHasBeenSet = false;
304 bool m_folderArnsHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace QuickSight
309} // namespace Aws
CreateAnalysisRequest & WithDefinition(DefinitionT &&value)
CreateAnalysisRequest & WithName(NameT &&value)
CreateAnalysisRequest & WithPermissions(PermissionsT &&value)
AWS_QUICKSIGHT_API CreateAnalysisRequest()=default
CreateAnalysisRequest & WithFolderArns(FolderArnsT &&value)
CreateAnalysisRequest & WithValidationStrategy(ValidationStrategyT &&value)
const Aws::Vector< ResourcePermission > & GetPermissions() const
const Aws::Vector< Aws::String > & GetFolderArns() const
CreateAnalysisRequest & WithParameters(ParametersT &&value)
virtual const char * GetServiceRequestName() const override
CreateAnalysisRequest & WithAwsAccountId(AwsAccountIdT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
void SetValidationStrategy(ValidationStrategyT &&value)
CreateAnalysisRequest & AddTags(TagsT &&value)
CreateAnalysisRequest & WithSourceEntity(SourceEntityT &&value)
CreateAnalysisRequest & WithTags(TagsT &&value)
CreateAnalysisRequest & AddPermissions(PermissionsT &&value)
CreateAnalysisRequest & WithAnalysisId(AnalysisIdT &&value)
const AnalysisDefinition & GetDefinition() const
CreateAnalysisRequest & WithThemeArn(ThemeArnT &&value)
const ValidationStrategy & GetValidationStrategy() const
const AnalysisSourceEntity & GetSourceEntity() const
CreateAnalysisRequest & AddFolderArns(FolderArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector