AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
DashboardVersion.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/DashboardError.h>
12#include <aws/quicksight/model/ResourceStatus.h>
13#include <aws/quicksight/model/Sheet.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
26
33 public:
34 AWS_QUICKSIGHT_API DashboardVersion() = default;
35 AWS_QUICKSIGHT_API DashboardVersion(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
44 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
45 template <typename CreatedTimeT = Aws::Utils::DateTime>
46 void SetCreatedTime(CreatedTimeT&& value) {
47 m_createdTimeHasBeenSet = true;
48 m_createdTime = std::forward<CreatedTimeT>(value);
49 }
50 template <typename CreatedTimeT = Aws::Utils::DateTime>
51 DashboardVersion& WithCreatedTime(CreatedTimeT&& value) {
52 SetCreatedTime(std::forward<CreatedTimeT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<DashboardError>& GetErrors() const { return m_errors; }
62 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
63 template <typename ErrorsT = Aws::Vector<DashboardError>>
64 void SetErrors(ErrorsT&& value) {
65 m_errorsHasBeenSet = true;
66 m_errors = std::forward<ErrorsT>(value);
67 }
68 template <typename ErrorsT = Aws::Vector<DashboardError>>
69 DashboardVersion& WithErrors(ErrorsT&& value) {
70 SetErrors(std::forward<ErrorsT>(value));
71 return *this;
72 }
73 template <typename ErrorsT = DashboardError>
74 DashboardVersion& AddErrors(ErrorsT&& value) {
75 m_errorsHasBeenSet = true;
76 m_errors.emplace_back(std::forward<ErrorsT>(value));
77 return *this;
78 }
80
82
85 inline long long GetVersionNumber() const { return m_versionNumber; }
86 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
87 inline void SetVersionNumber(long long value) {
88 m_versionNumberHasBeenSet = true;
89 m_versionNumber = value;
90 }
91 inline DashboardVersion& WithVersionNumber(long long value) {
92 SetVersionNumber(value);
93 return *this;
94 }
96
98
101 inline ResourceStatus GetStatus() const { return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(ResourceStatus value) {
104 m_statusHasBeenSet = true;
105 m_status = value;
106 }
108 SetStatus(value);
109 return *this;
110 }
112
114
117 inline const Aws::String& GetArn() const { return m_arn; }
118 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
119 template <typename ArnT = Aws::String>
120 void SetArn(ArnT&& value) {
121 m_arnHasBeenSet = true;
122 m_arn = std::forward<ArnT>(value);
123 }
124 template <typename ArnT = Aws::String>
125 DashboardVersion& WithArn(ArnT&& value) {
126 SetArn(std::forward<ArnT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetSourceEntityArn() const { return m_sourceEntityArn; }
136 inline bool SourceEntityArnHasBeenSet() const { return m_sourceEntityArnHasBeenSet; }
137 template <typename SourceEntityArnT = Aws::String>
138 void SetSourceEntityArn(SourceEntityArnT&& value) {
139 m_sourceEntityArnHasBeenSet = true;
140 m_sourceEntityArn = std::forward<SourceEntityArnT>(value);
141 }
142 template <typename SourceEntityArnT = Aws::String>
143 DashboardVersion& WithSourceEntityArn(SourceEntityArnT&& value) {
144 SetSourceEntityArn(std::forward<SourceEntityArnT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::Vector<Aws::String>& GetDataSetArns() const { return m_dataSetArns; }
155 inline bool DataSetArnsHasBeenSet() const { return m_dataSetArnsHasBeenSet; }
156 template <typename DataSetArnsT = Aws::Vector<Aws::String>>
157 void SetDataSetArns(DataSetArnsT&& value) {
158 m_dataSetArnsHasBeenSet = true;
159 m_dataSetArns = std::forward<DataSetArnsT>(value);
160 }
161 template <typename DataSetArnsT = Aws::Vector<Aws::String>>
162 DashboardVersion& WithDataSetArns(DataSetArnsT&& value) {
163 SetDataSetArns(std::forward<DataSetArnsT>(value));
164 return *this;
165 }
166 template <typename DataSetArnsT = Aws::String>
167 DashboardVersion& AddDataSetArns(DataSetArnsT&& value) {
168 m_dataSetArnsHasBeenSet = true;
169 m_dataSetArns.emplace_back(std::forward<DataSetArnsT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::Vector<Aws::String>& GetTopicArns() const { return m_topicArns; }
180 inline bool TopicArnsHasBeenSet() const { return m_topicArnsHasBeenSet; }
181 template <typename TopicArnsT = Aws::Vector<Aws::String>>
182 void SetTopicArns(TopicArnsT&& value) {
183 m_topicArnsHasBeenSet = true;
184 m_topicArns = std::forward<TopicArnsT>(value);
185 }
186 template <typename TopicArnsT = Aws::Vector<Aws::String>>
187 DashboardVersion& WithTopicArns(TopicArnsT&& value) {
188 SetTopicArns(std::forward<TopicArnsT>(value));
189 return *this;
190 }
191 template <typename TopicArnsT = Aws::String>
192 DashboardVersion& AddTopicArns(TopicArnsT&& value) {
193 m_topicArnsHasBeenSet = true;
194 m_topicArns.emplace_back(std::forward<TopicArnsT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetDescription() const { return m_description; }
204 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
205 template <typename DescriptionT = Aws::String>
206 void SetDescription(DescriptionT&& value) {
207 m_descriptionHasBeenSet = true;
208 m_description = std::forward<DescriptionT>(value);
209 }
210 template <typename DescriptionT = Aws::String>
211 DashboardVersion& WithDescription(DescriptionT&& value) {
212 SetDescription(std::forward<DescriptionT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
222 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
223 template <typename ThemeArnT = Aws::String>
224 void SetThemeArn(ThemeArnT&& value) {
225 m_themeArnHasBeenSet = true;
226 m_themeArn = std::forward<ThemeArnT>(value);
227 }
228 template <typename ThemeArnT = Aws::String>
229 DashboardVersion& WithThemeArn(ThemeArnT&& value) {
230 SetThemeArn(std::forward<ThemeArnT>(value));
231 return *this;
232 }
234
236
240 inline const Aws::Vector<Sheet>& GetSheets() const { return m_sheets; }
241 inline bool SheetsHasBeenSet() const { return m_sheetsHasBeenSet; }
242 template <typename SheetsT = Aws::Vector<Sheet>>
243 void SetSheets(SheetsT&& value) {
244 m_sheetsHasBeenSet = true;
245 m_sheets = std::forward<SheetsT>(value);
246 }
247 template <typename SheetsT = Aws::Vector<Sheet>>
248 DashboardVersion& WithSheets(SheetsT&& value) {
249 SetSheets(std::forward<SheetsT>(value));
250 return *this;
251 }
252 template <typename SheetsT = Sheet>
253 DashboardVersion& AddSheets(SheetsT&& value) {
254 m_sheetsHasBeenSet = true;
255 m_sheets.emplace_back(std::forward<SheetsT>(value));
256 return *this;
257 }
259 private:
260 Aws::Utils::DateTime m_createdTime{};
261
263
264 long long m_versionNumber{0};
265
267
268 Aws::String m_arn;
269
270 Aws::String m_sourceEntityArn;
271
272 Aws::Vector<Aws::String> m_dataSetArns;
273
274 Aws::Vector<Aws::String> m_topicArns;
275
276 Aws::String m_description;
277
278 Aws::String m_themeArn;
279
280 Aws::Vector<Sheet> m_sheets;
281 bool m_createdTimeHasBeenSet = false;
282 bool m_errorsHasBeenSet = false;
283 bool m_versionNumberHasBeenSet = false;
284 bool m_statusHasBeenSet = false;
285 bool m_arnHasBeenSet = false;
286 bool m_sourceEntityArnHasBeenSet = false;
287 bool m_dataSetArnsHasBeenSet = false;
288 bool m_topicArnsHasBeenSet = false;
289 bool m_descriptionHasBeenSet = false;
290 bool m_themeArnHasBeenSet = false;
291 bool m_sheetsHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace QuickSight
296} // namespace Aws
DashboardVersion & WithVersionNumber(long long value)
DashboardVersion & WithThemeArn(ThemeArnT &&value)
AWS_QUICKSIGHT_API DashboardVersion(Aws::Utils::Json::JsonView jsonValue)
DashboardVersion & AddSheets(SheetsT &&value)
DashboardVersion & WithSourceEntityArn(SourceEntityArnT &&value)
const Aws::Vector< DashboardError > & GetErrors() const
void SetDataSetArns(DataSetArnsT &&value)
DashboardVersion & WithTopicArns(TopicArnsT &&value)
AWS_QUICKSIGHT_API DashboardVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Sheet > & GetSheets() const
DashboardVersion & WithSheets(SheetsT &&value)
const Aws::String & GetThemeArn() const
const Aws::String & GetDescription() const
void SetSourceEntityArn(SourceEntityArnT &&value)
DashboardVersion & WithStatus(ResourceStatus value)
void SetDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetTopicArns() const
void SetCreatedTime(CreatedTimeT &&value)
AWS_QUICKSIGHT_API DashboardVersion()=default
const Aws::Vector< Aws::String > & GetDataSetArns() const
DashboardVersion & AddTopicArns(TopicArnsT &&value)
DashboardVersion & AddErrors(ErrorsT &&value)
DashboardVersion & WithDescription(DescriptionT &&value)
DashboardVersion & WithCreatedTime(CreatedTimeT &&value)
DashboardVersion & WithArn(ArnT &&value)
DashboardVersion & WithDataSetArns(DataSetArnsT &&value)
DashboardVersion & AddDataSetArns(DataSetArnsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
DashboardVersion & WithErrors(ErrorsT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::String & GetSourceEntityArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue