AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAnalysisRequest.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/Parameters.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/quicksight/model/AnalysisSourceEntity.h>
13#include <aws/quicksight/model/AnalysisDefinition.h>
14#include <aws/quicksight/model/ValidationStrategy.h>
15#include <aws/quicksight/model/ResourcePermission.h>
16#include <aws/quicksight/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace QuickSight
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_QUICKSIGHT_API CreateAnalysisRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateAnalysis"; }
38
39 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
48 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
49 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
50 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
51 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
52 inline CreateAnalysisRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
53 inline CreateAnalysisRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
54 inline CreateAnalysisRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
56
58
62 inline const Aws::String& GetAnalysisId() const{ return m_analysisId; }
63 inline bool AnalysisIdHasBeenSet() const { return m_analysisIdHasBeenSet; }
64 inline void SetAnalysisId(const Aws::String& value) { m_analysisIdHasBeenSet = true; m_analysisId = value; }
65 inline void SetAnalysisId(Aws::String&& value) { m_analysisIdHasBeenSet = true; m_analysisId = std::move(value); }
66 inline void SetAnalysisId(const char* value) { m_analysisIdHasBeenSet = true; m_analysisId.assign(value); }
67 inline CreateAnalysisRequest& WithAnalysisId(const Aws::String& value) { SetAnalysisId(value); return *this;}
68 inline CreateAnalysisRequest& WithAnalysisId(Aws::String&& value) { SetAnalysisId(std::move(value)); return *this;}
69 inline CreateAnalysisRequest& WithAnalysisId(const char* value) { SetAnalysisId(value); return *this;}
71
73
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline CreateAnalysisRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline CreateAnalysisRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline CreateAnalysisRequest& WithName(const char* value) { SetName(value); return *this;}
86
88
92 inline const Parameters& GetParameters() const{ return m_parameters; }
93 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
94 inline void SetParameters(const Parameters& value) { m_parametersHasBeenSet = true; m_parameters = value; }
95 inline void SetParameters(Parameters&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
96 inline CreateAnalysisRequest& WithParameters(const Parameters& value) { SetParameters(value); return *this;}
97 inline CreateAnalysisRequest& WithParameters(Parameters&& value) { SetParameters(std::move(value)); return *this;}
99
101
108 inline const Aws::Vector<ResourcePermission>& GetPermissions() const{ return m_permissions; }
109 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
110 inline void SetPermissions(const Aws::Vector<ResourcePermission>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
111 inline void SetPermissions(Aws::Vector<ResourcePermission>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
113 inline CreateAnalysisRequest& WithPermissions(Aws::Vector<ResourcePermission>&& value) { SetPermissions(std::move(value)); return *this;}
114 inline CreateAnalysisRequest& AddPermissions(const ResourcePermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
115 inline CreateAnalysisRequest& AddPermissions(ResourcePermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
117
119
125 inline const AnalysisSourceEntity& GetSourceEntity() const{ return m_sourceEntity; }
126 inline bool SourceEntityHasBeenSet() const { return m_sourceEntityHasBeenSet; }
127 inline void SetSourceEntity(const AnalysisSourceEntity& value) { m_sourceEntityHasBeenSet = true; m_sourceEntity = value; }
128 inline void SetSourceEntity(AnalysisSourceEntity&& value) { m_sourceEntityHasBeenSet = true; m_sourceEntity = std::move(value); }
129 inline CreateAnalysisRequest& WithSourceEntity(const AnalysisSourceEntity& value) { SetSourceEntity(value); return *this;}
130 inline CreateAnalysisRequest& WithSourceEntity(AnalysisSourceEntity&& value) { SetSourceEntity(std::move(value)); return *this;}
132
134
139 inline const Aws::String& GetThemeArn() const{ return m_themeArn; }
140 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
141 inline void SetThemeArn(const Aws::String& value) { m_themeArnHasBeenSet = true; m_themeArn = value; }
142 inline void SetThemeArn(Aws::String&& value) { m_themeArnHasBeenSet = true; m_themeArn = std::move(value); }
143 inline void SetThemeArn(const char* value) { m_themeArnHasBeenSet = true; m_themeArn.assign(value); }
144 inline CreateAnalysisRequest& WithThemeArn(const Aws::String& value) { SetThemeArn(value); return *this;}
145 inline CreateAnalysisRequest& WithThemeArn(Aws::String&& value) { SetThemeArn(std::move(value)); return *this;}
146 inline CreateAnalysisRequest& WithThemeArn(const char* value) { SetThemeArn(value); return *this;}
148
150
154 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
157 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
158 inline CreateAnalysisRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
159 inline CreateAnalysisRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
160 inline CreateAnalysisRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
161 inline CreateAnalysisRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
163
165
171 inline const AnalysisDefinition& GetDefinition() const{ return m_definition; }
172 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
173 inline void SetDefinition(const AnalysisDefinition& value) { m_definitionHasBeenSet = true; m_definition = value; }
174 inline void SetDefinition(AnalysisDefinition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
175 inline CreateAnalysisRequest& WithDefinition(const AnalysisDefinition& value) { SetDefinition(value); return *this;}
176 inline CreateAnalysisRequest& WithDefinition(AnalysisDefinition&& value) { SetDefinition(std::move(value)); return *this;}
178
180
184 inline const ValidationStrategy& GetValidationStrategy() const{ return m_validationStrategy; }
185 inline bool ValidationStrategyHasBeenSet() const { return m_validationStrategyHasBeenSet; }
186 inline void SetValidationStrategy(const ValidationStrategy& value) { m_validationStrategyHasBeenSet = true; m_validationStrategy = value; }
187 inline void SetValidationStrategy(ValidationStrategy&& value) { m_validationStrategyHasBeenSet = true; m_validationStrategy = std::move(value); }
191
193
197 inline const Aws::Vector<Aws::String>& GetFolderArns() const{ return m_folderArns; }
198 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
199 inline void SetFolderArns(const Aws::Vector<Aws::String>& value) { m_folderArnsHasBeenSet = true; m_folderArns = value; }
200 inline void SetFolderArns(Aws::Vector<Aws::String>&& value) { m_folderArnsHasBeenSet = true; m_folderArns = std::move(value); }
201 inline CreateAnalysisRequest& WithFolderArns(const Aws::Vector<Aws::String>& value) { SetFolderArns(value); return *this;}
202 inline CreateAnalysisRequest& WithFolderArns(Aws::Vector<Aws::String>&& value) { SetFolderArns(std::move(value)); return *this;}
203 inline CreateAnalysisRequest& AddFolderArns(const Aws::String& value) { m_folderArnsHasBeenSet = true; m_folderArns.push_back(value); return *this; }
204 inline CreateAnalysisRequest& AddFolderArns(Aws::String&& value) { m_folderArnsHasBeenSet = true; m_folderArns.push_back(std::move(value)); return *this; }
205 inline CreateAnalysisRequest& AddFolderArns(const char* value) { m_folderArnsHasBeenSet = true; m_folderArns.push_back(value); return *this; }
207 private:
208
209 Aws::String m_awsAccountId;
210 bool m_awsAccountIdHasBeenSet = false;
211
212 Aws::String m_analysisId;
213 bool m_analysisIdHasBeenSet = false;
214
215 Aws::String m_name;
216 bool m_nameHasBeenSet = false;
217
218 Parameters m_parameters;
219 bool m_parametersHasBeenSet = false;
220
222 bool m_permissionsHasBeenSet = false;
223
224 AnalysisSourceEntity m_sourceEntity;
225 bool m_sourceEntityHasBeenSet = false;
226
227 Aws::String m_themeArn;
228 bool m_themeArnHasBeenSet = false;
229
230 Aws::Vector<Tag> m_tags;
231 bool m_tagsHasBeenSet = false;
232
233 AnalysisDefinition m_definition;
234 bool m_definitionHasBeenSet = false;
235
236 ValidationStrategy m_validationStrategy;
237 bool m_validationStrategyHasBeenSet = false;
238
239 Aws::Vector<Aws::String> m_folderArns;
240 bool m_folderArnsHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace QuickSight
245} // namespace Aws
CreateAnalysisRequest & WithThemeArn(const Aws::String &value)
CreateAnalysisRequest & WithParameters(Parameters &&value)
CreateAnalysisRequest & AddPermissions(ResourcePermission &&value)
CreateAnalysisRequest & WithAnalysisId(const char *value)
CreateAnalysisRequest & WithParameters(const Parameters &value)
CreateAnalysisRequest & WithAnalysisId(const Aws::String &value)
CreateAnalysisRequest & WithAnalysisId(Aws::String &&value)
CreateAnalysisRequest & WithName(const char *value)
CreateAnalysisRequest & WithSourceEntity(AnalysisSourceEntity &&value)
CreateAnalysisRequest & WithSourceEntity(const AnalysisSourceEntity &value)
CreateAnalysisRequest & WithName(const Aws::String &value)
const Aws::Vector< ResourcePermission > & GetPermissions() const
void SetValidationStrategy(const ValidationStrategy &value)
const Aws::Vector< Aws::String > & GetFolderArns() const
virtual const char * GetServiceRequestName() const override
CreateAnalysisRequest & WithAwsAccountId(const Aws::String &value)
CreateAnalysisRequest & AddPermissions(const ResourcePermission &value)
CreateAnalysisRequest & WithAwsAccountId(const char *value)
void SetSourceEntity(AnalysisSourceEntity &&value)
CreateAnalysisRequest & WithDefinition(AnalysisDefinition &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateAnalysisRequest & AddFolderArns(Aws::String &&value)
CreateAnalysisRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAnalysisRequest & AddTags(const Tag &value)
CreateAnalysisRequest & WithPermissions(const Aws::Vector< ResourcePermission > &value)
CreateAnalysisRequest & WithDefinition(const AnalysisDefinition &value)
CreateAnalysisRequest & WithPermissions(Aws::Vector< ResourcePermission > &&value)
CreateAnalysisRequest & AddFolderArns(const Aws::String &value)
void SetPermissions(Aws::Vector< ResourcePermission > &&value)
CreateAnalysisRequest & WithFolderArns(const Aws::Vector< Aws::String > &value)
CreateAnalysisRequest & WithName(Aws::String &&value)
CreateAnalysisRequest & WithThemeArn(Aws::String &&value)
CreateAnalysisRequest & WithValidationStrategy(const ValidationStrategy &value)
CreateAnalysisRequest & WithFolderArns(Aws::Vector< Aws::String > &&value)
CreateAnalysisRequest & WithValidationStrategy(ValidationStrategy &&value)
CreateAnalysisRequest & WithThemeArn(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
const AnalysisDefinition & GetDefinition() const
CreateAnalysisRequest & AddTags(Tag &&value)
void SetFolderArns(const Aws::Vector< Aws::String > &value)
void SetValidationStrategy(ValidationStrategy &&value)
CreateAnalysisRequest & AddFolderArns(const char *value)
void SetPermissions(const Aws::Vector< ResourcePermission > &value)
void SetFolderArns(Aws::Vector< Aws::String > &&value)
void SetDefinition(const AnalysisDefinition &value)
void SetSourceEntity(const AnalysisSourceEntity &value)
const ValidationStrategy & GetValidationStrategy() const
CreateAnalysisRequest & WithTags(const Aws::Vector< Tag > &value)
const AnalysisSourceEntity & GetSourceEntity() const
CreateAnalysisRequest & WithAwsAccountId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector