AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
Metrics.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace CodeGuruReviewer {
17namespace Model {
18
25class Metrics {
26 public:
27 AWS_CODEGURUREVIEWER_API Metrics() = default;
28 AWS_CODEGURUREVIEWER_API Metrics(Aws::Utils::Json::JsonView jsonValue);
29 AWS_CODEGURUREVIEWER_API Metrics& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline long long GetMeteredLinesOfCodeCount() const { return m_meteredLinesOfCodeCount; }
39 inline bool MeteredLinesOfCodeCountHasBeenSet() const { return m_meteredLinesOfCodeCountHasBeenSet; }
40 inline void SetMeteredLinesOfCodeCount(long long value) {
41 m_meteredLinesOfCodeCountHasBeenSet = true;
42 m_meteredLinesOfCodeCount = value;
43 }
44 inline Metrics& WithMeteredLinesOfCodeCount(long long value) {
46 return *this;
47 }
49
51
59 inline long long GetSuppressedLinesOfCodeCount() const { return m_suppressedLinesOfCodeCount; }
60 inline bool SuppressedLinesOfCodeCountHasBeenSet() const { return m_suppressedLinesOfCodeCountHasBeenSet; }
61 inline void SetSuppressedLinesOfCodeCount(long long value) {
62 m_suppressedLinesOfCodeCountHasBeenSet = true;
63 m_suppressedLinesOfCodeCount = value;
64 }
65 inline Metrics& WithSuppressedLinesOfCodeCount(long long value) {
67 return *this;
68 }
70
72
75 inline long long GetFindingsCount() const { return m_findingsCount; }
76 inline bool FindingsCountHasBeenSet() const { return m_findingsCountHasBeenSet; }
77 inline void SetFindingsCount(long long value) {
78 m_findingsCountHasBeenSet = true;
79 m_findingsCount = value;
80 }
81 inline Metrics& WithFindingsCount(long long value) {
82 SetFindingsCount(value);
83 return *this;
84 }
86 private:
87 long long m_meteredLinesOfCodeCount{0};
88
89 long long m_suppressedLinesOfCodeCount{0};
90
91 long long m_findingsCount{0};
92 bool m_meteredLinesOfCodeCountHasBeenSet = false;
93 bool m_suppressedLinesOfCodeCountHasBeenSet = false;
94 bool m_findingsCountHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace CodeGuruReviewer
99} // namespace Aws
void SetMeteredLinesOfCodeCount(long long value)
Definition Metrics.h:40
void SetSuppressedLinesOfCodeCount(long long value)
Definition Metrics.h:61
long long GetSuppressedLinesOfCodeCount() const
Definition Metrics.h:59
void SetFindingsCount(long long value)
Definition Metrics.h:77
Metrics & WithMeteredLinesOfCodeCount(long long value)
Definition Metrics.h:44
Metrics & WithSuppressedLinesOfCodeCount(long long value)
Definition Metrics.h:65
long long GetFindingsCount() const
Definition Metrics.h:75
AWS_CODEGURUREVIEWER_API Metrics()=default
AWS_CODEGURUREVIEWER_API Metrics(Aws::Utils::Json::JsonView jsonValue)
bool SuppressedLinesOfCodeCountHasBeenSet() const
Definition Metrics.h:60
bool MeteredLinesOfCodeCountHasBeenSet() const
Definition Metrics.h:39
AWS_CODEGURUREVIEWER_API Metrics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
Metrics & WithFindingsCount(long long value)
Definition Metrics.h:81
long long GetMeteredLinesOfCodeCount() const
Definition Metrics.h:38
Aws::Utils::Json::JsonValue JsonValue