AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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 Macie2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MACIE2_API Severity() = default;
36 AWS_MACIE2_API Severity(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MACIE2_API Severity& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline SeverityDescription GetDescription() const { return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 inline void SetDescription(SeverityDescription value) { m_descriptionHasBeenSet = true; m_description = value; }
49 inline Severity& WithDescription(SeverityDescription value) { SetDescription(value); return *this;}
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) { m_scoreHasBeenSet = true; m_score = value; }
60 inline Severity& WithScore(long long value) { SetScore(value); return *this;}
62 private:
63
65 bool m_descriptionHasBeenSet = false;
66
67 long long m_score{0};
68 bool m_scoreHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Macie2
73} // namespace Aws
AWS_MACIE2_API Severity(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Severity()=default
void SetDescription(SeverityDescription value)
Definition Severity.h:48
bool DescriptionHasBeenSet() const
Definition Severity.h:47
bool ScoreHasBeenSet() const
Definition Severity.h:58
Severity & WithDescription(SeverityDescription value)
Definition Severity.h:49
Severity & WithScore(long long value)
Definition Severity.h:60
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
SeverityDescription GetDescription() const
Definition Severity.h:46
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