AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
CreateDashboardRequest.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/DashboardPublishOptions.h>
12#include <aws/quicksight/model/DashboardSourceEntity.h>
13#include <aws/quicksight/model/DashboardVersionDefinition.h>
14#include <aws/quicksight/model/LinkSharingConfiguration.h>
15#include <aws/quicksight/model/Parameters.h>
16#include <aws/quicksight/model/ResourcePermission.h>
17#include <aws/quicksight/model/Tag.h>
18#include <aws/quicksight/model/ValidationStrategy.h>
19
20#include <utility>
21
22namespace Aws {
23namespace QuickSight {
24namespace Model {
25
29 public:
30 AWS_QUICKSIGHT_API CreateDashboardRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDashboard"; }
37
38 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
39
41
45 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
46 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
47 template <typename AwsAccountIdT = Aws::String>
48 void SetAwsAccountId(AwsAccountIdT&& value) {
49 m_awsAccountIdHasBeenSet = true;
50 m_awsAccountId = std::forward<AwsAccountIdT>(value);
51 }
52 template <typename AwsAccountIdT = Aws::String>
53 CreateDashboardRequest& WithAwsAccountId(AwsAccountIdT&& value) {
54 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDashboardId() const { return m_dashboardId; }
64 inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; }
65 template <typename DashboardIdT = Aws::String>
66 void SetDashboardId(DashboardIdT&& value) {
67 m_dashboardIdHasBeenSet = true;
68 m_dashboardId = std::forward<DashboardIdT>(value);
69 }
70 template <typename DashboardIdT = Aws::String>
71 CreateDashboardRequest& WithDashboardId(DashboardIdT&& value) {
72 SetDashboardId(std::forward<DashboardIdT>(value));
73 return *this;
74 }
76
78
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
101 inline const Parameters& GetParameters() const { return m_parameters; }
102 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
103 template <typename ParametersT = Parameters>
104 void SetParameters(ParametersT&& value) {
105 m_parametersHasBeenSet = true;
106 m_parameters = std::forward<ParametersT>(value);
107 }
108 template <typename ParametersT = Parameters>
110 SetParameters(std::forward<ParametersT>(value));
111 return *this;
112 }
114
116
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>>
131 SetPermissions(std::forward<PermissionsT>(value));
132 return *this;
133 }
134 template <typename PermissionsT = ResourcePermission>
135 CreateDashboardRequest& AddPermissions(PermissionsT&& value) {
136 m_permissionsHasBeenSet = true;
137 m_permissions.emplace_back(std::forward<PermissionsT>(value));
138 return *this;
139 }
141
143
162 inline const DashboardSourceEntity& GetSourceEntity() const { return m_sourceEntity; }
163 inline bool SourceEntityHasBeenSet() const { return m_sourceEntityHasBeenSet; }
164 template <typename SourceEntityT = DashboardSourceEntity>
165 void SetSourceEntity(SourceEntityT&& value) {
166 m_sourceEntityHasBeenSet = true;
167 m_sourceEntity = std::forward<SourceEntityT>(value);
168 }
169 template <typename SourceEntityT = DashboardSourceEntity>
170 CreateDashboardRequest& WithSourceEntity(SourceEntityT&& value) {
171 SetSourceEntity(std::forward<SourceEntityT>(value));
172 return *this;
173 }
175
177
181 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 template <typename TagsT = Aws::Vector<Tag>>
184 void SetTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags = std::forward<TagsT>(value);
187 }
188 template <typename TagsT = Aws::Vector<Tag>>
190 SetTags(std::forward<TagsT>(value));
191 return *this;
192 }
193 template <typename TagsT = Tag>
195 m_tagsHasBeenSet = true;
196 m_tags.emplace_back(std::forward<TagsT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
206 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
207 template <typename VersionDescriptionT = Aws::String>
208 void SetVersionDescription(VersionDescriptionT&& value) {
209 m_versionDescriptionHasBeenSet = true;
210 m_versionDescription = std::forward<VersionDescriptionT>(value);
211 }
212 template <typename VersionDescriptionT = Aws::String>
213 CreateDashboardRequest& WithVersionDescription(VersionDescriptionT&& value) {
214 SetVersionDescription(std::forward<VersionDescriptionT>(value));
215 return *this;
216 }
218
220
249 inline const DashboardPublishOptions& GetDashboardPublishOptions() const { return m_dashboardPublishOptions; }
250 inline bool DashboardPublishOptionsHasBeenSet() const { return m_dashboardPublishOptionsHasBeenSet; }
251 template <typename DashboardPublishOptionsT = DashboardPublishOptions>
252 void SetDashboardPublishOptions(DashboardPublishOptionsT&& value) {
253 m_dashboardPublishOptionsHasBeenSet = true;
254 m_dashboardPublishOptions = std::forward<DashboardPublishOptionsT>(value);
255 }
256 template <typename DashboardPublishOptionsT = DashboardPublishOptions>
257 CreateDashboardRequest& WithDashboardPublishOptions(DashboardPublishOptionsT&& value) {
258 SetDashboardPublishOptions(std::forward<DashboardPublishOptionsT>(value));
259 return *this;
260 }
262
264
270 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
271 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
272 template <typename ThemeArnT = Aws::String>
273 void SetThemeArn(ThemeArnT&& value) {
274 m_themeArnHasBeenSet = true;
275 m_themeArn = std::forward<ThemeArnT>(value);
276 }
277 template <typename ThemeArnT = Aws::String>
279 SetThemeArn(std::forward<ThemeArnT>(value));
280 return *this;
281 }
283
285
291 inline const DashboardVersionDefinition& GetDefinition() const { return m_definition; }
292 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
293 template <typename DefinitionT = DashboardVersionDefinition>
294 void SetDefinition(DefinitionT&& value) {
295 m_definitionHasBeenSet = true;
296 m_definition = std::forward<DefinitionT>(value);
297 }
298 template <typename DefinitionT = DashboardVersionDefinition>
300 SetDefinition(std::forward<DefinitionT>(value));
301 return *this;
302 }
304
306
311 inline const ValidationStrategy& GetValidationStrategy() const { return m_validationStrategy; }
312 inline bool ValidationStrategyHasBeenSet() const { return m_validationStrategyHasBeenSet; }
313 template <typename ValidationStrategyT = ValidationStrategy>
314 void SetValidationStrategy(ValidationStrategyT&& value) {
315 m_validationStrategyHasBeenSet = true;
316 m_validationStrategy = std::forward<ValidationStrategyT>(value);
317 }
318 template <typename ValidationStrategyT = ValidationStrategy>
319 CreateDashboardRequest& WithValidationStrategy(ValidationStrategyT&& value) {
320 SetValidationStrategy(std::forward<ValidationStrategyT>(value));
321 return *this;
322 }
324
326
330 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
331 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
332 template <typename FolderArnsT = Aws::Vector<Aws::String>>
333 void SetFolderArns(FolderArnsT&& value) {
334 m_folderArnsHasBeenSet = true;
335 m_folderArns = std::forward<FolderArnsT>(value);
336 }
337 template <typename FolderArnsT = Aws::Vector<Aws::String>>
339 SetFolderArns(std::forward<FolderArnsT>(value));
340 return *this;
341 }
342 template <typename FolderArnsT = Aws::String>
343 CreateDashboardRequest& AddFolderArns(FolderArnsT&& value) {
344 m_folderArnsHasBeenSet = true;
345 m_folderArns.emplace_back(std::forward<FolderArnsT>(value));
346 return *this;
347 }
349
351
355 inline const LinkSharingConfiguration& GetLinkSharingConfiguration() const { return m_linkSharingConfiguration; }
356 inline bool LinkSharingConfigurationHasBeenSet() const { return m_linkSharingConfigurationHasBeenSet; }
357 template <typename LinkSharingConfigurationT = LinkSharingConfiguration>
358 void SetLinkSharingConfiguration(LinkSharingConfigurationT&& value) {
359 m_linkSharingConfigurationHasBeenSet = true;
360 m_linkSharingConfiguration = std::forward<LinkSharingConfigurationT>(value);
361 }
362 template <typename LinkSharingConfigurationT = LinkSharingConfiguration>
363 CreateDashboardRequest& WithLinkSharingConfiguration(LinkSharingConfigurationT&& value) {
364 SetLinkSharingConfiguration(std::forward<LinkSharingConfigurationT>(value));
365 return *this;
366 }
368
370
374 inline const Aws::Vector<Aws::String>& GetLinkEntities() const { return m_linkEntities; }
375 inline bool LinkEntitiesHasBeenSet() const { return m_linkEntitiesHasBeenSet; }
376 template <typename LinkEntitiesT = Aws::Vector<Aws::String>>
377 void SetLinkEntities(LinkEntitiesT&& value) {
378 m_linkEntitiesHasBeenSet = true;
379 m_linkEntities = std::forward<LinkEntitiesT>(value);
380 }
381 template <typename LinkEntitiesT = Aws::Vector<Aws::String>>
382 CreateDashboardRequest& WithLinkEntities(LinkEntitiesT&& value) {
383 SetLinkEntities(std::forward<LinkEntitiesT>(value));
384 return *this;
385 }
386 template <typename LinkEntitiesT = Aws::String>
387 CreateDashboardRequest& AddLinkEntities(LinkEntitiesT&& value) {
388 m_linkEntitiesHasBeenSet = true;
389 m_linkEntities.emplace_back(std::forward<LinkEntitiesT>(value));
390 return *this;
391 }
393 private:
394 Aws::String m_awsAccountId;
395
396 Aws::String m_dashboardId;
397
398 Aws::String m_name;
399
400 Parameters m_parameters;
401
403
404 DashboardSourceEntity m_sourceEntity;
405
406 Aws::Vector<Tag> m_tags;
407
408 Aws::String m_versionDescription;
409
410 DashboardPublishOptions m_dashboardPublishOptions;
411
412 Aws::String m_themeArn;
413
414 DashboardVersionDefinition m_definition;
415
416 ValidationStrategy m_validationStrategy;
417
418 Aws::Vector<Aws::String> m_folderArns;
419
420 LinkSharingConfiguration m_linkSharingConfiguration;
421
422 Aws::Vector<Aws::String> m_linkEntities;
423 bool m_awsAccountIdHasBeenSet = false;
424 bool m_dashboardIdHasBeenSet = false;
425 bool m_nameHasBeenSet = false;
426 bool m_parametersHasBeenSet = false;
427 bool m_permissionsHasBeenSet = false;
428 bool m_sourceEntityHasBeenSet = false;
429 bool m_tagsHasBeenSet = false;
430 bool m_versionDescriptionHasBeenSet = false;
431 bool m_dashboardPublishOptionsHasBeenSet = false;
432 bool m_themeArnHasBeenSet = false;
433 bool m_definitionHasBeenSet = false;
434 bool m_validationStrategyHasBeenSet = false;
435 bool m_folderArnsHasBeenSet = false;
436 bool m_linkSharingConfigurationHasBeenSet = false;
437 bool m_linkEntitiesHasBeenSet = false;
438};
439
440} // namespace Model
441} // namespace QuickSight
442} // namespace Aws
void SetValidationStrategy(ValidationStrategyT &&value)
CreateDashboardRequest & WithDashboardId(DashboardIdT &&value)
void SetLinkSharingConfiguration(LinkSharingConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateDashboardRequest & WithLinkSharingConfiguration(LinkSharingConfigurationT &&value)
CreateDashboardRequest & WithPermissions(PermissionsT &&value)
AWS_QUICKSIGHT_API CreateDashboardRequest()=default
const Aws::Vector< ResourcePermission > & GetPermissions() const
CreateDashboardRequest & WithFolderArns(FolderArnsT &&value)
CreateDashboardRequest & WithSourceEntity(SourceEntityT &&value)
CreateDashboardRequest & WithDashboardPublishOptions(DashboardPublishOptionsT &&value)
void SetDashboardPublishOptions(DashboardPublishOptionsT &&value)
const LinkSharingConfiguration & GetLinkSharingConfiguration() const
const DashboardSourceEntity & GetSourceEntity() const
CreateDashboardRequest & WithVersionDescription(VersionDescriptionT &&value)
CreateDashboardRequest & WithThemeArn(ThemeArnT &&value)
const Aws::Vector< Aws::String > & GetLinkEntities() const
CreateDashboardRequest & WithDefinition(DefinitionT &&value)
CreateDashboardRequest & WithTags(TagsT &&value)
CreateDashboardRequest & WithLinkEntities(LinkEntitiesT &&value)
CreateDashboardRequest & AddTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetFolderArns() const
CreateDashboardRequest & WithAwsAccountId(AwsAccountIdT &&value)
const DashboardVersionDefinition & GetDefinition() const
void SetVersionDescription(VersionDescriptionT &&value)
CreateDashboardRequest & WithParameters(ParametersT &&value)
CreateDashboardRequest & WithName(NameT &&value)
const ValidationStrategy & GetValidationStrategy() const
CreateDashboardRequest & AddPermissions(PermissionsT &&value)
CreateDashboardRequest & AddLinkEntities(LinkEntitiesT &&value)
CreateDashboardRequest & AddFolderArns(FolderArnsT &&value)
CreateDashboardRequest & WithValidationStrategy(ValidationStrategyT &&value)
const DashboardPublishOptions & GetDashboardPublishOptions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector