AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SeverityStatistics.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API SeverityStatistics() = default;
31 AWS_GUARDDUTY_API SeverityStatistics(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Utils::DateTime& GetLastGeneratedAt() const { return m_lastGeneratedAt; }
41 inline bool LastGeneratedAtHasBeenSet() const { return m_lastGeneratedAtHasBeenSet; }
42 template <typename LastGeneratedAtT = Aws::Utils::DateTime>
43 void SetLastGeneratedAt(LastGeneratedAtT&& value) {
44 m_lastGeneratedAtHasBeenSet = true;
45 m_lastGeneratedAt = std::forward<LastGeneratedAtT>(value);
46 }
47 template <typename LastGeneratedAtT = Aws::Utils::DateTime>
48 SeverityStatistics& WithLastGeneratedAt(LastGeneratedAtT&& value) {
49 SetLastGeneratedAt(std::forward<LastGeneratedAtT>(value));
50 return *this;
51 }
53
55
58 inline double GetSeverity() const { return m_severity; }
59 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
60 inline void SetSeverity(double value) {
61 m_severityHasBeenSet = true;
62 m_severity = value;
63 }
64 inline SeverityStatistics& WithSeverity(double value) {
65 SetSeverity(value);
66 return *this;
67 }
69
71
74 inline int GetTotalFindings() const { return m_totalFindings; }
75 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
76 inline void SetTotalFindings(int value) {
77 m_totalFindingsHasBeenSet = true;
78 m_totalFindings = value;
79 }
81 SetTotalFindings(value);
82 return *this;
83 }
85 private:
86 Aws::Utils::DateTime m_lastGeneratedAt{};
87
88 double m_severity{0.0};
89
90 int m_totalFindings{0};
91 bool m_lastGeneratedAtHasBeenSet = false;
92 bool m_severityHasBeenSet = false;
93 bool m_totalFindingsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace GuardDuty
98} // namespace Aws
SeverityStatistics & WithLastGeneratedAt(LastGeneratedAtT &&value)
AWS_GUARDDUTY_API SeverityStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastGeneratedAt(LastGeneratedAtT &&value)
AWS_GUARDDUTY_API SeverityStatistics()=default
SeverityStatistics & WithSeverity(double value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API SeverityStatistics(Aws::Utils::Json::JsonView jsonValue)
SeverityStatistics & WithTotalFindings(int value)
const Aws::Utils::DateTime & GetLastGeneratedAt() const
Aws::Utils::Json::JsonValue JsonValue