AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DateStatistics.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 DateStatistics() = default;
31 AWS_GUARDDUTY_API DateStatistics(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
43 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
44 template <typename DateT = Aws::Utils::DateTime>
45 void SetDate(DateT&& value) {
46 m_dateHasBeenSet = true;
47 m_date = std::forward<DateT>(value);
48 }
49 template <typename DateT = Aws::Utils::DateTime>
50 DateStatistics& WithDate(DateT&& value) {
51 SetDate(std::forward<DateT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Utils::DateTime& GetLastGeneratedAt() const { return m_lastGeneratedAt; }
62 inline bool LastGeneratedAtHasBeenSet() const { return m_lastGeneratedAtHasBeenSet; }
63 template <typename LastGeneratedAtT = Aws::Utils::DateTime>
64 void SetLastGeneratedAt(LastGeneratedAtT&& value) {
65 m_lastGeneratedAtHasBeenSet = true;
66 m_lastGeneratedAt = std::forward<LastGeneratedAtT>(value);
67 }
68 template <typename LastGeneratedAtT = Aws::Utils::DateTime>
69 DateStatistics& WithLastGeneratedAt(LastGeneratedAtT&& value) {
70 SetLastGeneratedAt(std::forward<LastGeneratedAtT>(value));
71 return *this;
72 }
74
76
79 inline double GetSeverity() const { return m_severity; }
80 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
81 inline void SetSeverity(double value) {
82 m_severityHasBeenSet = true;
83 m_severity = value;
84 }
85 inline DateStatistics& WithSeverity(double value) {
86 SetSeverity(value);
87 return *this;
88 }
90
92
96 inline int GetTotalFindings() const { return m_totalFindings; }
97 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
98 inline void SetTotalFindings(int value) {
99 m_totalFindingsHasBeenSet = true;
100 m_totalFindings = value;
101 }
103 SetTotalFindings(value);
104 return *this;
105 }
107 private:
108 Aws::Utils::DateTime m_date{};
109
110 Aws::Utils::DateTime m_lastGeneratedAt{};
111
112 double m_severity{0.0};
113
114 int m_totalFindings{0};
115 bool m_dateHasBeenSet = false;
116 bool m_lastGeneratedAtHasBeenSet = false;
117 bool m_severityHasBeenSet = false;
118 bool m_totalFindingsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace GuardDuty
123} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
DateStatistics & WithDate(DateT &&value)
DateStatistics & WithLastGeneratedAt(LastGeneratedAtT &&value)
DateStatistics & WithTotalFindings(int value)
AWS_GUARDDUTY_API DateStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastGeneratedAt() const
AWS_GUARDDUTY_API DateStatistics()=default
DateStatistics & WithSeverity(double value)
const Aws::Utils::DateTime & GetDate() const
AWS_GUARDDUTY_API DateStatistics(Aws::Utils::Json::JsonView jsonValue)
void SetLastGeneratedAt(LastGeneratedAtT &&value)
Aws::Utils::Json::JsonValue JsonValue