AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Severity.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/SeverityDescription.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
28class Severity {
29 public:
30 AWS_MACIE2_API Severity() = default;
31 AWS_MACIE2_API Severity(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MACIE2_API Severity& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline SeverityDescription GetDescription() const { return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 m_descriptionHasBeenSet = true;
44 m_description = value;
45 }
47 SetDescription(value);
48 return *this;
49 }
51
53
57 inline long long GetScore() const { return m_score; }
58 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
59 inline void SetScore(long long value) {
60 m_scoreHasBeenSet = true;
61 m_score = value;
62 }
63 inline Severity& WithScore(long long value) {
64 SetScore(value);
65 return *this;
66 }
68 private:
70
71 long long m_score{0};
72 bool m_descriptionHasBeenSet = false;
73 bool m_scoreHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Macie2
78} // namespace Aws
AWS_MACIE2_API Severity(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Severity()=default
void SetDescription(SeverityDescription value)
Definition Severity.h:42
bool DescriptionHasBeenSet() const
Definition Severity.h:41
bool ScoreHasBeenSet() const
Definition Severity.h:58
Severity & WithDescription(SeverityDescription value)
Definition Severity.h:46
Severity & WithScore(long long value)
Definition Severity.h:63
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
SeverityDescription GetDescription() const
Definition Severity.h:40
void SetScore(long long value)
Definition Severity.h:59
long long GetScore() const
Definition Severity.h:57
AWS_MACIE2_API Severity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue