AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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
178 inline const Aws::String& GetDescription() const { return m_description; }
179 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
180 template <typename DescriptionT = Aws::String>
181 void SetDescription(DescriptionT&& value) {
182 m_descriptionHasBeenSet = true;
183 m_description = std::forward<DescriptionT>(value);
184 }
185 template <typename DescriptionT = Aws::String>
186 DashboardVersion& WithDescription(DescriptionT&& value) {
187 SetDescription(std::forward<DescriptionT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
197 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
198 template <typename ThemeArnT = Aws::String>
199 void SetThemeArn(ThemeArnT&& value) {
200 m_themeArnHasBeenSet = true;
201 m_themeArn = std::forward<ThemeArnT>(value);
202 }
203 template <typename ThemeArnT = Aws::String>
204 DashboardVersion& WithThemeArn(ThemeArnT&& value) {
205 SetThemeArn(std::forward<ThemeArnT>(value));
206 return *this;
207 }
209
211
215 inline const Aws::Vector<Sheet>& GetSheets() const { return m_sheets; }
216 inline bool SheetsHasBeenSet() const { return m_sheetsHasBeenSet; }
217 template <typename SheetsT = Aws::Vector<Sheet>>
218 void SetSheets(SheetsT&& value) {
219 m_sheetsHasBeenSet = true;
220 m_sheets = std::forward<SheetsT>(value);
221 }
222 template <typename SheetsT = Aws::Vector<Sheet>>
223 DashboardVersion& WithSheets(SheetsT&& value) {
224 SetSheets(std::forward<SheetsT>(value));
225 return *this;
226 }
227 template <typename SheetsT = Sheet>
228 DashboardVersion& AddSheets(SheetsT&& value) {
229 m_sheetsHasBeenSet = true;
230 m_sheets.emplace_back(std::forward<SheetsT>(value));
231 return *this;
232 }
234 private:
235 Aws::Utils::DateTime m_createdTime{};
236
238
239 long long m_versionNumber{0};
240
242
243 Aws::String m_arn;
244
245 Aws::String m_sourceEntityArn;
246
247 Aws::Vector<Aws::String> m_dataSetArns;
248
249 Aws::String m_description;
250
251 Aws::String m_themeArn;
252
253 Aws::Vector<Sheet> m_sheets;
254 bool m_createdTimeHasBeenSet = false;
255 bool m_errorsHasBeenSet = false;
256 bool m_versionNumberHasBeenSet = false;
257 bool m_statusHasBeenSet = false;
258 bool m_arnHasBeenSet = false;
259 bool m_sourceEntityArnHasBeenSet = false;
260 bool m_dataSetArnsHasBeenSet = false;
261 bool m_descriptionHasBeenSet = false;
262 bool m_themeArnHasBeenSet = false;
263 bool m_sheetsHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace QuickSight
268} // 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)
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)
void SetCreatedTime(CreatedTimeT &&value)
AWS_QUICKSIGHT_API DashboardVersion()=default
const Aws::Vector< Aws::String > & GetDataSetArns() const
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