AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AwsAccountIdT = Aws::String>
50 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
51 template<typename AwsAccountIdT = Aws::String>
52 CreateAnalysisRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
54
56
60 inline const Aws::String& GetAnalysisId() const { return m_analysisId; }
61 inline bool AnalysisIdHasBeenSet() const { return m_analysisIdHasBeenSet; }
62 template<typename AnalysisIdT = Aws::String>
63 void SetAnalysisId(AnalysisIdT&& value) { m_analysisIdHasBeenSet = true; m_analysisId = std::forward<AnalysisIdT>(value); }
64 template<typename AnalysisIdT = Aws::String>
65 CreateAnalysisRequest& WithAnalysisId(AnalysisIdT&& value) { SetAnalysisId(std::forward<AnalysisIdT>(value)); return *this;}
67
69
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 CreateAnalysisRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
86 inline const Parameters& GetParameters() const { return m_parameters; }
87 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
88 template<typename ParametersT = Parameters>
89 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
90 template<typename ParametersT = Parameters>
91 CreateAnalysisRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
93
95
102 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
103 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
104 template<typename PermissionsT = Aws::Vector<ResourcePermission>>
105 void SetPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions = std::forward<PermissionsT>(value); }
106 template<typename PermissionsT = Aws::Vector<ResourcePermission>>
107 CreateAnalysisRequest& WithPermissions(PermissionsT&& value) { SetPermissions(std::forward<PermissionsT>(value)); return *this;}
108 template<typename PermissionsT = ResourcePermission>
109 CreateAnalysisRequest& AddPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions.emplace_back(std::forward<PermissionsT>(value)); return *this; }
111
113
119 inline const AnalysisSourceEntity& GetSourceEntity() const { return m_sourceEntity; }
120 inline bool SourceEntityHasBeenSet() const { return m_sourceEntityHasBeenSet; }
121 template<typename SourceEntityT = AnalysisSourceEntity>
122 void SetSourceEntity(SourceEntityT&& value) { m_sourceEntityHasBeenSet = true; m_sourceEntity = std::forward<SourceEntityT>(value); }
123 template<typename SourceEntityT = AnalysisSourceEntity>
124 CreateAnalysisRequest& WithSourceEntity(SourceEntityT&& value) { SetSourceEntity(std::forward<SourceEntityT>(value)); return *this;}
126
128
133 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
134 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
135 template<typename ThemeArnT = Aws::String>
136 void SetThemeArn(ThemeArnT&& value) { m_themeArnHasBeenSet = true; m_themeArn = std::forward<ThemeArnT>(value); }
137 template<typename ThemeArnT = Aws::String>
138 CreateAnalysisRequest& WithThemeArn(ThemeArnT&& value) { SetThemeArn(std::forward<ThemeArnT>(value)); return *this;}
140
142
146 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template<typename TagsT = Aws::Vector<Tag>>
149 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
150 template<typename TagsT = Aws::Vector<Tag>>
151 CreateAnalysisRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
152 template<typename TagsT = Tag>
153 CreateAnalysisRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
155
157
163 inline const AnalysisDefinition& GetDefinition() const { return m_definition; }
164 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
165 template<typename DefinitionT = AnalysisDefinition>
166 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
167 template<typename DefinitionT = AnalysisDefinition>
168 CreateAnalysisRequest& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
170
172
176 inline const ValidationStrategy& GetValidationStrategy() const { return m_validationStrategy; }
177 inline bool ValidationStrategyHasBeenSet() const { return m_validationStrategyHasBeenSet; }
178 template<typename ValidationStrategyT = ValidationStrategy>
179 void SetValidationStrategy(ValidationStrategyT&& value) { m_validationStrategyHasBeenSet = true; m_validationStrategy = std::forward<ValidationStrategyT>(value); }
180 template<typename ValidationStrategyT = ValidationStrategy>
181 CreateAnalysisRequest& WithValidationStrategy(ValidationStrategyT&& value) { SetValidationStrategy(std::forward<ValidationStrategyT>(value)); return *this;}
183
185
189 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
190 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
191 template<typename FolderArnsT = Aws::Vector<Aws::String>>
192 void SetFolderArns(FolderArnsT&& value) { m_folderArnsHasBeenSet = true; m_folderArns = std::forward<FolderArnsT>(value); }
193 template<typename FolderArnsT = Aws::Vector<Aws::String>>
194 CreateAnalysisRequest& WithFolderArns(FolderArnsT&& value) { SetFolderArns(std::forward<FolderArnsT>(value)); return *this;}
195 template<typename FolderArnsT = Aws::String>
196 CreateAnalysisRequest& AddFolderArns(FolderArnsT&& value) { m_folderArnsHasBeenSet = true; m_folderArns.emplace_back(std::forward<FolderArnsT>(value)); return *this; }
198 private:
199
200 Aws::String m_awsAccountId;
201 bool m_awsAccountIdHasBeenSet = false;
202
203 Aws::String m_analysisId;
204 bool m_analysisIdHasBeenSet = false;
205
206 Aws::String m_name;
207 bool m_nameHasBeenSet = false;
208
209 Parameters m_parameters;
210 bool m_parametersHasBeenSet = false;
211
213 bool m_permissionsHasBeenSet = false;
214
215 AnalysisSourceEntity m_sourceEntity;
216 bool m_sourceEntityHasBeenSet = false;
217
218 Aws::String m_themeArn;
219 bool m_themeArnHasBeenSet = false;
220
221 Aws::Vector<Tag> m_tags;
222 bool m_tagsHasBeenSet = false;
223
224 AnalysisDefinition m_definition;
225 bool m_definitionHasBeenSet = false;
226
227 ValidationStrategy m_validationStrategy;
228 bool m_validationStrategyHasBeenSet = false;
229
230 Aws::Vector<Aws::String> m_folderArns;
231 bool m_folderArnsHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace QuickSight
236} // 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