AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SeverityStatistics.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 SeverityStatistics();
36 AWS_GUARDDUTY_API SeverityStatistics(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Utils::DateTime& GetLastGeneratedAt() const{ return m_lastGeneratedAt; }
47 inline bool LastGeneratedAtHasBeenSet() const { return m_lastGeneratedAtHasBeenSet; }
48 inline void SetLastGeneratedAt(const Aws::Utils::DateTime& value) { m_lastGeneratedAtHasBeenSet = true; m_lastGeneratedAt = value; }
49 inline void SetLastGeneratedAt(Aws::Utils::DateTime&& value) { m_lastGeneratedAtHasBeenSet = true; m_lastGeneratedAt = std::move(value); }
51 inline SeverityStatistics& WithLastGeneratedAt(Aws::Utils::DateTime&& value) { SetLastGeneratedAt(std::move(value)); return *this;}
53
55
58 inline double GetSeverity() const{ return m_severity; }
59 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
60 inline void SetSeverity(double value) { m_severityHasBeenSet = true; m_severity = value; }
61 inline SeverityStatistics& WithSeverity(double value) { SetSeverity(value); return *this;}
63
65
68 inline int GetTotalFindings() const{ return m_totalFindings; }
69 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
70 inline void SetTotalFindings(int value) { m_totalFindingsHasBeenSet = true; m_totalFindings = value; }
71 inline SeverityStatistics& WithTotalFindings(int value) { SetTotalFindings(value); return *this;}
73 private:
74
75 Aws::Utils::DateTime m_lastGeneratedAt;
76 bool m_lastGeneratedAtHasBeenSet = false;
77
78 double m_severity;
79 bool m_severityHasBeenSet = false;
80
81 int m_totalFindings;
82 bool m_totalFindingsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace GuardDuty
87} // namespace Aws
void SetLastGeneratedAt(Aws::Utils::DateTime &&value)
AWS_GUARDDUTY_API SeverityStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
SeverityStatistics & WithLastGeneratedAt(const Aws::Utils::DateTime &value)
SeverityStatistics & WithLastGeneratedAt(Aws::Utils::DateTime &&value)
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)
void SetLastGeneratedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastGeneratedAt() const
Aws::Utils::Json::JsonValue JsonValue