AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
TemplateVersion.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/DataSetConfiguration.h>
12#include <aws/quicksight/model/ResourceStatus.h>
13#include <aws/quicksight/model/Sheet.h>
14#include <aws/quicksight/model/TemplateError.h>
15#include <aws/quicksight/model/TopicConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QuickSight {
27namespace Model {
28
35 public:
36 AWS_QUICKSIGHT_API TemplateVersion() = default;
37 AWS_QUICKSIGHT_API TemplateVersion(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
46 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
47 template <typename CreatedTimeT = Aws::Utils::DateTime>
48 void SetCreatedTime(CreatedTimeT&& value) {
49 m_createdTimeHasBeenSet = true;
50 m_createdTime = std::forward<CreatedTimeT>(value);
51 }
52 template <typename CreatedTimeT = Aws::Utils::DateTime>
53 TemplateVersion& WithCreatedTime(CreatedTimeT&& value) {
54 SetCreatedTime(std::forward<CreatedTimeT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Vector<TemplateError>& GetErrors() const { return m_errors; }
64 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
65 template <typename ErrorsT = Aws::Vector<TemplateError>>
66 void SetErrors(ErrorsT&& value) {
67 m_errorsHasBeenSet = true;
68 m_errors = std::forward<ErrorsT>(value);
69 }
70 template <typename ErrorsT = Aws::Vector<TemplateError>>
71 TemplateVersion& WithErrors(ErrorsT&& value) {
72 SetErrors(std::forward<ErrorsT>(value));
73 return *this;
74 }
75 template <typename ErrorsT = TemplateError>
76 TemplateVersion& AddErrors(ErrorsT&& value) {
77 m_errorsHasBeenSet = true;
78 m_errors.emplace_back(std::forward<ErrorsT>(value));
79 return *this;
80 }
82
84
87 inline long long GetVersionNumber() const { return m_versionNumber; }
88 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
89 inline void SetVersionNumber(long long value) {
90 m_versionNumberHasBeenSet = true;
91 m_versionNumber = value;
92 }
93 inline TemplateVersion& WithVersionNumber(long long value) {
94 SetVersionNumber(value);
95 return *this;
96 }
98
100
109 inline ResourceStatus GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(ResourceStatus value) {
112 m_statusHasBeenSet = true;
113 m_status = value;
114 }
116 SetStatus(value);
117 return *this;
118 }
120
122
127 inline const Aws::Vector<DataSetConfiguration>& GetDataSetConfigurations() const { return m_dataSetConfigurations; }
128 inline bool DataSetConfigurationsHasBeenSet() const { return m_dataSetConfigurationsHasBeenSet; }
129 template <typename DataSetConfigurationsT = Aws::Vector<DataSetConfiguration>>
130 void SetDataSetConfigurations(DataSetConfigurationsT&& value) {
131 m_dataSetConfigurationsHasBeenSet = true;
132 m_dataSetConfigurations = std::forward<DataSetConfigurationsT>(value);
133 }
134 template <typename DataSetConfigurationsT = Aws::Vector<DataSetConfiguration>>
135 TemplateVersion& WithDataSetConfigurations(DataSetConfigurationsT&& value) {
136 SetDataSetConfigurations(std::forward<DataSetConfigurationsT>(value));
137 return *this;
138 }
139 template <typename DataSetConfigurationsT = DataSetConfiguration>
140 TemplateVersion& AddDataSetConfigurations(DataSetConfigurationsT&& value) {
141 m_dataSetConfigurationsHasBeenSet = true;
142 m_dataSetConfigurations.emplace_back(std::forward<DataSetConfigurationsT>(value));
143 return *this;
144 }
146
148
153 inline const Aws::Vector<TopicConfiguration>& GetTopicConfigurations() const { return m_topicConfigurations; }
154 inline bool TopicConfigurationsHasBeenSet() const { return m_topicConfigurationsHasBeenSet; }
155 template <typename TopicConfigurationsT = Aws::Vector<TopicConfiguration>>
156 void SetTopicConfigurations(TopicConfigurationsT&& value) {
157 m_topicConfigurationsHasBeenSet = true;
158 m_topicConfigurations = std::forward<TopicConfigurationsT>(value);
159 }
160 template <typename TopicConfigurationsT = Aws::Vector<TopicConfiguration>>
161 TemplateVersion& WithTopicConfigurations(TopicConfigurationsT&& value) {
162 SetTopicConfigurations(std::forward<TopicConfigurationsT>(value));
163 return *this;
164 }
165 template <typename TopicConfigurationsT = TopicConfiguration>
166 TemplateVersion& AddTopicConfigurations(TopicConfigurationsT&& value) {
167 m_topicConfigurationsHasBeenSet = true;
168 m_topicConfigurations.emplace_back(std::forward<TopicConfigurationsT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetDescription() const { return m_description; }
178 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
179 template <typename DescriptionT = Aws::String>
180 void SetDescription(DescriptionT&& value) {
181 m_descriptionHasBeenSet = true;
182 m_description = std::forward<DescriptionT>(value);
183 }
184 template <typename DescriptionT = Aws::String>
185 TemplateVersion& WithDescription(DescriptionT&& value) {
186 SetDescription(std::forward<DescriptionT>(value));
187 return *this;
188 }
190
192
196 inline const Aws::String& GetSourceEntityArn() const { return m_sourceEntityArn; }
197 inline bool SourceEntityArnHasBeenSet() const { return m_sourceEntityArnHasBeenSet; }
198 template <typename SourceEntityArnT = Aws::String>
199 void SetSourceEntityArn(SourceEntityArnT&& value) {
200 m_sourceEntityArnHasBeenSet = true;
201 m_sourceEntityArn = std::forward<SourceEntityArnT>(value);
202 }
203 template <typename SourceEntityArnT = Aws::String>
204 TemplateVersion& WithSourceEntityArn(SourceEntityArnT&& value) {
205 SetSourceEntityArn(std::forward<SourceEntityArnT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
215 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
216 template <typename ThemeArnT = Aws::String>
217 void SetThemeArn(ThemeArnT&& value) {
218 m_themeArnHasBeenSet = true;
219 m_themeArn = std::forward<ThemeArnT>(value);
220 }
221 template <typename ThemeArnT = Aws::String>
222 TemplateVersion& WithThemeArn(ThemeArnT&& value) {
223 SetThemeArn(std::forward<ThemeArnT>(value));
224 return *this;
225 }
227
229
233 inline const Aws::Vector<Sheet>& GetSheets() const { return m_sheets; }
234 inline bool SheetsHasBeenSet() const { return m_sheetsHasBeenSet; }
235 template <typename SheetsT = Aws::Vector<Sheet>>
236 void SetSheets(SheetsT&& value) {
237 m_sheetsHasBeenSet = true;
238 m_sheets = std::forward<SheetsT>(value);
239 }
240 template <typename SheetsT = Aws::Vector<Sheet>>
241 TemplateVersion& WithSheets(SheetsT&& value) {
242 SetSheets(std::forward<SheetsT>(value));
243 return *this;
244 }
245 template <typename SheetsT = Sheet>
246 TemplateVersion& AddSheets(SheetsT&& value) {
247 m_sheetsHasBeenSet = true;
248 m_sheets.emplace_back(std::forward<SheetsT>(value));
249 return *this;
250 }
252 private:
253 Aws::Utils::DateTime m_createdTime{};
254
256
257 long long m_versionNumber{0};
258
260
261 Aws::Vector<DataSetConfiguration> m_dataSetConfigurations;
262
263 Aws::Vector<TopicConfiguration> m_topicConfigurations;
264
265 Aws::String m_description;
266
267 Aws::String m_sourceEntityArn;
268
269 Aws::String m_themeArn;
270
271 Aws::Vector<Sheet> m_sheets;
272 bool m_createdTimeHasBeenSet = false;
273 bool m_errorsHasBeenSet = false;
274 bool m_versionNumberHasBeenSet = false;
275 bool m_statusHasBeenSet = false;
276 bool m_dataSetConfigurationsHasBeenSet = false;
277 bool m_topicConfigurationsHasBeenSet = false;
278 bool m_descriptionHasBeenSet = false;
279 bool m_sourceEntityArnHasBeenSet = false;
280 bool m_themeArnHasBeenSet = false;
281 bool m_sheetsHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace QuickSight
286} // namespace Aws
void SetSourceEntityArn(SourceEntityArnT &&value)
void SetDataSetConfigurations(DataSetConfigurationsT &&value)
TemplateVersion & WithErrors(ErrorsT &&value)
AWS_QUICKSIGHT_API TemplateVersion(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTime(CreatedTimeT &&value)
TemplateVersion & WithDataSetConfigurations(DataSetConfigurationsT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::String & GetSourceEntityArn() const
TemplateVersion & WithTopicConfigurations(TopicConfigurationsT &&value)
void SetTopicConfigurations(TopicConfigurationsT &&value)
TemplateVersion & AddErrors(ErrorsT &&value)
const Aws::Vector< DataSetConfiguration > & GetDataSetConfigurations() const
const Aws::Vector< TemplateError > & GetErrors() const
TemplateVersion & WithVersionNumber(long long value)
TemplateVersion & AddSheets(SheetsT &&value)
TemplateVersion & WithSourceEntityArn(SourceEntityArnT &&value)
TemplateVersion & WithCreatedTime(CreatedTimeT &&value)
const Aws::Vector< TopicConfiguration > & GetTopicConfigurations() const
const Aws::String & GetThemeArn() const
const Aws::Vector< Sheet > & GetSheets() const
AWS_QUICKSIGHT_API TemplateVersion()=default
const Aws::String & GetDescription() const
TemplateVersion & AddTopicConfigurations(TopicConfigurationsT &&value)
void SetDescription(DescriptionT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TemplateVersion & AddDataSetConfigurations(DataSetConfigurationsT &&value)
TemplateVersion & WithStatus(ResourceStatus value)
AWS_QUICKSIGHT_API TemplateVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
TemplateVersion & WithThemeArn(ThemeArnT &&value)
TemplateVersion & WithSheets(SheetsT &&value)
TemplateVersion & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue