AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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
160 inline const DashboardSourceEntity& GetSourceEntity() const { return m_sourceEntity; }
161 inline bool SourceEntityHasBeenSet() const { return m_sourceEntityHasBeenSet; }
162 template <typename SourceEntityT = DashboardSourceEntity>
163 void SetSourceEntity(SourceEntityT&& value) {
164 m_sourceEntityHasBeenSet = true;
165 m_sourceEntity = std::forward<SourceEntityT>(value);
166 }
167 template <typename SourceEntityT = DashboardSourceEntity>
168 CreateDashboardRequest& WithSourceEntity(SourceEntityT&& value) {
169 SetSourceEntity(std::forward<SourceEntityT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 template <typename TagsT = Aws::Vector<Tag>>
182 void SetTags(TagsT&& value) {
183 m_tagsHasBeenSet = true;
184 m_tags = std::forward<TagsT>(value);
185 }
186 template <typename TagsT = Aws::Vector<Tag>>
188 SetTags(std::forward<TagsT>(value));
189 return *this;
190 }
191 template <typename TagsT = Tag>
193 m_tagsHasBeenSet = true;
194 m_tags.emplace_back(std::forward<TagsT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
204 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
205 template <typename VersionDescriptionT = Aws::String>
206 void SetVersionDescription(VersionDescriptionT&& value) {
207 m_versionDescriptionHasBeenSet = true;
208 m_versionDescription = std::forward<VersionDescriptionT>(value);
209 }
210 template <typename VersionDescriptionT = Aws::String>
211 CreateDashboardRequest& WithVersionDescription(VersionDescriptionT&& value) {
212 SetVersionDescription(std::forward<VersionDescriptionT>(value));
213 return *this;
214 }
216
218
247 inline const DashboardPublishOptions& GetDashboardPublishOptions() const { return m_dashboardPublishOptions; }
248 inline bool DashboardPublishOptionsHasBeenSet() const { return m_dashboardPublishOptionsHasBeenSet; }
249 template <typename DashboardPublishOptionsT = DashboardPublishOptions>
250 void SetDashboardPublishOptions(DashboardPublishOptionsT&& value) {
251 m_dashboardPublishOptionsHasBeenSet = true;
252 m_dashboardPublishOptions = std::forward<DashboardPublishOptionsT>(value);
253 }
254 template <typename DashboardPublishOptionsT = DashboardPublishOptions>
255 CreateDashboardRequest& WithDashboardPublishOptions(DashboardPublishOptionsT&& value) {
256 SetDashboardPublishOptions(std::forward<DashboardPublishOptionsT>(value));
257 return *this;
258 }
260
262
268 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
269 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
270 template <typename ThemeArnT = Aws::String>
271 void SetThemeArn(ThemeArnT&& value) {
272 m_themeArnHasBeenSet = true;
273 m_themeArn = std::forward<ThemeArnT>(value);
274 }
275 template <typename ThemeArnT = Aws::String>
277 SetThemeArn(std::forward<ThemeArnT>(value));
278 return *this;
279 }
281
283
289 inline const DashboardVersionDefinition& GetDefinition() const { return m_definition; }
290 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
291 template <typename DefinitionT = DashboardVersionDefinition>
292 void SetDefinition(DefinitionT&& value) {
293 m_definitionHasBeenSet = true;
294 m_definition = std::forward<DefinitionT>(value);
295 }
296 template <typename DefinitionT = DashboardVersionDefinition>
298 SetDefinition(std::forward<DefinitionT>(value));
299 return *this;
300 }
302
304
309 inline const ValidationStrategy& GetValidationStrategy() const { return m_validationStrategy; }
310 inline bool ValidationStrategyHasBeenSet() const { return m_validationStrategyHasBeenSet; }
311 template <typename ValidationStrategyT = ValidationStrategy>
312 void SetValidationStrategy(ValidationStrategyT&& value) {
313 m_validationStrategyHasBeenSet = true;
314 m_validationStrategy = std::forward<ValidationStrategyT>(value);
315 }
316 template <typename ValidationStrategyT = ValidationStrategy>
317 CreateDashboardRequest& WithValidationStrategy(ValidationStrategyT&& value) {
318 SetValidationStrategy(std::forward<ValidationStrategyT>(value));
319 return *this;
320 }
322
324
328 inline const Aws::Vector<Aws::String>& GetFolderArns() const { return m_folderArns; }
329 inline bool FolderArnsHasBeenSet() const { return m_folderArnsHasBeenSet; }
330 template <typename FolderArnsT = Aws::Vector<Aws::String>>
331 void SetFolderArns(FolderArnsT&& value) {
332 m_folderArnsHasBeenSet = true;
333 m_folderArns = std::forward<FolderArnsT>(value);
334 }
335 template <typename FolderArnsT = Aws::Vector<Aws::String>>
337 SetFolderArns(std::forward<FolderArnsT>(value));
338 return *this;
339 }
340 template <typename FolderArnsT = Aws::String>
341 CreateDashboardRequest& AddFolderArns(FolderArnsT&& value) {
342 m_folderArnsHasBeenSet = true;
343 m_folderArns.emplace_back(std::forward<FolderArnsT>(value));
344 return *this;
345 }
347
349
353 inline const LinkSharingConfiguration& GetLinkSharingConfiguration() const { return m_linkSharingConfiguration; }
354 inline bool LinkSharingConfigurationHasBeenSet() const { return m_linkSharingConfigurationHasBeenSet; }
355 template <typename LinkSharingConfigurationT = LinkSharingConfiguration>
356 void SetLinkSharingConfiguration(LinkSharingConfigurationT&& value) {
357 m_linkSharingConfigurationHasBeenSet = true;
358 m_linkSharingConfiguration = std::forward<LinkSharingConfigurationT>(value);
359 }
360 template <typename LinkSharingConfigurationT = LinkSharingConfiguration>
361 CreateDashboardRequest& WithLinkSharingConfiguration(LinkSharingConfigurationT&& value) {
362 SetLinkSharingConfiguration(std::forward<LinkSharingConfigurationT>(value));
363 return *this;
364 }
366
368
372 inline const Aws::Vector<Aws::String>& GetLinkEntities() const { return m_linkEntities; }
373 inline bool LinkEntitiesHasBeenSet() const { return m_linkEntitiesHasBeenSet; }
374 template <typename LinkEntitiesT = Aws::Vector<Aws::String>>
375 void SetLinkEntities(LinkEntitiesT&& value) {
376 m_linkEntitiesHasBeenSet = true;
377 m_linkEntities = std::forward<LinkEntitiesT>(value);
378 }
379 template <typename LinkEntitiesT = Aws::Vector<Aws::String>>
380 CreateDashboardRequest& WithLinkEntities(LinkEntitiesT&& value) {
381 SetLinkEntities(std::forward<LinkEntitiesT>(value));
382 return *this;
383 }
384 template <typename LinkEntitiesT = Aws::String>
385 CreateDashboardRequest& AddLinkEntities(LinkEntitiesT&& value) {
386 m_linkEntitiesHasBeenSet = true;
387 m_linkEntities.emplace_back(std::forward<LinkEntitiesT>(value));
388 return *this;
389 }
391 private:
392 Aws::String m_awsAccountId;
393
394 Aws::String m_dashboardId;
395
396 Aws::String m_name;
397
398 Parameters m_parameters;
399
401
402 DashboardSourceEntity m_sourceEntity;
403
404 Aws::Vector<Tag> m_tags;
405
406 Aws::String m_versionDescription;
407
408 DashboardPublishOptions m_dashboardPublishOptions;
409
410 Aws::String m_themeArn;
411
412 DashboardVersionDefinition m_definition;
413
414 ValidationStrategy m_validationStrategy;
415
416 Aws::Vector<Aws::String> m_folderArns;
417
418 LinkSharingConfiguration m_linkSharingConfiguration;
419
420 Aws::Vector<Aws::String> m_linkEntities;
421 bool m_awsAccountIdHasBeenSet = false;
422 bool m_dashboardIdHasBeenSet = false;
423 bool m_nameHasBeenSet = false;
424 bool m_parametersHasBeenSet = false;
425 bool m_permissionsHasBeenSet = false;
426 bool m_sourceEntityHasBeenSet = false;
427 bool m_tagsHasBeenSet = false;
428 bool m_versionDescriptionHasBeenSet = false;
429 bool m_dashboardPublishOptionsHasBeenSet = false;
430 bool m_themeArnHasBeenSet = false;
431 bool m_definitionHasBeenSet = false;
432 bool m_validationStrategyHasBeenSet = false;
433 bool m_folderArnsHasBeenSet = false;
434 bool m_linkSharingConfigurationHasBeenSet = false;
435 bool m_linkEntitiesHasBeenSet = false;
436};
437
438} // namespace Model
439} // namespace QuickSight
440} // 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