AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReportDetail.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 ReportDetail() = default;
34 AWS_ARTIFACT_API ReportDetail(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 ReportDetail& 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 ReportDetail& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 ReportDetail& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetPeriodStart() const { return m_periodStart; }
97 inline bool PeriodStartHasBeenSet() const { return m_periodStartHasBeenSet; }
98 template <typename PeriodStartT = Aws::Utils::DateTime>
99 void SetPeriodStart(PeriodStartT&& value) {
100 m_periodStartHasBeenSet = true;
101 m_periodStart = std::forward<PeriodStartT>(value);
102 }
103 template <typename PeriodStartT = Aws::Utils::DateTime>
104 ReportDetail& WithPeriodStart(PeriodStartT&& value) {
105 SetPeriodStart(std::forward<PeriodStartT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetPeriodEnd() const { return m_periodEnd; }
115 inline bool PeriodEndHasBeenSet() const { return m_periodEndHasBeenSet; }
116 template <typename PeriodEndT = Aws::Utils::DateTime>
117 void SetPeriodEnd(PeriodEndT&& value) {
118 m_periodEndHasBeenSet = true;
119 m_periodEnd = std::forward<PeriodEndT>(value);
120 }
121 template <typename PeriodEndT = Aws::Utils::DateTime>
122 ReportDetail& WithPeriodEnd(PeriodEndT&& value) {
123 SetPeriodEnd(std::forward<PeriodEndT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
133 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
134 template <typename CreatedAtT = Aws::Utils::DateTime>
135 void SetCreatedAt(CreatedAtT&& value) {
136 m_createdAtHasBeenSet = true;
137 m_createdAt = std::forward<CreatedAtT>(value);
138 }
139 template <typename CreatedAtT = Aws::Utils::DateTime>
140 ReportDetail& WithCreatedAt(CreatedAtT&& value) {
141 SetCreatedAt(std::forward<CreatedAtT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
151 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
152 template <typename LastModifiedAtT = Aws::Utils::DateTime>
153 void SetLastModifiedAt(LastModifiedAtT&& value) {
154 m_lastModifiedAtHasBeenSet = true;
155 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
156 }
157 template <typename LastModifiedAtT = Aws::Utils::DateTime>
158 ReportDetail& WithLastModifiedAt(LastModifiedAtT&& value) {
159 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetDeletedAt() const { return m_deletedAt; }
169 inline bool DeletedAtHasBeenSet() const { return m_deletedAtHasBeenSet; }
170 template <typename DeletedAtT = Aws::Utils::DateTime>
171 void SetDeletedAt(DeletedAtT&& value) {
172 m_deletedAtHasBeenSet = true;
173 m_deletedAt = std::forward<DeletedAtT>(value);
174 }
175 template <typename DeletedAtT = Aws::Utils::DateTime>
176 ReportDetail& WithDeletedAt(DeletedAtT&& value) {
177 SetDeletedAt(std::forward<DeletedAtT>(value));
178 return *this;
179 }
181
183
186 inline PublishedState GetState() const { return m_state; }
187 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
188 inline void SetState(PublishedState value) {
189 m_stateHasBeenSet = true;
190 m_state = value;
191 }
193 SetState(value);
194 return *this;
195 }
197
199
202 inline const Aws::String& GetArn() const { return m_arn; }
203 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
204 template <typename ArnT = Aws::String>
205 void SetArn(ArnT&& value) {
206 m_arnHasBeenSet = true;
207 m_arn = std::forward<ArnT>(value);
208 }
209 template <typename ArnT = Aws::String>
210 ReportDetail& WithArn(ArnT&& value) {
211 SetArn(std::forward<ArnT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetSeries() const { return m_series; }
221 inline bool SeriesHasBeenSet() const { return m_seriesHasBeenSet; }
222 template <typename SeriesT = Aws::String>
223 void SetSeries(SeriesT&& value) {
224 m_seriesHasBeenSet = true;
225 m_series = std::forward<SeriesT>(value);
226 }
227 template <typename SeriesT = Aws::String>
228 ReportDetail& WithSeries(SeriesT&& value) {
229 SetSeries(std::forward<SeriesT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::String& GetCategory() const { return m_category; }
239 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
240 template <typename CategoryT = Aws::String>
241 void SetCategory(CategoryT&& value) {
242 m_categoryHasBeenSet = true;
243 m_category = std::forward<CategoryT>(value);
244 }
245 template <typename CategoryT = Aws::String>
246 ReportDetail& WithCategory(CategoryT&& value) {
247 SetCategory(std::forward<CategoryT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetCompanyName() const { return m_companyName; }
257 inline bool CompanyNameHasBeenSet() const { return m_companyNameHasBeenSet; }
258 template <typename CompanyNameT = Aws::String>
259 void SetCompanyName(CompanyNameT&& value) {
260 m_companyNameHasBeenSet = true;
261 m_companyName = std::forward<CompanyNameT>(value);
262 }
263 template <typename CompanyNameT = Aws::String>
264 ReportDetail& WithCompanyName(CompanyNameT&& value) {
265 SetCompanyName(std::forward<CompanyNameT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetProductName() const { return m_productName; }
275 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
276 template <typename ProductNameT = Aws::String>
277 void SetProductName(ProductNameT&& value) {
278 m_productNameHasBeenSet = true;
279 m_productName = std::forward<ProductNameT>(value);
280 }
281 template <typename ProductNameT = Aws::String>
282 ReportDetail& WithProductName(ProductNameT&& value) {
283 SetProductName(std::forward<ProductNameT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetTermArn() const { return m_termArn; }
293 inline bool TermArnHasBeenSet() const { return m_termArnHasBeenSet; }
294 template <typename TermArnT = Aws::String>
295 void SetTermArn(TermArnT&& value) {
296 m_termArnHasBeenSet = true;
297 m_termArn = std::forward<TermArnT>(value);
298 }
299 template <typename TermArnT = Aws::String>
300 ReportDetail& WithTermArn(TermArnT&& value) {
301 SetTermArn(std::forward<TermArnT>(value));
302 return *this;
303 }
305
307
310 inline long long GetVersion() const { return m_version; }
311 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
312 inline void SetVersion(long long value) {
313 m_versionHasBeenSet = true;
314 m_version = value;
315 }
316 inline ReportDetail& WithVersion(long long value) {
317 SetVersion(value);
318 return *this;
319 }
321
323
326 inline AcceptanceType GetAcceptanceType() const { return m_acceptanceType; }
327 inline bool AcceptanceTypeHasBeenSet() const { return m_acceptanceTypeHasBeenSet; }
329 m_acceptanceTypeHasBeenSet = true;
330 m_acceptanceType = value;
331 }
333 SetAcceptanceType(value);
334 return *this;
335 }
337
339
342 inline long long GetSequenceNumber() const { return m_sequenceNumber; }
343 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
344 inline void SetSequenceNumber(long long value) {
345 m_sequenceNumberHasBeenSet = true;
346 m_sequenceNumber = value;
347 }
348 inline ReportDetail& WithSequenceNumber(long long value) {
349 SetSequenceNumber(value);
350 return *this;
351 }
353
355
358 inline UploadState GetUploadState() const { return m_uploadState; }
359 inline bool UploadStateHasBeenSet() const { return m_uploadStateHasBeenSet; }
360 inline void SetUploadState(UploadState value) {
361 m_uploadStateHasBeenSet = true;
362 m_uploadState = value;
363 }
365 SetUploadState(value);
366 return *this;
367 }
369
371
374 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
375 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
376 template <typename StatusMessageT = Aws::String>
377 void SetStatusMessage(StatusMessageT&& value) {
378 m_statusMessageHasBeenSet = true;
379 m_statusMessage = std::forward<StatusMessageT>(value);
380 }
381 template <typename StatusMessageT = Aws::String>
382 ReportDetail& WithStatusMessage(StatusMessageT&& value) {
383 SetStatusMessage(std::forward<StatusMessageT>(value));
384 return *this;
385 }
387 private:
388 Aws::String m_id;
389
390 Aws::String m_name;
391
392 Aws::String m_description;
393
394 Aws::Utils::DateTime m_periodStart{};
395
396 Aws::Utils::DateTime m_periodEnd{};
397
398 Aws::Utils::DateTime m_createdAt{};
399
400 Aws::Utils::DateTime m_lastModifiedAt{};
401
402 Aws::Utils::DateTime m_deletedAt{};
403
405
406 Aws::String m_arn;
407
408 Aws::String m_series;
409
410 Aws::String m_category;
411
412 Aws::String m_companyName;
413
414 Aws::String m_productName;
415
416 Aws::String m_termArn;
417
418 long long m_version{0};
419
420 AcceptanceType m_acceptanceType{AcceptanceType::NOT_SET};
421
422 long long m_sequenceNumber{0};
423
424 UploadState m_uploadState{UploadState::NOT_SET};
425
426 Aws::String m_statusMessage;
427 bool m_idHasBeenSet = false;
428 bool m_nameHasBeenSet = false;
429 bool m_descriptionHasBeenSet = false;
430 bool m_periodStartHasBeenSet = false;
431 bool m_periodEndHasBeenSet = false;
432 bool m_createdAtHasBeenSet = false;
433 bool m_lastModifiedAtHasBeenSet = false;
434 bool m_deletedAtHasBeenSet = false;
435 bool m_stateHasBeenSet = false;
436 bool m_arnHasBeenSet = false;
437 bool m_seriesHasBeenSet = false;
438 bool m_categoryHasBeenSet = false;
439 bool m_companyNameHasBeenSet = false;
440 bool m_productNameHasBeenSet = false;
441 bool m_termArnHasBeenSet = false;
442 bool m_versionHasBeenSet = false;
443 bool m_acceptanceTypeHasBeenSet = false;
444 bool m_sequenceNumberHasBeenSet = false;
445 bool m_uploadStateHasBeenSet = false;
446 bool m_statusMessageHasBeenSet = false;
447};
448
449} // namespace Model
450} // namespace Artifact
451} // namespace Aws
void SetSeries(SeriesT &&value)
void SetDeletedAt(DeletedAtT &&value)
void SetPeriodEnd(PeriodEndT &&value)
void SetAcceptanceType(AcceptanceType value)
const Aws::String & GetSeries() const
const Aws::String & GetArn() const
const Aws::Utils::DateTime & GetCreatedAt() const
ReportDetail & WithVersion(long long value)
ReportDetail & WithProductName(ProductNameT &&value)
void SetSequenceNumber(long long value)
void SetVersion(long long value)
AWS_ARTIFACT_API ReportDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetPeriodEnd() const
void SetCategory(CategoryT &&value)
ReportDetail & WithCompanyName(CompanyNameT &&value)
ReportDetail & WithCreatedAt(CreatedAtT &&value)
ReportDetail & WithSequenceNumber(long long value)
PublishedState GetState() const
void SetUploadState(UploadState value)
ReportDetail & WithCategory(CategoryT &&value)
ReportDetail & WithAcceptanceType(AcceptanceType value)
const Aws::String & GetTermArn() const
void SetStatusMessage(StatusMessageT &&value)
AcceptanceType GetAcceptanceType() const
const Aws::String & GetDescription() const
AWS_ARTIFACT_API ReportDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetPeriodStart() const
void SetCompanyName(CompanyNameT &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
ReportDetail & WithDescription(DescriptionT &&value)
ReportDetail & WithSeries(SeriesT &&value)
ReportDetail & WithStatusMessage(StatusMessageT &&value)
const Aws::String & GetCategory() const
void SetLastModifiedAt(LastModifiedAtT &&value)
const Aws::String & GetProductName() const
ReportDetail & WithUploadState(UploadState value)
AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
ReportDetail & WithLastModifiedAt(LastModifiedAtT &&value)
ReportDetail & WithId(IdT &&value)
const Aws::Utils::DateTime & GetDeletedAt() const
void SetProductName(ProductNameT &&value)
ReportDetail & WithTermArn(TermArnT &&value)
const Aws::String & GetName() const
AWS_ARTIFACT_API ReportDetail()=default
void SetState(PublishedState value)
ReportDetail & WithPeriodEnd(PeriodEndT &&value)
void SetDescription(DescriptionT &&value)
ReportDetail & WithArn(ArnT &&value)
const Aws::String & GetCompanyName() const
void SetCreatedAt(CreatedAtT &&value)
ReportDetail & WithPeriodStart(PeriodStartT &&value)
void SetTermArn(TermArnT &&value)
ReportDetail & WithName(NameT &&value)
const Aws::String & GetStatusMessage() const
void SetPeriodStart(PeriodStartT &&value)
ReportDetail & WithState(PublishedState value)
const Aws::String & GetId() const
ReportDetail & WithDeletedAt(DeletedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue