AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ThemeVersion.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/quicksight/model/ThemeConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/quicksight/model/ResourceStatus.h>
13#include <aws/quicksight/model/ThemeError.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 ThemeVersion() = default;
40 AWS_QUICKSIGHT_API ThemeVersion(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QUICKSIGHT_API ThemeVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline long long GetVersionNumber() const { return m_versionNumber; }
50 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
51 inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
52 inline ThemeVersion& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
63 template<typename ArnT = Aws::String>
64 ThemeVersion& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 ThemeVersion& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
84 inline const Aws::String& GetBaseThemeId() const { return m_baseThemeId; }
85 inline bool BaseThemeIdHasBeenSet() const { return m_baseThemeIdHasBeenSet; }
86 template<typename BaseThemeIdT = Aws::String>
87 void SetBaseThemeId(BaseThemeIdT&& value) { m_baseThemeIdHasBeenSet = true; m_baseThemeId = std::forward<BaseThemeIdT>(value); }
88 template<typename BaseThemeIdT = Aws::String>
89 ThemeVersion& WithBaseThemeId(BaseThemeIdT&& value) { SetBaseThemeId(std::forward<BaseThemeIdT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
97 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
98 template<typename CreatedTimeT = Aws::Utils::DateTime>
99 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
100 template<typename CreatedTimeT = Aws::Utils::DateTime>
101 ThemeVersion& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
103
105
108 inline const ThemeConfiguration& GetConfiguration() const { return m_configuration; }
109 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
110 template<typename ConfigurationT = ThemeConfiguration>
111 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
112 template<typename ConfigurationT = ThemeConfiguration>
113 ThemeVersion& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
115
117
120 inline const Aws::Vector<ThemeError>& GetErrors() const { return m_errors; }
121 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
122 template<typename ErrorsT = Aws::Vector<ThemeError>>
123 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
124 template<typename ErrorsT = Aws::Vector<ThemeError>>
125 ThemeVersion& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
126 template<typename ErrorsT = ThemeError>
127 ThemeVersion& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
129
131
134 inline ResourceStatus GetStatus() const { return m_status; }
135 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
136 inline void SetStatus(ResourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
137 inline ThemeVersion& WithStatus(ResourceStatus value) { SetStatus(value); return *this;}
139 private:
140
141 long long m_versionNumber{0};
142 bool m_versionNumberHasBeenSet = false;
143
144 Aws::String m_arn;
145 bool m_arnHasBeenSet = false;
146
147 Aws::String m_description;
148 bool m_descriptionHasBeenSet = false;
149
150 Aws::String m_baseThemeId;
151 bool m_baseThemeIdHasBeenSet = false;
152
153 Aws::Utils::DateTime m_createdTime{};
154 bool m_createdTimeHasBeenSet = false;
155
156 ThemeConfiguration m_configuration;
157 bool m_configurationHasBeenSet = false;
158
160 bool m_errorsHasBeenSet = false;
161
163 bool m_statusHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace QuickSight
168} // 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