AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
HighestSeverityThreatDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 HighestSeverityThreatDetails() = default;
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetSeverity() const { return m_severity; }
46 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
47 template<typename SeverityT = Aws::String>
48 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
49 template<typename SeverityT = Aws::String>
50 HighestSeverityThreatDetails& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
52
54
58 inline const Aws::String& GetThreatName() const { return m_threatName; }
59 inline bool ThreatNameHasBeenSet() const { return m_threatNameHasBeenSet; }
60 template<typename ThreatNameT = Aws::String>
61 void SetThreatName(ThreatNameT&& value) { m_threatNameHasBeenSet = true; m_threatName = std::forward<ThreatNameT>(value); }
62 template<typename ThreatNameT = Aws::String>
63 HighestSeverityThreatDetails& WithThreatName(ThreatNameT&& value) { SetThreatName(std::forward<ThreatNameT>(value)); return *this;}
65
67
70 inline int GetCount() const { return m_count; }
71 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
72 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
73 inline HighestSeverityThreatDetails& WithCount(int value) { SetCount(value); return *this;}
75 private:
76
77 Aws::String m_severity;
78 bool m_severityHasBeenSet = false;
79
80 Aws::String m_threatName;
81 bool m_threatNameHasBeenSet = false;
82
83 int m_count{0};
84 bool m_countHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace GuardDuty
89} // namespace Aws
AWS_GUARDDUTY_API HighestSeverityThreatDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
HighestSeverityThreatDetails & WithThreatName(ThreatNameT &&value)
AWS_GUARDDUTY_API HighestSeverityThreatDetails(Aws::Utils::Json::JsonView jsonValue)
HighestSeverityThreatDetails & WithSeverity(SeverityT &&value)
AWS_GUARDDUTY_API HighestSeverityThreatDetails()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue