AWS SDK for C++

AWS SDK for C++ Version 1.11.860

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
150 inline const AnalysisSourceEntity& GetSourceEntity() const { return m_sourceEntity; }
151 inline bool SourceEntityHasBeenSet() const { return m_sourceEntityHasBeenSet; }
152 template <typename SourceEntityT = AnalysisSourceEntity>
153 void SetSourceEntity(SourceEntityT&& value) {
154 m_sourceEntityHasBeenSet = true;
155 m_sourceEntity = std::forward<SourceEntityT>(value);
156 }
157 template <typename SourceEntityT = AnalysisSourceEntity>
158 CreateAnalysisRequest& WithSourceEntity(SourceEntityT&& value) {
159 SetSourceEntity(std::forward<SourceEntityT>(value));
160 return *this;
161 }
163
165
170 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
171 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
172 template <typename ThemeArnT = Aws::String>
173 void SetThemeArn(ThemeArnT&& value) {
174 m_themeArnHasBeenSet = true;
175 m_themeArn = std::forward<ThemeArnT>(value);
176 }
177 template <typename ThemeArnT = Aws::String>
179 SetThemeArn(std::forward<ThemeArnT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 template <typename TagsT = Aws::Vector<Tag>>
192 void SetTags(TagsT&& value) {
193 m_tagsHasBeenSet = true;
194 m_tags = std::forward<TagsT>(value);
195 }
196 template <typename TagsT = Aws::Vector<Tag>>
198 SetTags(std::forward<TagsT>(value));
199 return *this;
200 }
201 template <typename TagsT = Tag>
203 m_tagsHasBeenSet = true;
204 m_tags.emplace_back(std::forward<TagsT>(value));
205 return *this;
206 }
208
210
216 inline const AnalysisDefinition& GetDefinition() const { return m_definition; }
217 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
218 template <typename DefinitionT = AnalysisDefinition>
219 void SetDefinition(DefinitionT&& value) {
220 m_definitionHasBeenSet = true;
221 m_definition = std::forward<DefinitionT>(value);
222 }
223 template <typename DefinitionT = AnalysisDefinition>
224 CreateAnalysisRequest& WithDefinition(DefinitionT&& value) {
225 SetDefinition(std::forward<DefinitionT>(value));
226 return *this;
227 }
229
231
235 inline const ValidationStrategy& GetValidationStrategy() const { return m_validationStrategy; }
236 inline bool ValidationStrategyHasBeenSet() const { return m_validationStrategyHasBeenSet; }
237 template <typename ValidationStrategyT = ValidationStrategy>
238 void SetValidationStrategy(ValidationStrategyT&& value) {
239 m_validationStrategyHasBeenSet = true;
240 m_validationStrategy = std::forward<ValidationStrategyT>(value);
241 }
242 template <typename ValidationStrategyT = ValidationStrategy>
243 CreateAnalysisRequest& WithValidationStrategy(ValidationStrategyT&& value) {
244 SetValidationStrategy(std::forward<ValidationStrategyT>(value));
245 return *this;
246 }
248
250
254 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
255 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
256 template <typename FolderArnsT = Aws::Vector<Aws::String>>
257 void SetFolderArns(FolderArnsT&& value) {
258 m_folderArnsHasBeenSet = true;
259 m_folderArns = std::forward<FolderArnsT>(value);
260 }
261 template <typename FolderArnsT = Aws::Vector<Aws::String>>
262 CreateAnalysisRequest& WithFolderArns(FolderArnsT&& value) {
263 SetFolderArns(std::forward<FolderArnsT>(value));
264 return *this;
265 }
266 template <typename FolderArnsT = Aws::String>
267 CreateAnalysisRequest& AddFolderArns(FolderArnsT&& value) {
268 m_folderArnsHasBeenSet = true;
269 m_folderArns.emplace_back(std::forward<FolderArnsT>(value));
270 return *this;
271 }
273 private:
274 Aws::String m_awsAccountId;
275
276 Aws::String m_analysisId;
277
278 Aws::String m_name;
279
280 Parameters m_parameters;
281
283
284 AnalysisSourceEntity m_sourceEntity;
285
286 Aws::String m_themeArn;
287
288 Aws::Vector<Tag> m_tags;
289
290 AnalysisDefinition m_definition;
291
292 ValidationStrategy m_validationStrategy;
293
294 Aws::Vector<Aws::String> m_folderArns;
295 bool m_awsAccountIdHasBeenSet = false;
296 bool m_analysisIdHasBeenSet = false;
297 bool m_nameHasBeenSet = false;
298 bool m_parametersHasBeenSet = false;
299 bool m_permissionsHasBeenSet = false;
300 bool m_sourceEntityHasBeenSet = false;
301 bool m_themeArnHasBeenSet = false;
302 bool m_tagsHasBeenSet = false;
303 bool m_definitionHasBeenSet = false;
304 bool m_validationStrategyHasBeenSet = false;
305 bool m_folderArnsHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace QuickSight
310} // 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