AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
36 AWS_ECR_API ImageScanFindingsSummary() = default;
40
41
43
46 inline const Aws::Utils::DateTime& GetImageScanCompletedAt() const { return m_imageScanCompletedAt; }
47 inline bool ImageScanCompletedAtHasBeenSet() const { return m_imageScanCompletedAtHasBeenSet; }
48 template<typename ImageScanCompletedAtT = Aws::Utils::DateTime>
49 void SetImageScanCompletedAt(ImageScanCompletedAtT&& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = std::forward<ImageScanCompletedAtT>(value); }
50 template<typename ImageScanCompletedAtT = Aws::Utils::DateTime>
51 ImageScanFindingsSummary& WithImageScanCompletedAt(ImageScanCompletedAtT&& value) { SetImageScanCompletedAt(std::forward<ImageScanCompletedAtT>(value)); return *this;}
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) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = std::forward<VulnerabilitySourceUpdatedAtT>(value); }
62 template<typename VulnerabilitySourceUpdatedAtT = Aws::Utils::DateTime>
63 ImageScanFindingsSummary& WithVulnerabilitySourceUpdatedAt(VulnerabilitySourceUpdatedAtT&& value) { SetVulnerabilitySourceUpdatedAt(std::forward<VulnerabilitySourceUpdatedAtT>(value)); return *this;}
65
67
70 inline const Aws::Map<FindingSeverity, int>& GetFindingSeverityCounts() const { return m_findingSeverityCounts; }
71 inline bool FindingSeverityCountsHasBeenSet() const { return m_findingSeverityCountsHasBeenSet; }
72 template<typename FindingSeverityCountsT = Aws::Map<FindingSeverity, int>>
73 void SetFindingSeverityCounts(FindingSeverityCountsT&& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = std::forward<FindingSeverityCountsT>(value); }
74 template<typename FindingSeverityCountsT = Aws::Map<FindingSeverity, int>>
75 ImageScanFindingsSummary& WithFindingSeverityCounts(FindingSeverityCountsT&& value) { SetFindingSeverityCounts(std::forward<FindingSeverityCountsT>(value)); return *this;}
77 m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(key, value); return *this;
78 }
80 private:
81
82 Aws::Utils::DateTime m_imageScanCompletedAt{};
83 bool m_imageScanCompletedAtHasBeenSet = false;
84
85 Aws::Utils::DateTime m_vulnerabilitySourceUpdatedAt{};
86 bool m_vulnerabilitySourceUpdatedAtHasBeenSet = false;
87
88 Aws::Map<FindingSeverity, int> m_findingSeverityCounts;
89 bool m_findingSeverityCountsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ECR
94} // 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