AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DashboardVersion.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/model/ResourceStatus.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/quicksight/model/DashboardError.h>
13#include <aws/quicksight/model/Sheet.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QuickSight
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_QUICKSIGHT_API DashboardVersion() = default;
40 AWS_QUICKSIGHT_API DashboardVersion(Aws::Utils::Json::JsonView jsonValue);
42 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
50 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
51 template<typename CreatedTimeT = Aws::Utils::DateTime>
52 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
53 template<typename CreatedTimeT = Aws::Utils::DateTime>
54 DashboardVersion& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
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) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
65 template<typename ErrorsT = Aws::Vector<DashboardError>>
66 DashboardVersion& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
67 template<typename ErrorsT = DashboardError>
68 DashboardVersion& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
70
72
75 inline long long GetVersionNumber() const { return m_versionNumber; }
76 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
77 inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
78 inline DashboardVersion& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
80
82
85 inline ResourceStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(ResourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
88 inline DashboardVersion& WithStatus(ResourceStatus value) { SetStatus(value); return *this;}
90
92
95 inline const Aws::String& GetArn() const { return m_arn; }
96 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
97 template<typename ArnT = Aws::String>
98 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
99 template<typename ArnT = Aws::String>
100 DashboardVersion& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
102
104
107 inline const Aws::String& GetSourceEntityArn() const { return m_sourceEntityArn; }
108 inline bool SourceEntityArnHasBeenSet() const { return m_sourceEntityArnHasBeenSet; }
109 template<typename SourceEntityArnT = Aws::String>
110 void SetSourceEntityArn(SourceEntityArnT&& value) { m_sourceEntityArnHasBeenSet = true; m_sourceEntityArn = std::forward<SourceEntityArnT>(value); }
111 template<typename SourceEntityArnT = Aws::String>
112 DashboardVersion& WithSourceEntityArn(SourceEntityArnT&& value) { SetSourceEntityArn(std::forward<SourceEntityArnT>(value)); return *this;}
114
116
120 inline const Aws::Vector<Aws::String>& GetDataSetArns() const { return m_dataSetArns; }
121 inline bool DataSetArnsHasBeenSet() const { return m_dataSetArnsHasBeenSet; }
122 template<typename DataSetArnsT = Aws::Vector<Aws::String>>
123 void SetDataSetArns(DataSetArnsT&& value) { m_dataSetArnsHasBeenSet = true; m_dataSetArns = std::forward<DataSetArnsT>(value); }
124 template<typename DataSetArnsT = Aws::Vector<Aws::String>>
125 DashboardVersion& WithDataSetArns(DataSetArnsT&& value) { SetDataSetArns(std::forward<DataSetArnsT>(value)); return *this;}
126 template<typename DataSetArnsT = Aws::String>
127 DashboardVersion& AddDataSetArns(DataSetArnsT&& value) { m_dataSetArnsHasBeenSet = true; m_dataSetArns.emplace_back(std::forward<DataSetArnsT>(value)); return *this; }
129
131
134 inline const Aws::String& GetDescription() const { return m_description; }
135 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 template<typename DescriptionT = Aws::String>
137 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
138 template<typename DescriptionT = Aws::String>
139 DashboardVersion& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
141
143
146 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
147 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
148 template<typename ThemeArnT = Aws::String>
149 void SetThemeArn(ThemeArnT&& value) { m_themeArnHasBeenSet = true; m_themeArn = std::forward<ThemeArnT>(value); }
150 template<typename ThemeArnT = Aws::String>
151 DashboardVersion& WithThemeArn(ThemeArnT&& value) { SetThemeArn(std::forward<ThemeArnT>(value)); return *this;}
153
155
159 inline const Aws::Vector<Sheet>& GetSheets() const { return m_sheets; }
160 inline bool SheetsHasBeenSet() const { return m_sheetsHasBeenSet; }
161 template<typename SheetsT = Aws::Vector<Sheet>>
162 void SetSheets(SheetsT&& value) { m_sheetsHasBeenSet = true; m_sheets = std::forward<SheetsT>(value); }
163 template<typename SheetsT = Aws::Vector<Sheet>>
164 DashboardVersion& WithSheets(SheetsT&& value) { SetSheets(std::forward<SheetsT>(value)); return *this;}
165 template<typename SheetsT = Sheet>
166 DashboardVersion& AddSheets(SheetsT&& value) { m_sheetsHasBeenSet = true; m_sheets.emplace_back(std::forward<SheetsT>(value)); return *this; }
168 private:
169
170 Aws::Utils::DateTime m_createdTime{};
171 bool m_createdTimeHasBeenSet = false;
172
174 bool m_errorsHasBeenSet = false;
175
176 long long m_versionNumber{0};
177 bool m_versionNumberHasBeenSet = false;
178
180 bool m_statusHasBeenSet = false;
181
182 Aws::String m_arn;
183 bool m_arnHasBeenSet = false;
184
185 Aws::String m_sourceEntityArn;
186 bool m_sourceEntityArnHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_dataSetArns;
189 bool m_dataSetArnsHasBeenSet = false;
190
191 Aws::String m_description;
192 bool m_descriptionHasBeenSet = false;
193
194 Aws::String m_themeArn;
195 bool m_themeArnHasBeenSet = false;
196
197 Aws::Vector<Sheet> m_sheets;
198 bool m_sheetsHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace QuickSight
203} // 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