AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DateStatistics.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GUARDDUTY_API DateStatistics() = default;
36 AWS_GUARDDUTY_API DateStatistics(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::Utils::DateTime& GetDate() const { return m_date; }
49 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
50 template<typename DateT = Aws::Utils::DateTime>
51 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
52 template<typename DateT = Aws::Utils::DateTime>
53 DateStatistics& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
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) { m_lastGeneratedAtHasBeenSet = true; m_lastGeneratedAt = std::forward<LastGeneratedAtT>(value); }
65 template<typename LastGeneratedAtT = Aws::Utils::DateTime>
66 DateStatistics& WithLastGeneratedAt(LastGeneratedAtT&& value) { SetLastGeneratedAt(std::forward<LastGeneratedAtT>(value)); return *this;}
68
70
73 inline double GetSeverity() const { return m_severity; }
74 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
75 inline void SetSeverity(double value) { m_severityHasBeenSet = true; m_severity = value; }
76 inline DateStatistics& WithSeverity(double value) { SetSeverity(value); return *this;}
78
80
84 inline int GetTotalFindings() const { return m_totalFindings; }
85 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
86 inline void SetTotalFindings(int value) { m_totalFindingsHasBeenSet = true; m_totalFindings = value; }
87 inline DateStatistics& WithTotalFindings(int value) { SetTotalFindings(value); return *this;}
89 private:
90
91 Aws::Utils::DateTime m_date{};
92 bool m_dateHasBeenSet = false;
93
94 Aws::Utils::DateTime m_lastGeneratedAt{};
95 bool m_lastGeneratedAtHasBeenSet = false;
96
97 double m_severity{0.0};
98 bool m_severityHasBeenSet = false;
99
100 int m_totalFindings{0};
101 bool m_totalFindingsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace GuardDuty
106} // 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