AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ThemeVersion.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/ResourceStatus.h>
12#include <aws/quicksight/model/ThemeConfiguration.h>
13#include <aws/quicksight/model/ThemeError.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 ThemeVersion() = default;
35 AWS_QUICKSIGHT_API ThemeVersion(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API ThemeVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline long long GetVersionNumber() const { return m_versionNumber; }
44 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
45 inline void SetVersionNumber(long long value) {
46 m_versionNumberHasBeenSet = true;
47 m_versionNumber = value;
48 }
49 inline ThemeVersion& WithVersionNumber(long long value) {
50 SetVersionNumber(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 ThemeVersion& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 ThemeVersion& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetBaseThemeId() const { return m_baseThemeId; }
97 inline bool BaseThemeIdHasBeenSet() const { return m_baseThemeIdHasBeenSet; }
98 template <typename BaseThemeIdT = Aws::String>
99 void SetBaseThemeId(BaseThemeIdT&& value) {
100 m_baseThemeIdHasBeenSet = true;
101 m_baseThemeId = std::forward<BaseThemeIdT>(value);
102 }
103 template <typename BaseThemeIdT = Aws::String>
104 ThemeVersion& WithBaseThemeId(BaseThemeIdT&& value) {
105 SetBaseThemeId(std::forward<BaseThemeIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
115 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
116 template <typename CreatedTimeT = Aws::Utils::DateTime>
117 void SetCreatedTime(CreatedTimeT&& value) {
118 m_createdTimeHasBeenSet = true;
119 m_createdTime = std::forward<CreatedTimeT>(value);
120 }
121 template <typename CreatedTimeT = Aws::Utils::DateTime>
122 ThemeVersion& WithCreatedTime(CreatedTimeT&& value) {
123 SetCreatedTime(std::forward<CreatedTimeT>(value));
124 return *this;
125 }
127
129
132 inline const ThemeConfiguration& GetConfiguration() const { return m_configuration; }
133 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
134 template <typename ConfigurationT = ThemeConfiguration>
135 void SetConfiguration(ConfigurationT&& value) {
136 m_configurationHasBeenSet = true;
137 m_configuration = std::forward<ConfigurationT>(value);
138 }
139 template <typename ConfigurationT = ThemeConfiguration>
140 ThemeVersion& WithConfiguration(ConfigurationT&& value) {
141 SetConfiguration(std::forward<ConfigurationT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Vector<ThemeError>& GetErrors() const { return m_errors; }
151 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
152 template <typename ErrorsT = Aws::Vector<ThemeError>>
153 void SetErrors(ErrorsT&& value) {
154 m_errorsHasBeenSet = true;
155 m_errors = std::forward<ErrorsT>(value);
156 }
157 template <typename ErrorsT = Aws::Vector<ThemeError>>
158 ThemeVersion& WithErrors(ErrorsT&& value) {
159 SetErrors(std::forward<ErrorsT>(value));
160 return *this;
161 }
162 template <typename ErrorsT = ThemeError>
163 ThemeVersion& AddErrors(ErrorsT&& value) {
164 m_errorsHasBeenSet = true;
165 m_errors.emplace_back(std::forward<ErrorsT>(value));
166 return *this;
167 }
169
171
174 inline ResourceStatus GetStatus() const { return m_status; }
175 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
176 inline void SetStatus(ResourceStatus value) {
177 m_statusHasBeenSet = true;
178 m_status = value;
179 }
181 SetStatus(value);
182 return *this;
183 }
185 private:
186 long long m_versionNumber{0};
187
188 Aws::String m_arn;
189
190 Aws::String m_description;
191
192 Aws::String m_baseThemeId;
193
194 Aws::Utils::DateTime m_createdTime{};
195
196 ThemeConfiguration m_configuration;
197
199
201 bool m_versionNumberHasBeenSet = false;
202 bool m_arnHasBeenSet = false;
203 bool m_descriptionHasBeenSet = false;
204 bool m_baseThemeIdHasBeenSet = false;
205 bool m_createdTimeHasBeenSet = false;
206 bool m_configurationHasBeenSet = false;
207 bool m_errorsHasBeenSet = false;
208 bool m_statusHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace QuickSight
213} // namespace Aws
const Aws::String & GetArn() const
ThemeVersion & WithConfiguration(ConfigurationT &&value)
const Aws::String & GetBaseThemeId() const
ThemeVersion & WithArn(ArnT &&value)
ThemeVersion & WithErrors(ErrorsT &&value)
const ThemeConfiguration & GetConfiguration() const
void SetVersionNumber(long long value)
ThemeVersion & WithDescription(DescriptionT &&value)
void SetCreatedTime(CreatedTimeT &&value)
void SetBaseThemeId(BaseThemeIdT &&value)
AWS_QUICKSIGHT_API ThemeVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
ThemeVersion & WithVersionNumber(long long value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
ThemeVersion & AddErrors(ErrorsT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_QUICKSIGHT_API ThemeVersion(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ThemeError > & GetErrors() const
AWS_QUICKSIGHT_API ThemeVersion()=default
ThemeVersion & WithBaseThemeId(BaseThemeIdT &&value)
void SetDescription(DescriptionT &&value)
void SetStatus(ResourceStatus value)
ThemeVersion & WithCreatedTime(CreatedTimeT &&value)
ThemeVersion & WithStatus(ResourceStatus value)
void SetConfiguration(ConfigurationT &&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