AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TemplateVersion.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/TemplateError.h>
13#include <aws/quicksight/model/DataSetConfiguration.h>
14#include <aws/quicksight/model/Sheet.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace QuickSight
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_QUICKSIGHT_API TemplateVersion();
41 AWS_QUICKSIGHT_API TemplateVersion(Aws::Utils::Json::JsonView jsonValue);
43 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
51 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
52 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
53 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
54 inline TemplateVersion& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
55 inline TemplateVersion& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
57
59
62 inline const Aws::Vector<TemplateError>& GetErrors() const{ return m_errors; }
63 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
64 inline void SetErrors(const Aws::Vector<TemplateError>& value) { m_errorsHasBeenSet = true; m_errors = value; }
65 inline void SetErrors(Aws::Vector<TemplateError>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
66 inline TemplateVersion& WithErrors(const Aws::Vector<TemplateError>& value) { SetErrors(value); return *this;}
67 inline TemplateVersion& WithErrors(Aws::Vector<TemplateError>&& value) { SetErrors(std::move(value)); return *this;}
68 inline TemplateVersion& AddErrors(const TemplateError& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
69 inline TemplateVersion& AddErrors(TemplateError&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; }
71
73
76 inline long long GetVersionNumber() const{ return m_versionNumber; }
77 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
78 inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
79 inline TemplateVersion& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
81
83
92 inline const ResourceStatus& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const ResourceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(ResourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline TemplateVersion& WithStatus(const ResourceStatus& value) { SetStatus(value); return *this;}
97 inline TemplateVersion& WithStatus(ResourceStatus&& value) { SetStatus(std::move(value)); return *this;}
99
101
106 inline const Aws::Vector<DataSetConfiguration>& GetDataSetConfigurations() const{ return m_dataSetConfigurations; }
107 inline bool DataSetConfigurationsHasBeenSet() const { return m_dataSetConfigurationsHasBeenSet; }
108 inline void SetDataSetConfigurations(const Aws::Vector<DataSetConfiguration>& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations = value; }
109 inline void SetDataSetConfigurations(Aws::Vector<DataSetConfiguration>&& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations = std::move(value); }
112 inline TemplateVersion& AddDataSetConfigurations(const DataSetConfiguration& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations.push_back(value); return *this; }
113 inline TemplateVersion& AddDataSetConfigurations(DataSetConfiguration&& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations.push_back(std::move(value)); return *this; }
115
117
120 inline const Aws::String& GetDescription() const{ return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
123 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
124 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
125 inline TemplateVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
126 inline TemplateVersion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
127 inline TemplateVersion& WithDescription(const char* value) { SetDescription(value); return *this;}
129
131
135 inline const Aws::String& GetSourceEntityArn() const{ return m_sourceEntityArn; }
136 inline bool SourceEntityArnHasBeenSet() const { return m_sourceEntityArnHasBeenSet; }
137 inline void SetSourceEntityArn(const Aws::String& value) { m_sourceEntityArnHasBeenSet = true; m_sourceEntityArn = value; }
138 inline void SetSourceEntityArn(Aws::String&& value) { m_sourceEntityArnHasBeenSet = true; m_sourceEntityArn = std::move(value); }
139 inline void SetSourceEntityArn(const char* value) { m_sourceEntityArnHasBeenSet = true; m_sourceEntityArn.assign(value); }
140 inline TemplateVersion& WithSourceEntityArn(const Aws::String& value) { SetSourceEntityArn(value); return *this;}
141 inline TemplateVersion& WithSourceEntityArn(Aws::String&& value) { SetSourceEntityArn(std::move(value)); return *this;}
142 inline TemplateVersion& WithSourceEntityArn(const char* value) { SetSourceEntityArn(value); return *this;}
144
146
149 inline const Aws::String& GetThemeArn() const{ return m_themeArn; }
150 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
151 inline void SetThemeArn(const Aws::String& value) { m_themeArnHasBeenSet = true; m_themeArn = value; }
152 inline void SetThemeArn(Aws::String&& value) { m_themeArnHasBeenSet = true; m_themeArn = std::move(value); }
153 inline void SetThemeArn(const char* value) { m_themeArnHasBeenSet = true; m_themeArn.assign(value); }
154 inline TemplateVersion& WithThemeArn(const Aws::String& value) { SetThemeArn(value); return *this;}
155 inline TemplateVersion& WithThemeArn(Aws::String&& value) { SetThemeArn(std::move(value)); return *this;}
156 inline TemplateVersion& WithThemeArn(const char* value) { SetThemeArn(value); return *this;}
158
160
164 inline const Aws::Vector<Sheet>& GetSheets() const{ return m_sheets; }
165 inline bool SheetsHasBeenSet() const { return m_sheetsHasBeenSet; }
166 inline void SetSheets(const Aws::Vector<Sheet>& value) { m_sheetsHasBeenSet = true; m_sheets = value; }
167 inline void SetSheets(Aws::Vector<Sheet>&& value) { m_sheetsHasBeenSet = true; m_sheets = std::move(value); }
168 inline TemplateVersion& WithSheets(const Aws::Vector<Sheet>& value) { SetSheets(value); return *this;}
169 inline TemplateVersion& WithSheets(Aws::Vector<Sheet>&& value) { SetSheets(std::move(value)); return *this;}
170 inline TemplateVersion& AddSheets(const Sheet& value) { m_sheetsHasBeenSet = true; m_sheets.push_back(value); return *this; }
171 inline TemplateVersion& AddSheets(Sheet&& value) { m_sheetsHasBeenSet = true; m_sheets.push_back(std::move(value)); return *this; }
173 private:
174
175 Aws::Utils::DateTime m_createdTime;
176 bool m_createdTimeHasBeenSet = false;
177
179 bool m_errorsHasBeenSet = false;
180
181 long long m_versionNumber;
182 bool m_versionNumberHasBeenSet = false;
183
184 ResourceStatus m_status;
185 bool m_statusHasBeenSet = false;
186
187 Aws::Vector<DataSetConfiguration> m_dataSetConfigurations;
188 bool m_dataSetConfigurationsHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
193 Aws::String m_sourceEntityArn;
194 bool m_sourceEntityArnHasBeenSet = false;
195
196 Aws::String m_themeArn;
197 bool m_themeArnHasBeenSet = false;
198
199 Aws::Vector<Sheet> m_sheets;
200 bool m_sheetsHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace QuickSight
205} // namespace Aws
void SetDataSetConfigurations(Aws::Vector< DataSetConfiguration > &&value)
void SetSourceEntityArn(Aws::String &&value)
TemplateVersion & WithSheets(const Aws::Vector< Sheet > &value)
AWS_QUICKSIGHT_API TemplateVersion(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
TemplateVersion & WithErrors(const Aws::Vector< TemplateError > &value)
const Aws::String & GetSourceEntityArn() const
TemplateVersion & AddSheets(Sheet &&value)
const Aws::Vector< DataSetConfiguration > & GetDataSetConfigurations() const
const Aws::Vector< TemplateError > & GetErrors() const
void SetDescription(const Aws::String &value)
TemplateVersion & AddSheets(const Sheet &value)
void SetSheets(Aws::Vector< Sheet > &&value)
TemplateVersion & WithVersionNumber(long long value)
void SetStatus(ResourceStatus &&value)
TemplateVersion & WithThemeArn(const Aws::String &value)
const ResourceStatus & GetStatus() const
void SetDescription(Aws::String &&value)
void SetSourceEntityArn(const Aws::String &value)
TemplateVersion & WithSourceEntityArn(const Aws::String &value)
TemplateVersion & WithCreatedTime(const Aws::Utils::DateTime &value)
void SetStatus(const ResourceStatus &value)
void SetErrors(Aws::Vector< TemplateError > &&value)
const Aws::String & GetThemeArn() const
void SetCreatedTime(const Aws::Utils::DateTime &value)
TemplateVersion & AddErrors(const TemplateError &value)
void SetSheets(const Aws::Vector< Sheet > &value)
const Aws::Vector< Sheet > & GetSheets() const
TemplateVersion & WithDataSetConfigurations(const Aws::Vector< DataSetConfiguration > &value)
void SetDataSetConfigurations(const Aws::Vector< DataSetConfiguration > &value)
TemplateVersion & AddDataSetConfigurations(DataSetConfiguration &&value)
void SetThemeArn(const Aws::String &value)
TemplateVersion & WithCreatedTime(Aws::Utils::DateTime &&value)
const Aws::String & GetDescription() const
TemplateVersion & WithStatus(const ResourceStatus &value)
TemplateVersion & WithErrors(Aws::Vector< TemplateError > &&value)
TemplateVersion & WithSheets(Aws::Vector< Sheet > &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TemplateVersion & WithThemeArn(const char *value)
TemplateVersion & WithSourceEntityArn(const char *value)
TemplateVersion & WithSourceEntityArn(Aws::String &&value)
AWS_QUICKSIGHT_API TemplateVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrors(const Aws::Vector< TemplateError > &value)
TemplateVersion & WithThemeArn(Aws::String &&value)
void SetCreatedTime(Aws::Utils::DateTime &&value)
TemplateVersion & AddDataSetConfigurations(const DataSetConfiguration &value)
TemplateVersion & WithDescription(Aws::String &&value)
TemplateVersion & WithDataSetConfigurations(Aws::Vector< DataSetConfiguration > &&value)
TemplateVersion & WithDescription(const Aws::String &value)
TemplateVersion & AddErrors(TemplateError &&value)
TemplateVersion & WithStatus(ResourceStatus &&value)
TemplateVersion & WithDescription(const char *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