AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricsSummary.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codeguru-security/model/FindingMetricsValuePerSeverity.h>
11#include <aws/codeguru-security/model/CategoryWithFindingNum.h>
12#include <aws/codeguru-security/model/ScanNameWithFindingNum.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeGuruSecurity
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CODEGURUSECURITY_API MetricsSummary();
40 AWS_CODEGURUSECURITY_API MetricsSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEGURUSECURITY_API MetricsSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<CategoryWithFindingNum>& GetCategoriesWithMostFindings() const{ return m_categoriesWithMostFindings; }
51 inline bool CategoriesWithMostFindingsHasBeenSet() const { return m_categoriesWithMostFindingsHasBeenSet; }
52 inline void SetCategoriesWithMostFindings(const Aws::Vector<CategoryWithFindingNum>& value) { m_categoriesWithMostFindingsHasBeenSet = true; m_categoriesWithMostFindings = value; }
53 inline void SetCategoriesWithMostFindings(Aws::Vector<CategoryWithFindingNum>&& value) { m_categoriesWithMostFindingsHasBeenSet = true; m_categoriesWithMostFindings = std::move(value); }
56 inline MetricsSummary& AddCategoriesWithMostFindings(const CategoryWithFindingNum& value) { m_categoriesWithMostFindingsHasBeenSet = true; m_categoriesWithMostFindings.push_back(value); return *this; }
57 inline MetricsSummary& AddCategoriesWithMostFindings(CategoryWithFindingNum&& value) { m_categoriesWithMostFindingsHasBeenSet = true; m_categoriesWithMostFindings.push_back(std::move(value)); return *this; }
59
61
64 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
65 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
66 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
67 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
68 inline MetricsSummary& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
69 inline MetricsSummary& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
71
73
76 inline const FindingMetricsValuePerSeverity& GetOpenFindings() const{ return m_openFindings; }
77 inline bool OpenFindingsHasBeenSet() const { return m_openFindingsHasBeenSet; }
78 inline void SetOpenFindings(const FindingMetricsValuePerSeverity& value) { m_openFindingsHasBeenSet = true; m_openFindings = value; }
79 inline void SetOpenFindings(FindingMetricsValuePerSeverity&& value) { m_openFindingsHasBeenSet = true; m_openFindings = std::move(value); }
81 inline MetricsSummary& WithOpenFindings(FindingMetricsValuePerSeverity&& value) { SetOpenFindings(std::move(value)); return *this;}
83
85
89 inline const Aws::Vector<ScanNameWithFindingNum>& GetScansWithMostOpenCriticalFindings() const{ return m_scansWithMostOpenCriticalFindings; }
90 inline bool ScansWithMostOpenCriticalFindingsHasBeenSet() const { return m_scansWithMostOpenCriticalFindingsHasBeenSet; }
91 inline void SetScansWithMostOpenCriticalFindings(const Aws::Vector<ScanNameWithFindingNum>& value) { m_scansWithMostOpenCriticalFindingsHasBeenSet = true; m_scansWithMostOpenCriticalFindings = value; }
92 inline void SetScansWithMostOpenCriticalFindings(Aws::Vector<ScanNameWithFindingNum>&& value) { m_scansWithMostOpenCriticalFindingsHasBeenSet = true; m_scansWithMostOpenCriticalFindings = std::move(value); }
95 inline MetricsSummary& AddScansWithMostOpenCriticalFindings(const ScanNameWithFindingNum& value) { m_scansWithMostOpenCriticalFindingsHasBeenSet = true; m_scansWithMostOpenCriticalFindings.push_back(value); return *this; }
96 inline MetricsSummary& AddScansWithMostOpenCriticalFindings(ScanNameWithFindingNum&& value) { m_scansWithMostOpenCriticalFindingsHasBeenSet = true; m_scansWithMostOpenCriticalFindings.push_back(std::move(value)); return *this; }
98
100
104 inline const Aws::Vector<ScanNameWithFindingNum>& GetScansWithMostOpenFindings() const{ return m_scansWithMostOpenFindings; }
105 inline bool ScansWithMostOpenFindingsHasBeenSet() const { return m_scansWithMostOpenFindingsHasBeenSet; }
106 inline void SetScansWithMostOpenFindings(const Aws::Vector<ScanNameWithFindingNum>& value) { m_scansWithMostOpenFindingsHasBeenSet = true; m_scansWithMostOpenFindings = value; }
107 inline void SetScansWithMostOpenFindings(Aws::Vector<ScanNameWithFindingNum>&& value) { m_scansWithMostOpenFindingsHasBeenSet = true; m_scansWithMostOpenFindings = std::move(value); }
110 inline MetricsSummary& AddScansWithMostOpenFindings(const ScanNameWithFindingNum& value) { m_scansWithMostOpenFindingsHasBeenSet = true; m_scansWithMostOpenFindings.push_back(value); return *this; }
111 inline MetricsSummary& AddScansWithMostOpenFindings(ScanNameWithFindingNum&& value) { m_scansWithMostOpenFindingsHasBeenSet = true; m_scansWithMostOpenFindings.push_back(std::move(value)); return *this; }
113 private:
114
115 Aws::Vector<CategoryWithFindingNum> m_categoriesWithMostFindings;
116 bool m_categoriesWithMostFindingsHasBeenSet = false;
117
119 bool m_dateHasBeenSet = false;
120
121 FindingMetricsValuePerSeverity m_openFindings;
122 bool m_openFindingsHasBeenSet = false;
123
124 Aws::Vector<ScanNameWithFindingNum> m_scansWithMostOpenCriticalFindings;
125 bool m_scansWithMostOpenCriticalFindingsHasBeenSet = false;
126
127 Aws::Vector<ScanNameWithFindingNum> m_scansWithMostOpenFindings;
128 bool m_scansWithMostOpenFindingsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace CodeGuruSecurity
133} // namespace Aws
void SetOpenFindings(FindingMetricsValuePerSeverity &&value)
MetricsSummary & WithCategoriesWithMostFindings(Aws::Vector< CategoryWithFindingNum > &&value)
MetricsSummary & WithDate(const Aws::Utils::DateTime &value)
MetricsSummary & AddScansWithMostOpenFindings(ScanNameWithFindingNum &&value)
MetricsSummary & AddCategoriesWithMostFindings(CategoryWithFindingNum &&value)
MetricsSummary & WithScansWithMostOpenCriticalFindings(const Aws::Vector< ScanNameWithFindingNum > &value)
void SetScansWithMostOpenCriticalFindings(Aws::Vector< ScanNameWithFindingNum > &&value)
MetricsSummary & AddCategoriesWithMostFindings(const CategoryWithFindingNum &value)
MetricsSummary & AddScansWithMostOpenCriticalFindings(const ScanNameWithFindingNum &value)
MetricsSummary & WithScansWithMostOpenFindings(Aws::Vector< ScanNameWithFindingNum > &&value)
void SetCategoriesWithMostFindings(const Aws::Vector< CategoryWithFindingNum > &value)
void SetDate(const Aws::Utils::DateTime &value)
MetricsSummary & WithScansWithMostOpenFindings(const Aws::Vector< ScanNameWithFindingNum > &value)
const Aws::Utils::DateTime & GetDate() const
const FindingMetricsValuePerSeverity & GetOpenFindings() const
const Aws::Vector< ScanNameWithFindingNum > & GetScansWithMostOpenCriticalFindings() const
void SetDate(Aws::Utils::DateTime &&value)
void SetOpenFindings(const FindingMetricsValuePerSeverity &value)
MetricsSummary & WithCategoriesWithMostFindings(const Aws::Vector< CategoryWithFindingNum > &value)
MetricsSummary & AddScansWithMostOpenCriticalFindings(ScanNameWithFindingNum &&value)
MetricsSummary & WithDate(Aws::Utils::DateTime &&value)
MetricsSummary & WithOpenFindings(FindingMetricsValuePerSeverity &&value)
const Aws::Vector< CategoryWithFindingNum > & GetCategoriesWithMostFindings() const
AWS_CODEGURUSECURITY_API MetricsSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUSECURITY_API MetricsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricsSummary & WithScansWithMostOpenCriticalFindings(Aws::Vector< ScanNameWithFindingNum > &&value)
const Aws::Vector< ScanNameWithFindingNum > & GetScansWithMostOpenFindings() const
MetricsSummary & AddScansWithMostOpenFindings(const ScanNameWithFindingNum &value)
void SetScansWithMostOpenFindings(Aws::Vector< ScanNameWithFindingNum > &&value)
MetricsSummary & WithOpenFindings(const FindingMetricsValuePerSeverity &value)
AWS_CODEGURUSECURITY_API MetricsSummary()
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCategoriesWithMostFindings(Aws::Vector< CategoryWithFindingNum > &&value)
void SetScansWithMostOpenFindings(const Aws::Vector< ScanNameWithFindingNum > &value)
void SetScansWithMostOpenCriticalFindings(const Aws::Vector< ScanNameWithFindingNum > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue