AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ReportSummary.h
1
6#pragma once
7#include <aws/artifact/Artifact_EXPORTS.h>
8#include <aws/artifact/model/AcceptanceType.h>
9#include <aws/artifact/model/PublishedState.h>
10#include <aws/artifact/model/UploadState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Artifact {
24namespace Model {
25
32 public:
33 AWS_ARTIFACT_API ReportSummary() = default;
34 AWS_ARTIFACT_API ReportSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 ReportSummary& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 ReportSummary& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline PublishedState GetState() const { return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(PublishedState value) {
81 m_stateHasBeenSet = true;
82 m_state = value;
83 }
85 SetState(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetArn() const { return m_arn; }
95 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
96 template <typename ArnT = Aws::String>
97 void SetArn(ArnT&& value) {
98 m_arnHasBeenSet = true;
99 m_arn = std::forward<ArnT>(value);
100 }
101 template <typename ArnT = Aws::String>
102 ReportSummary& WithArn(ArnT&& value) {
103 SetArn(std::forward<ArnT>(value));
104 return *this;
105 }
107
109
112 inline long long GetVersion() const { return m_version; }
113 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
114 inline void SetVersion(long long value) {
115 m_versionHasBeenSet = true;
116 m_version = value;
117 }
118 inline ReportSummary& WithVersion(long long value) {
119 SetVersion(value);
120 return *this;
121 }
123
125
128 inline UploadState GetUploadState() const { return m_uploadState; }
129 inline bool UploadStateHasBeenSet() const { return m_uploadStateHasBeenSet; }
130 inline void SetUploadState(UploadState value) {
131 m_uploadStateHasBeenSet = true;
132 m_uploadState = value;
133 }
135 SetUploadState(value);
136 return *this;
137 }
139
141
144 inline const Aws::String& GetDescription() const { return m_description; }
145 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
146 template <typename DescriptionT = Aws::String>
147 void SetDescription(DescriptionT&& value) {
148 m_descriptionHasBeenSet = true;
149 m_description = std::forward<DescriptionT>(value);
150 }
151 template <typename DescriptionT = Aws::String>
152 ReportSummary& WithDescription(DescriptionT&& value) {
153 SetDescription(std::forward<DescriptionT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetPeriodStart() const { return m_periodStart; }
163 inline bool PeriodStartHasBeenSet() const { return m_periodStartHasBeenSet; }
164 template <typename PeriodStartT = Aws::Utils::DateTime>
165 void SetPeriodStart(PeriodStartT&& value) {
166 m_periodStartHasBeenSet = true;
167 m_periodStart = std::forward<PeriodStartT>(value);
168 }
169 template <typename PeriodStartT = Aws::Utils::DateTime>
170 ReportSummary& WithPeriodStart(PeriodStartT&& value) {
171 SetPeriodStart(std::forward<PeriodStartT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Utils::DateTime& GetPeriodEnd() const { return m_periodEnd; }
181 inline bool PeriodEndHasBeenSet() const { return m_periodEndHasBeenSet; }
182 template <typename PeriodEndT = Aws::Utils::DateTime>
183 void SetPeriodEnd(PeriodEndT&& value) {
184 m_periodEndHasBeenSet = true;
185 m_periodEnd = std::forward<PeriodEndT>(value);
186 }
187 template <typename PeriodEndT = Aws::Utils::DateTime>
188 ReportSummary& WithPeriodEnd(PeriodEndT&& value) {
189 SetPeriodEnd(std::forward<PeriodEndT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetSeries() const { return m_series; }
199 inline bool SeriesHasBeenSet() const { return m_seriesHasBeenSet; }
200 template <typename SeriesT = Aws::String>
201 void SetSeries(SeriesT&& value) {
202 m_seriesHasBeenSet = true;
203 m_series = std::forward<SeriesT>(value);
204 }
205 template <typename SeriesT = Aws::String>
206 ReportSummary& WithSeries(SeriesT&& value) {
207 SetSeries(std::forward<SeriesT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::String& GetCategory() const { return m_category; }
217 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
218 template <typename CategoryT = Aws::String>
219 void SetCategory(CategoryT&& value) {
220 m_categoryHasBeenSet = true;
221 m_category = std::forward<CategoryT>(value);
222 }
223 template <typename CategoryT = Aws::String>
224 ReportSummary& WithCategory(CategoryT&& value) {
225 SetCategory(std::forward<CategoryT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::String& GetCompanyName() const { return m_companyName; }
235 inline bool CompanyNameHasBeenSet() const { return m_companyNameHasBeenSet; }
236 template <typename CompanyNameT = Aws::String>
237 void SetCompanyName(CompanyNameT&& value) {
238 m_companyNameHasBeenSet = true;
239 m_companyName = std::forward<CompanyNameT>(value);
240 }
241 template <typename CompanyNameT = Aws::String>
242 ReportSummary& WithCompanyName(CompanyNameT&& value) {
243 SetCompanyName(std::forward<CompanyNameT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::String& GetProductName() const { return m_productName; }
253 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
254 template <typename ProductNameT = Aws::String>
255 void SetProductName(ProductNameT&& value) {
256 m_productNameHasBeenSet = true;
257 m_productName = std::forward<ProductNameT>(value);
258 }
259 template <typename ProductNameT = Aws::String>
260 ReportSummary& WithProductName(ProductNameT&& value) {
261 SetProductName(std::forward<ProductNameT>(value));
262 return *this;
263 }
265
267
270 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
271 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
272 template <typename StatusMessageT = Aws::String>
273 void SetStatusMessage(StatusMessageT&& value) {
274 m_statusMessageHasBeenSet = true;
275 m_statusMessage = std::forward<StatusMessageT>(value);
276 }
277 template <typename StatusMessageT = Aws::String>
278 ReportSummary& WithStatusMessage(StatusMessageT&& value) {
279 SetStatusMessage(std::forward<StatusMessageT>(value));
280 return *this;
281 }
283
285
288 inline AcceptanceType GetAcceptanceType() const { return m_acceptanceType; }
289 inline bool AcceptanceTypeHasBeenSet() const { return m_acceptanceTypeHasBeenSet; }
291 m_acceptanceTypeHasBeenSet = true;
292 m_acceptanceType = value;
293 }
295 SetAcceptanceType(value);
296 return *this;
297 }
299 private:
300 Aws::String m_id;
301
302 Aws::String m_name;
303
305
306 Aws::String m_arn;
307
308 long long m_version{0};
309
310 UploadState m_uploadState{UploadState::NOT_SET};
311
312 Aws::String m_description;
313
314 Aws::Utils::DateTime m_periodStart{};
315
316 Aws::Utils::DateTime m_periodEnd{};
317
318 Aws::String m_series;
319
320 Aws::String m_category;
321
322 Aws::String m_companyName;
323
324 Aws::String m_productName;
325
326 Aws::String m_statusMessage;
327
328 AcceptanceType m_acceptanceType{AcceptanceType::NOT_SET};
329 bool m_idHasBeenSet = false;
330 bool m_nameHasBeenSet = false;
331 bool m_stateHasBeenSet = false;
332 bool m_arnHasBeenSet = false;
333 bool m_versionHasBeenSet = false;
334 bool m_uploadStateHasBeenSet = false;
335 bool m_descriptionHasBeenSet = false;
336 bool m_periodStartHasBeenSet = false;
337 bool m_periodEndHasBeenSet = false;
338 bool m_seriesHasBeenSet = false;
339 bool m_categoryHasBeenSet = false;
340 bool m_companyNameHasBeenSet = false;
341 bool m_productNameHasBeenSet = false;
342 bool m_statusMessageHasBeenSet = false;
343 bool m_acceptanceTypeHasBeenSet = false;
344};
345
346} // namespace Model
347} // namespace Artifact
348} // namespace Aws
const Aws::String & GetSeries() const
AWS_ARTIFACT_API ReportSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_ARTIFACT_API ReportSummary()=default
const Aws::Utils::DateTime & GetPeriodStart() const
AWS_ARTIFACT_API ReportSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetPeriodEnd() const
PublishedState GetState() const
ReportSummary & WithUploadState(UploadState value)
const Aws::String & GetName() const
ReportSummary & WithPeriodStart(PeriodStartT &&value)
const Aws::String & GetArn() const
AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCategory() const
ReportSummary & WithPeriodEnd(PeriodEndT &&value)
ReportSummary & WithCategory(CategoryT &&value)
ReportSummary & WithArn(ArnT &&value)
const Aws::String & GetStatusMessage() const
void SetPeriodStart(PeriodStartT &&value)
ReportSummary & WithName(NameT &&value)
ReportSummary & WithAcceptanceType(AcceptanceType value)
ReportSummary & WithSeries(SeriesT &&value)
ReportSummary & WithId(IdT &&value)
ReportSummary & WithDescription(DescriptionT &&value)
ReportSummary & WithState(PublishedState value)
void SetStatusMessage(StatusMessageT &&value)
AcceptanceType GetAcceptanceType() const
const Aws::String & GetProductName() const
void SetState(PublishedState value)
void SetAcceptanceType(AcceptanceType value)
const Aws::String & GetDescription() const
ReportSummary & WithCompanyName(CompanyNameT &&value)
void SetUploadState(UploadState value)
void SetDescription(DescriptionT &&value)
void SetCompanyName(CompanyNameT &&value)
ReportSummary & WithStatusMessage(StatusMessageT &&value)
const Aws::String & GetId() const
void SetProductName(ProductNameT &&value)
const Aws::String & GetCompanyName() const
ReportSummary & WithProductName(ProductNameT &&value)
void SetPeriodEnd(PeriodEndT &&value)
void SetCategory(CategoryT &&value)
ReportSummary & WithVersion(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue