AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateThemeRequest.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/ResourcePermission.h>
12#include <aws/quicksight/model/Tag.h>
13#include <aws/quicksight/model/ThemeConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QuickSight {
19namespace Model {
20
24 public:
25 AWS_QUICKSIGHT_API CreateThemeRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateTheme"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
41 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
42 template <typename AwsAccountIdT = Aws::String>
43 void SetAwsAccountId(AwsAccountIdT&& value) {
44 m_awsAccountIdHasBeenSet = true;
45 m_awsAccountId = std::forward<AwsAccountIdT>(value);
46 }
47 template <typename AwsAccountIdT = Aws::String>
48 CreateThemeRequest& WithAwsAccountId(AwsAccountIdT&& value) {
49 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetThemeId() const { return m_themeId; }
60 inline bool ThemeIdHasBeenSet() const { return m_themeIdHasBeenSet; }
61 template <typename ThemeIdT = Aws::String>
62 void SetThemeId(ThemeIdT&& value) {
63 m_themeIdHasBeenSet = true;
64 m_themeId = std::forward<ThemeIdT>(value);
65 }
66 template <typename ThemeIdT = Aws::String>
67 CreateThemeRequest& WithThemeId(ThemeIdT&& value) {
68 SetThemeId(std::forward<ThemeIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 CreateThemeRequest& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::String& GetBaseThemeId() const { return m_baseThemeId; }
99 inline bool BaseThemeIdHasBeenSet() const { return m_baseThemeIdHasBeenSet; }
100 template <typename BaseThemeIdT = Aws::String>
101 void SetBaseThemeId(BaseThemeIdT&& value) {
102 m_baseThemeIdHasBeenSet = true;
103 m_baseThemeId = std::forward<BaseThemeIdT>(value);
104 }
105 template <typename BaseThemeIdT = Aws::String>
106 CreateThemeRequest& WithBaseThemeId(BaseThemeIdT&& value) {
107 SetBaseThemeId(std::forward<BaseThemeIdT>(value));
108 return *this;
109 }
111
113
119 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
120 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
121 template <typename VersionDescriptionT = Aws::String>
122 void SetVersionDescription(VersionDescriptionT&& value) {
123 m_versionDescriptionHasBeenSet = true;
124 m_versionDescription = std::forward<VersionDescriptionT>(value);
125 }
126 template <typename VersionDescriptionT = Aws::String>
127 CreateThemeRequest& WithVersionDescription(VersionDescriptionT&& value) {
128 SetVersionDescription(std::forward<VersionDescriptionT>(value));
129 return *this;
130 }
132
134
137 inline const ThemeConfiguration& GetConfiguration() const { return m_configuration; }
138 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
139 template <typename ConfigurationT = ThemeConfiguration>
140 void SetConfiguration(ConfigurationT&& value) {
141 m_configurationHasBeenSet = true;
142 m_configuration = std::forward<ConfigurationT>(value);
143 }
144 template <typename ConfigurationT = ThemeConfiguration>
145 CreateThemeRequest& WithConfiguration(ConfigurationT&& value) {
146 SetConfiguration(std::forward<ConfigurationT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<ResourcePermission>& GetPermissions() const { return m_permissions; }
156 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
157 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
158 void SetPermissions(PermissionsT&& value) {
159 m_permissionsHasBeenSet = true;
160 m_permissions = std::forward<PermissionsT>(value);
161 }
162 template <typename PermissionsT = Aws::Vector<ResourcePermission>>
163 CreateThemeRequest& WithPermissions(PermissionsT&& value) {
164 SetPermissions(std::forward<PermissionsT>(value));
165 return *this;
166 }
167 template <typename PermissionsT = ResourcePermission>
168 CreateThemeRequest& AddPermissions(PermissionsT&& value) {
169 m_permissionsHasBeenSet = true;
170 m_permissions.emplace_back(std::forward<PermissionsT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
181 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
182 template <typename TagsT = Aws::Vector<Tag>>
183 void SetTags(TagsT&& value) {
184 m_tagsHasBeenSet = true;
185 m_tags = std::forward<TagsT>(value);
186 }
187 template <typename TagsT = Aws::Vector<Tag>>
188 CreateThemeRequest& WithTags(TagsT&& value) {
189 SetTags(std::forward<TagsT>(value));
190 return *this;
191 }
192 template <typename TagsT = Tag>
193 CreateThemeRequest& AddTags(TagsT&& value) {
194 m_tagsHasBeenSet = true;
195 m_tags.emplace_back(std::forward<TagsT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_awsAccountId;
201
202 Aws::String m_themeId;
203
204 Aws::String m_name;
205
206 Aws::String m_baseThemeId;
207
208 Aws::String m_versionDescription;
209
210 ThemeConfiguration m_configuration;
211
213
214 Aws::Vector<Tag> m_tags;
215 bool m_awsAccountIdHasBeenSet = false;
216 bool m_themeIdHasBeenSet = false;
217 bool m_nameHasBeenSet = false;
218 bool m_baseThemeIdHasBeenSet = false;
219 bool m_versionDescriptionHasBeenSet = false;
220 bool m_configurationHasBeenSet = false;
221 bool m_permissionsHasBeenSet = false;
222 bool m_tagsHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace QuickSight
227} // namespace Aws
CreateThemeRequest & WithAwsAccountId(AwsAccountIdT &&value)
CreateThemeRequest & WithPermissions(PermissionsT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateThemeRequest & WithConfiguration(ConfigurationT &&value)
CreateThemeRequest & WithThemeId(ThemeIdT &&value)
CreateThemeRequest & WithName(NameT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetConfiguration(ConfigurationT &&value)
CreateThemeRequest & WithBaseThemeId(BaseThemeIdT &&value)
CreateThemeRequest & AddPermissions(PermissionsT &&value)
const ThemeConfiguration & GetConfiguration() const
AWS_QUICKSIGHT_API CreateThemeRequest()=default
virtual const char * GetServiceRequestName() const override
CreateThemeRequest & AddTags(TagsT &&value)
const Aws::String & GetVersionDescription() const
const Aws::Vector< ResourcePermission > & GetPermissions() const
CreateThemeRequest & WithVersionDescription(VersionDescriptionT &&value)
CreateThemeRequest & WithTags(TagsT &&value)
void SetVersionDescription(VersionDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector