AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageScanFindingsSummary.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/ecr/model/FindingSeverity.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECR
24{
25namespace Model
26{
27
34 {
35 public:
40
41
43
46 inline const Aws::Utils::DateTime& GetImageScanCompletedAt() const{ return m_imageScanCompletedAt; }
47 inline bool ImageScanCompletedAtHasBeenSet() const { return m_imageScanCompletedAtHasBeenSet; }
48 inline void SetImageScanCompletedAt(const Aws::Utils::DateTime& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = value; }
49 inline void SetImageScanCompletedAt(Aws::Utils::DateTime&& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = std::move(value); }
53
55
58 inline const Aws::Utils::DateTime& GetVulnerabilitySourceUpdatedAt() const{ return m_vulnerabilitySourceUpdatedAt; }
59 inline bool VulnerabilitySourceUpdatedAtHasBeenSet() const { return m_vulnerabilitySourceUpdatedAtHasBeenSet; }
60 inline void SetVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = value; }
61 inline void SetVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = std::move(value); }
65
67
70 inline const Aws::Map<FindingSeverity, int>& GetFindingSeverityCounts() const{ return m_findingSeverityCounts; }
71 inline bool FindingSeverityCountsHasBeenSet() const { return m_findingSeverityCountsHasBeenSet; }
72 inline void SetFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = value; }
73 inline void SetFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = std::move(value); }
76 inline ImageScanFindingsSummary& AddFindingSeverityCounts(const FindingSeverity& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(key, value); return *this; }
77 inline ImageScanFindingsSummary& AddFindingSeverityCounts(FindingSeverity&& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(std::move(key), value); return *this; }
79 private:
80
81 Aws::Utils::DateTime m_imageScanCompletedAt;
82 bool m_imageScanCompletedAtHasBeenSet = false;
83
84 Aws::Utils::DateTime m_vulnerabilitySourceUpdatedAt;
85 bool m_vulnerabilitySourceUpdatedAtHasBeenSet = false;
86
87 Aws::Map<FindingSeverity, int> m_findingSeverityCounts;
88 bool m_findingSeverityCountsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ECR
93} // namespace Aws
void SetFindingSeverityCounts(Aws::Map< FindingSeverity, int > &&value)
void SetImageScanCompletedAt(Aws::Utils::DateTime &&value)
void SetImageScanCompletedAt(const Aws::Utils::DateTime &value)
const Aws::Map< FindingSeverity, int > & GetFindingSeverityCounts() const
const Aws::Utils::DateTime & GetImageScanCompletedAt() const
ImageScanFindingsSummary & AddFindingSeverityCounts(FindingSeverity &&key, int value)
void SetVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime &&value)
ImageScanFindingsSummary & WithVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime &value)
ImageScanFindingsSummary & WithFindingSeverityCounts(Aws::Map< FindingSeverity, int > &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API ImageScanFindingsSummary(Aws::Utils::Json::JsonView jsonValue)
ImageScanFindingsSummary & WithVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime &&value)
ImageScanFindingsSummary & WithImageScanCompletedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetVulnerabilitySourceUpdatedAt() const
void SetFindingSeverityCounts(const Aws::Map< FindingSeverity, int > &value)
void SetVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime &value)
ImageScanFindingsSummary & WithFindingSeverityCounts(const Aws::Map< FindingSeverity, int > &value)
ImageScanFindingsSummary & AddFindingSeverityCounts(const FindingSeverity &key, int value)
AWS_ECR_API ImageScanFindingsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageScanFindingsSummary & WithImageScanCompletedAt(const Aws::Utils::DateTime &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue