AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QuickSight {
26namespace Model {
27
34 public:
35 AWS_QUICKSIGHT_API TemplateVersion() = default;
36 AWS_QUICKSIGHT_API TemplateVersion(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
45 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
46 template <typename CreatedTimeT = Aws::Utils::DateTime>
47 void SetCreatedTime(CreatedTimeT&& value) {
48 m_createdTimeHasBeenSet = true;
49 m_createdTime = std::forward<CreatedTimeT>(value);
50 }
51 template <typename CreatedTimeT = Aws::Utils::DateTime>
52 TemplateVersion& WithCreatedTime(CreatedTimeT&& value) {
53 SetCreatedTime(std::forward<CreatedTimeT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<TemplateError>& GetErrors() const { return m_errors; }
63 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
64 template <typename ErrorsT = Aws::Vector<TemplateError>>
65 void SetErrors(ErrorsT&& value) {
66 m_errorsHasBeenSet = true;
67 m_errors = std::forward<ErrorsT>(value);
68 }
69 template <typename ErrorsT = Aws::Vector<TemplateError>>
70 TemplateVersion& WithErrors(ErrorsT&& value) {
71 SetErrors(std::forward<ErrorsT>(value));
72 return *this;
73 }
74 template <typename ErrorsT = TemplateError>
75 TemplateVersion& AddErrors(ErrorsT&& value) {
76 m_errorsHasBeenSet = true;
77 m_errors.emplace_back(std::forward<ErrorsT>(value));
78 return *this;
79 }
81
83
86 inline long long GetVersionNumber() const { return m_versionNumber; }
87 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
88 inline void SetVersionNumber(long long value) {
89 m_versionNumberHasBeenSet = true;
90 m_versionNumber = value;
91 }
92 inline TemplateVersion& WithVersionNumber(long long value) {
93 SetVersionNumber(value);
94 return *this;
95 }
97
99
108 inline ResourceStatus GetStatus() const { return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(ResourceStatus value) {
111 m_statusHasBeenSet = true;
112 m_status = value;
113 }
115 SetStatus(value);
116 return *this;
117 }
119
121
126 inline const Aws::Vector<DataSetConfiguration>& GetDataSetConfigurations() const { return m_dataSetConfigurations; }
127 inline bool DataSetConfigurationsHasBeenSet() const { return m_dataSetConfigurationsHasBeenSet; }
128 template <typename DataSetConfigurationsT = Aws::Vector<DataSetConfiguration>>
129 void SetDataSetConfigurations(DataSetConfigurationsT&& value) {
130 m_dataSetConfigurationsHasBeenSet = true;
131 m_dataSetConfigurations = std::forward<DataSetConfigurationsT>(value);
132 }
133 template <typename DataSetConfigurationsT = Aws::Vector<DataSetConfiguration>>
134 TemplateVersion& WithDataSetConfigurations(DataSetConfigurationsT&& value) {
135 SetDataSetConfigurations(std::forward<DataSetConfigurationsT>(value));
136 return *this;
137 }
138 template <typename DataSetConfigurationsT = DataSetConfiguration>
139 TemplateVersion& AddDataSetConfigurations(DataSetConfigurationsT&& value) {
140 m_dataSetConfigurationsHasBeenSet = true;
141 m_dataSetConfigurations.emplace_back(std::forward<DataSetConfigurationsT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetDescription() const { return m_description; }
151 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
152 template <typename DescriptionT = Aws::String>
153 void SetDescription(DescriptionT&& value) {
154 m_descriptionHasBeenSet = true;
155 m_description = std::forward<DescriptionT>(value);
156 }
157 template <typename DescriptionT = Aws::String>
158 TemplateVersion& WithDescription(DescriptionT&& value) {
159 SetDescription(std::forward<DescriptionT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetSourceEntityArn() const { return m_sourceEntityArn; }
170 inline bool SourceEntityArnHasBeenSet() const { return m_sourceEntityArnHasBeenSet; }
171 template <typename SourceEntityArnT = Aws::String>
172 void SetSourceEntityArn(SourceEntityArnT&& value) {
173 m_sourceEntityArnHasBeenSet = true;
174 m_sourceEntityArn = std::forward<SourceEntityArnT>(value);
175 }
176 template <typename SourceEntityArnT = Aws::String>
177 TemplateVersion& WithSourceEntityArn(SourceEntityArnT&& value) {
178 SetSourceEntityArn(std::forward<SourceEntityArnT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
188 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
189 template <typename ThemeArnT = Aws::String>
190 void SetThemeArn(ThemeArnT&& value) {
191 m_themeArnHasBeenSet = true;
192 m_themeArn = std::forward<ThemeArnT>(value);
193 }
194 template <typename ThemeArnT = Aws::String>
195 TemplateVersion& WithThemeArn(ThemeArnT&& value) {
196 SetThemeArn(std::forward<ThemeArnT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::Vector<Sheet>& GetSheets() const { return m_sheets; }
207 inline bool SheetsHasBeenSet() const { return m_sheetsHasBeenSet; }
208 template <typename SheetsT = Aws::Vector<Sheet>>
209 void SetSheets(SheetsT&& value) {
210 m_sheetsHasBeenSet = true;
211 m_sheets = std::forward<SheetsT>(value);
212 }
213 template <typename SheetsT = Aws::Vector<Sheet>>
214 TemplateVersion& WithSheets(SheetsT&& value) {
215 SetSheets(std::forward<SheetsT>(value));
216 return *this;
217 }
218 template <typename SheetsT = Sheet>
219 TemplateVersion& AddSheets(SheetsT&& value) {
220 m_sheetsHasBeenSet = true;
221 m_sheets.emplace_back(std::forward<SheetsT>(value));
222 return *this;
223 }
225 private:
226 Aws::Utils::DateTime m_createdTime{};
227
229
230 long long m_versionNumber{0};
231
233
234 Aws::Vector<DataSetConfiguration> m_dataSetConfigurations;
235
236 Aws::String m_description;
237
238 Aws::String m_sourceEntityArn;
239
240 Aws::String m_themeArn;
241
242 Aws::Vector<Sheet> m_sheets;
243 bool m_createdTimeHasBeenSet = false;
244 bool m_errorsHasBeenSet = false;
245 bool m_versionNumberHasBeenSet = false;
246 bool m_statusHasBeenSet = false;
247 bool m_dataSetConfigurationsHasBeenSet = false;
248 bool m_descriptionHasBeenSet = false;
249 bool m_sourceEntityArnHasBeenSet = false;
250 bool m_themeArnHasBeenSet = false;
251 bool m_sheetsHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace QuickSight
256} // 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 & 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::String & GetThemeArn() const
const Aws::Vector< Sheet > & GetSheets() const
AWS_QUICKSIGHT_API TemplateVersion()=default
const Aws::String & GetDescription() const
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