AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccountFindingsMetric.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/model/FindingMetricsValuePerSeverity.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruSecurity
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEGURUSECURITY_API AccountFindingsMetric();
37 AWS_CODEGURUSECURITY_API AccountFindingsMetric(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEGURUSECURITY_API AccountFindingsMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const FindingMetricsValuePerSeverity& GetClosedFindings() const{ return m_closedFindings; }
47 inline bool ClosedFindingsHasBeenSet() const { return m_closedFindingsHasBeenSet; }
48 inline void SetClosedFindings(const FindingMetricsValuePerSeverity& value) { m_closedFindingsHasBeenSet = true; m_closedFindings = value; }
49 inline void SetClosedFindings(FindingMetricsValuePerSeverity&& value) { m_closedFindingsHasBeenSet = true; m_closedFindings = std::move(value); }
53
55
58 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
59 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
60 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
61 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
62 inline AccountFindingsMetric& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
63 inline AccountFindingsMetric& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
65
67
71 inline const FindingMetricsValuePerSeverity& GetMeanTimeToClose() const{ return m_meanTimeToClose; }
72 inline bool MeanTimeToCloseHasBeenSet() const { return m_meanTimeToCloseHasBeenSet; }
73 inline void SetMeanTimeToClose(const FindingMetricsValuePerSeverity& value) { m_meanTimeToCloseHasBeenSet = true; m_meanTimeToClose = value; }
74 inline void SetMeanTimeToClose(FindingMetricsValuePerSeverity&& value) { m_meanTimeToCloseHasBeenSet = true; m_meanTimeToClose = std::move(value); }
78
80
83 inline const FindingMetricsValuePerSeverity& GetNewFindings() const{ return m_newFindings; }
84 inline bool NewFindingsHasBeenSet() const { return m_newFindingsHasBeenSet; }
85 inline void SetNewFindings(const FindingMetricsValuePerSeverity& value) { m_newFindingsHasBeenSet = true; m_newFindings = value; }
86 inline void SetNewFindings(FindingMetricsValuePerSeverity&& value) { m_newFindingsHasBeenSet = true; m_newFindings = std::move(value); }
88 inline AccountFindingsMetric& WithNewFindings(FindingMetricsValuePerSeverity&& value) { SetNewFindings(std::move(value)); return *this;}
90
92
95 inline const FindingMetricsValuePerSeverity& GetOpenFindings() const{ return m_openFindings; }
96 inline bool OpenFindingsHasBeenSet() const { return m_openFindingsHasBeenSet; }
97 inline void SetOpenFindings(const FindingMetricsValuePerSeverity& value) { m_openFindingsHasBeenSet = true; m_openFindings = value; }
98 inline void SetOpenFindings(FindingMetricsValuePerSeverity&& value) { m_openFindingsHasBeenSet = true; m_openFindings = std::move(value); }
102 private:
103
104 FindingMetricsValuePerSeverity m_closedFindings;
105 bool m_closedFindingsHasBeenSet = false;
106
108 bool m_dateHasBeenSet = false;
109
110 FindingMetricsValuePerSeverity m_meanTimeToClose;
111 bool m_meanTimeToCloseHasBeenSet = false;
112
113 FindingMetricsValuePerSeverity m_newFindings;
114 bool m_newFindingsHasBeenSet = false;
115
116 FindingMetricsValuePerSeverity m_openFindings;
117 bool m_openFindingsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace CodeGuruSecurity
122} // namespace Aws
AccountFindingsMetric & WithMeanTimeToClose(FindingMetricsValuePerSeverity &&value)
void SetMeanTimeToClose(const FindingMetricsValuePerSeverity &value)
void SetMeanTimeToClose(FindingMetricsValuePerSeverity &&value)
void SetNewFindings(FindingMetricsValuePerSeverity &&value)
AccountFindingsMetric & WithClosedFindings(FindingMetricsValuePerSeverity &&value)
AccountFindingsMetric & WithDate(const Aws::Utils::DateTime &value)
void SetDate(const Aws::Utils::DateTime &value)
AccountFindingsMetric & WithDate(Aws::Utils::DateTime &&value)
const FindingMetricsValuePerSeverity & GetClosedFindings() const
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
AccountFindingsMetric & WithOpenFindings(const FindingMetricsValuePerSeverity &value)
const FindingMetricsValuePerSeverity & GetMeanTimeToClose() const
void SetClosedFindings(const FindingMetricsValuePerSeverity &value)
AccountFindingsMetric & WithMeanTimeToClose(const FindingMetricsValuePerSeverity &value)
AccountFindingsMetric & WithOpenFindings(FindingMetricsValuePerSeverity &&value)
AWS_CODEGURUSECURITY_API AccountFindingsMetric(Aws::Utils::Json::JsonView jsonValue)
const FindingMetricsValuePerSeverity & GetOpenFindings() const
void SetNewFindings(const FindingMetricsValuePerSeverity &value)
void SetOpenFindings(const FindingMetricsValuePerSeverity &value)
AWS_CODEGURUSECURITY_API AccountFindingsMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOpenFindings(FindingMetricsValuePerSeverity &&value)
AccountFindingsMetric & WithNewFindings(FindingMetricsValuePerSeverity &&value)
AccountFindingsMetric & WithNewFindings(const FindingMetricsValuePerSeverity &value)
AccountFindingsMetric & WithClosedFindings(const FindingMetricsValuePerSeverity &value)
const FindingMetricsValuePerSeverity & GetNewFindings() const
void SetClosedFindings(FindingMetricsValuePerSeverity &&value)
Aws::Utils::Json::JsonValue JsonValue