AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const SeverityDescription& GetDescription() const{ return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 inline void SetDescription(const SeverityDescription& value) { m_descriptionHasBeenSet = true; m_description = value; }
49 inline void SetDescription(SeverityDescription&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
50 inline Severity& WithDescription(const SeverityDescription& value) { SetDescription(value); return *this;}
51 inline Severity& WithDescription(SeverityDescription&& value) { SetDescription(std::move(value)); return *this;}
53
55
59 inline long long GetScore() const{ return m_score; }
60 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
61 inline void SetScore(long long value) { m_scoreHasBeenSet = true; m_score = value; }
62 inline Severity& WithScore(long long value) { SetScore(value); return *this;}
64 private:
65
66 SeverityDescription m_description;
67 bool m_descriptionHasBeenSet = false;
68
69 long long m_score;
70 bool m_scoreHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Macie2
75} // namespace Aws
AWS_MACIE2_API Severity(Aws::Utils::Json::JsonView jsonValue)
bool DescriptionHasBeenSet() const
Definition Severity.h:47
bool ScoreHasBeenSet() const
Definition Severity.h:60
Severity & WithDescription(const SeverityDescription &value)
Definition Severity.h:50
Severity & WithScore(long long value)
Definition Severity.h:62
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(SeverityDescription &&value)
Definition Severity.h:49
void SetScore(long long value)
Definition Severity.h:61
Severity & WithDescription(SeverityDescription &&value)
Definition Severity.h:51
void SetDescription(const SeverityDescription &value)
Definition Severity.h:48
long long GetScore() const
Definition Severity.h:59
const SeverityDescription & GetDescription() const
Definition Severity.h:46
AWS_MACIE2_API Severity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue