AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ImageScanFindingsSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/FindingSeverity.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECR {
22namespace Model {
23
30 public:
31 AWS_ECR_API ImageScanFindingsSummary() = default;
35
37
40 inline const Aws::Utils::DateTime& GetImageScanCompletedAt() const { return m_imageScanCompletedAt; }
41 inline bool ImageScanCompletedAtHasBeenSet() const { return m_imageScanCompletedAtHasBeenSet; }
42 template <typename ImageScanCompletedAtT = Aws::Utils::DateTime>
43 void SetImageScanCompletedAt(ImageScanCompletedAtT&& value) {
44 m_imageScanCompletedAtHasBeenSet = true;
45 m_imageScanCompletedAt = std::forward<ImageScanCompletedAtT>(value);
46 }
47 template <typename ImageScanCompletedAtT = Aws::Utils::DateTime>
48 ImageScanFindingsSummary& WithImageScanCompletedAt(ImageScanCompletedAtT&& value) {
49 SetImageScanCompletedAt(std::forward<ImageScanCompletedAtT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetVulnerabilitySourceUpdatedAt() const { return m_vulnerabilitySourceUpdatedAt; }
59 inline bool VulnerabilitySourceUpdatedAtHasBeenSet() const { return m_vulnerabilitySourceUpdatedAtHasBeenSet; }
60 template <typename VulnerabilitySourceUpdatedAtT = Aws::Utils::DateTime>
61 void SetVulnerabilitySourceUpdatedAt(VulnerabilitySourceUpdatedAtT&& value) {
62 m_vulnerabilitySourceUpdatedAtHasBeenSet = true;
63 m_vulnerabilitySourceUpdatedAt = std::forward<VulnerabilitySourceUpdatedAtT>(value);
64 }
65 template <typename VulnerabilitySourceUpdatedAtT = Aws::Utils::DateTime>
66 ImageScanFindingsSummary& WithVulnerabilitySourceUpdatedAt(VulnerabilitySourceUpdatedAtT&& value) {
67 SetVulnerabilitySourceUpdatedAt(std::forward<VulnerabilitySourceUpdatedAtT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Map<FindingSeverity, int>& GetFindingSeverityCounts() const { return m_findingSeverityCounts; }
77 inline bool FindingSeverityCountsHasBeenSet() const { return m_findingSeverityCountsHasBeenSet; }
78 template <typename FindingSeverityCountsT = Aws::Map<FindingSeverity, int>>
79 void SetFindingSeverityCounts(FindingSeverityCountsT&& value) {
80 m_findingSeverityCountsHasBeenSet = true;
81 m_findingSeverityCounts = std::forward<FindingSeverityCountsT>(value);
82 }
83 template <typename FindingSeverityCountsT = Aws::Map<FindingSeverity, int>>
84 ImageScanFindingsSummary& WithFindingSeverityCounts(FindingSeverityCountsT&& value) {
85 SetFindingSeverityCounts(std::forward<FindingSeverityCountsT>(value));
86 return *this;
87 }
89 m_findingSeverityCountsHasBeenSet = true;
90 m_findingSeverityCounts.emplace(key, value);
91 return *this;
92 }
94 private:
95 Aws::Utils::DateTime m_imageScanCompletedAt{};
96
97 Aws::Utils::DateTime m_vulnerabilitySourceUpdatedAt{};
98
99 Aws::Map<FindingSeverity, int> m_findingSeverityCounts;
100 bool m_imageScanCompletedAtHasBeenSet = false;
101 bool m_vulnerabilitySourceUpdatedAtHasBeenSet = false;
102 bool m_findingSeverityCountsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ECR
107} // namespace Aws
const Aws::Map< FindingSeverity, int > & GetFindingSeverityCounts() const
const Aws::Utils::DateTime & GetImageScanCompletedAt() const
AWS_ECR_API ImageScanFindingsSummary()=default
ImageScanFindingsSummary & AddFindingSeverityCounts(FindingSeverity key, int value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API ImageScanFindingsSummary(Aws::Utils::Json::JsonView jsonValue)
ImageScanFindingsSummary & WithFindingSeverityCounts(FindingSeverityCountsT &&value)
const Aws::Utils::DateTime & GetVulnerabilitySourceUpdatedAt() const
ImageScanFindingsSummary & WithVulnerabilitySourceUpdatedAt(VulnerabilitySourceUpdatedAtT &&value)
void SetImageScanCompletedAt(ImageScanCompletedAtT &&value)
void SetVulnerabilitySourceUpdatedAt(VulnerabilitySourceUpdatedAtT &&value)
AWS_ECR_API ImageScanFindingsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFindingSeverityCounts(FindingSeverityCountsT &&value)
ImageScanFindingsSummary & WithImageScanCompletedAt(ImageScanCompletedAtT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue