AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
51 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
52 inline DateStatistics& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
53 inline DateStatistics& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(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 inline void SetLastGeneratedAt(const Aws::Utils::DateTime& value) { m_lastGeneratedAtHasBeenSet = true; m_lastGeneratedAt = value; }
64 inline void SetLastGeneratedAt(Aws::Utils::DateTime&& value) { m_lastGeneratedAtHasBeenSet = true; m_lastGeneratedAt = std::move(value); }
65 inline DateStatistics& WithLastGeneratedAt(const Aws::Utils::DateTime& value) { SetLastGeneratedAt(value); return *this;}
66 inline DateStatistics& WithLastGeneratedAt(Aws::Utils::DateTime&& value) { SetLastGeneratedAt(std::move(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
92 bool m_dateHasBeenSet = false;
93
94 Aws::Utils::DateTime m_lastGeneratedAt;
95 bool m_lastGeneratedAtHasBeenSet = false;
96
97 double m_severity;
98 bool m_severityHasBeenSet = false;
99
100 int m_totalFindings;
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 & WithLastGeneratedAt(const Aws::Utils::DateTime &value)
DateStatistics & WithLastGeneratedAt(Aws::Utils::DateTime &&value)
void SetLastGeneratedAt(const Aws::Utils::DateTime &value)
void SetLastGeneratedAt(Aws::Utils::DateTime &&value)
DateStatistics & WithTotalFindings(int value)
AWS_GUARDDUTY_API DateStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastGeneratedAt() const
DateStatistics & WithDate(const Aws::Utils::DateTime &value)
DateStatistics & WithDate(Aws::Utils::DateTime &&value)
DateStatistics & WithSeverity(double value)
const Aws::Utils::DateTime & GetDate() const
AWS_GUARDDUTY_API DateStatistics(Aws::Utils::Json::JsonView jsonValue)
void SetDate(Aws::Utils::DateTime &&value)
void SetDate(const Aws::Utils::DateTime &value)
Aws::Utils::Json::JsonValue JsonValue