AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename CreatedTimeT = Aws::Utils::DateTime>
53 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
54 template<typename CreatedTimeT = Aws::Utils::DateTime>
55 TemplateVersion& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(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 template<typename ErrorsT = Aws::Vector<TemplateError>>
65 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
66 template<typename ErrorsT = Aws::Vector<TemplateError>>
67 TemplateVersion& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
68 template<typename ErrorsT = TemplateError>
69 TemplateVersion& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(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 ResourceStatus GetStatus() const { return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(ResourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
95 inline TemplateVersion& WithStatus(ResourceStatus value) { SetStatus(value); return *this;}
97
99
104 inline const Aws::Vector<DataSetConfiguration>& GetDataSetConfigurations() const { return m_dataSetConfigurations; }
105 inline bool DataSetConfigurationsHasBeenSet() const { return m_dataSetConfigurationsHasBeenSet; }
106 template<typename DataSetConfigurationsT = Aws::Vector<DataSetConfiguration>>
107 void SetDataSetConfigurations(DataSetConfigurationsT&& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations = std::forward<DataSetConfigurationsT>(value); }
108 template<typename DataSetConfigurationsT = Aws::Vector<DataSetConfiguration>>
109 TemplateVersion& WithDataSetConfigurations(DataSetConfigurationsT&& value) { SetDataSetConfigurations(std::forward<DataSetConfigurationsT>(value)); return *this;}
110 template<typename DataSetConfigurationsT = DataSetConfiguration>
111 TemplateVersion& AddDataSetConfigurations(DataSetConfigurationsT&& value) { m_dataSetConfigurationsHasBeenSet = true; m_dataSetConfigurations.emplace_back(std::forward<DataSetConfigurationsT>(value)); return *this; }
113
115
118 inline const Aws::String& GetDescription() const { return m_description; }
119 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
120 template<typename DescriptionT = Aws::String>
121 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
122 template<typename DescriptionT = Aws::String>
123 TemplateVersion& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
125
127
131 inline const Aws::String& GetSourceEntityArn() const { return m_sourceEntityArn; }
132 inline bool SourceEntityArnHasBeenSet() const { return m_sourceEntityArnHasBeenSet; }
133 template<typename SourceEntityArnT = Aws::String>
134 void SetSourceEntityArn(SourceEntityArnT&& value) { m_sourceEntityArnHasBeenSet = true; m_sourceEntityArn = std::forward<SourceEntityArnT>(value); }
135 template<typename SourceEntityArnT = Aws::String>
136 TemplateVersion& WithSourceEntityArn(SourceEntityArnT&& value) { SetSourceEntityArn(std::forward<SourceEntityArnT>(value)); return *this;}
138
140
143 inline const Aws::String& GetThemeArn() const { return m_themeArn; }
144 inline bool ThemeArnHasBeenSet() const { return m_themeArnHasBeenSet; }
145 template<typename ThemeArnT = Aws::String>
146 void SetThemeArn(ThemeArnT&& value) { m_themeArnHasBeenSet = true; m_themeArn = std::forward<ThemeArnT>(value); }
147 template<typename ThemeArnT = Aws::String>
148 TemplateVersion& WithThemeArn(ThemeArnT&& value) { SetThemeArn(std::forward<ThemeArnT>(value)); return *this;}
150
152
156 inline const Aws::Vector<Sheet>& GetSheets() const { return m_sheets; }
157 inline bool SheetsHasBeenSet() const { return m_sheetsHasBeenSet; }
158 template<typename SheetsT = Aws::Vector<Sheet>>
159 void SetSheets(SheetsT&& value) { m_sheetsHasBeenSet = true; m_sheets = std::forward<SheetsT>(value); }
160 template<typename SheetsT = Aws::Vector<Sheet>>
161 TemplateVersion& WithSheets(SheetsT&& value) { SetSheets(std::forward<SheetsT>(value)); return *this;}
162 template<typename SheetsT = Sheet>
163 TemplateVersion& AddSheets(SheetsT&& value) { m_sheetsHasBeenSet = true; m_sheets.emplace_back(std::forward<SheetsT>(value)); return *this; }
165 private:
166
167 Aws::Utils::DateTime m_createdTime{};
168 bool m_createdTimeHasBeenSet = false;
169
171 bool m_errorsHasBeenSet = false;
172
173 long long m_versionNumber{0};
174 bool m_versionNumberHasBeenSet = false;
175
177 bool m_statusHasBeenSet = false;
178
179 Aws::Vector<DataSetConfiguration> m_dataSetConfigurations;
180 bool m_dataSetConfigurationsHasBeenSet = false;
181
182 Aws::String m_description;
183 bool m_descriptionHasBeenSet = false;
184
185 Aws::String m_sourceEntityArn;
186 bool m_sourceEntityArnHasBeenSet = false;
187
188 Aws::String m_themeArn;
189 bool m_themeArnHasBeenSet = false;
190
191 Aws::Vector<Sheet> m_sheets;
192 bool m_sheetsHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace QuickSight
197} // namespace Aws
void SetSourceEntityArn(SourceEntityArnT &&value)
void SetDataSetConfigurations(DataSetConfigurationsT &&value)
TemplateVersion & WithErrors(ErrorsT &&value)
AWS_QUICKSIGHT_API TemplateVersion(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTime(CreatedTimeT &&value)
TemplateVersion & WithDataSetConfigurations(DataSetConfigurationsT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::String & GetSourceEntityArn() const
TemplateVersion & AddErrors(ErrorsT &&value)
void SetStatus(ResourceStatus value)
const Aws::Vector< DataSetConfiguration > & GetDataSetConfigurations() const
const Aws::Vector< TemplateError > & GetErrors() const
TemplateVersion & WithVersionNumber(long long value)
TemplateVersion & AddSheets(SheetsT &&value)
TemplateVersion & WithSourceEntityArn(SourceEntityArnT &&value)
TemplateVersion & WithCreatedTime(CreatedTimeT &&value)
const Aws::String & GetThemeArn() const
const Aws::Vector< Sheet > & GetSheets() const
AWS_QUICKSIGHT_API TemplateVersion()=default
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TemplateVersion & AddDataSetConfigurations(DataSetConfigurationsT &&value)
TemplateVersion & WithStatus(ResourceStatus value)
AWS_QUICKSIGHT_API TemplateVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
TemplateVersion & WithThemeArn(ThemeArnT &&value)
TemplateVersion & WithSheets(SheetsT &&value)
TemplateVersion & WithDescription(DescriptionT &&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