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/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/SeverityLabel.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_SECURITYHUB_API Severity();
42 AWS_SECURITYHUB_API Severity(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SECURITYHUB_API Severity& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
54 inline double GetProduct() const{ return m_product; }
55 inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
56 inline void SetProduct(double value) { m_productHasBeenSet = true; m_product = value; }
57 inline Severity& WithProduct(double value) { SetProduct(value); return *this;}
59
61
75 inline const SeverityLabel& GetLabel() const{ return m_label; }
76 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
77 inline void SetLabel(const SeverityLabel& value) { m_labelHasBeenSet = true; m_label = value; }
78 inline void SetLabel(SeverityLabel&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
79 inline Severity& WithLabel(const SeverityLabel& value) { SetLabel(value); return *this;}
80 inline Severity& WithLabel(SeverityLabel&& value) { SetLabel(std::move(value)); return *this;}
82
84
95 inline int GetNormalized() const{ return m_normalized; }
96 inline bool NormalizedHasBeenSet() const { return m_normalizedHasBeenSet; }
97 inline void SetNormalized(int value) { m_normalizedHasBeenSet = true; m_normalized = value; }
98 inline Severity& WithNormalized(int value) { SetNormalized(value); return *this;}
100
102
106 inline const Aws::String& GetOriginal() const{ return m_original; }
107 inline bool OriginalHasBeenSet() const { return m_originalHasBeenSet; }
108 inline void SetOriginal(const Aws::String& value) { m_originalHasBeenSet = true; m_original = value; }
109 inline void SetOriginal(Aws::String&& value) { m_originalHasBeenSet = true; m_original = std::move(value); }
110 inline void SetOriginal(const char* value) { m_originalHasBeenSet = true; m_original.assign(value); }
111 inline Severity& WithOriginal(const Aws::String& value) { SetOriginal(value); return *this;}
112 inline Severity& WithOriginal(Aws::String&& value) { SetOriginal(std::move(value)); return *this;}
113 inline Severity& WithOriginal(const char* value) { SetOriginal(value); return *this;}
115 private:
116
117 double m_product;
118 bool m_productHasBeenSet = false;
119
120 SeverityLabel m_label;
121 bool m_labelHasBeenSet = false;
122
123 int m_normalized;
124 bool m_normalizedHasBeenSet = false;
125
126 Aws::String m_original;
127 bool m_originalHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace SecurityHub
132} // namespace Aws
Severity & WithNormalized(int value)
Definition Severity.h:98
AWS_SECURITYHUB_API Severity()
Severity & WithOriginal(Aws::String &&value)
Definition Severity.h:112
void SetOriginal(Aws::String &&value)
Definition Severity.h:109
Severity & WithLabel(const SeverityLabel &value)
Definition Severity.h:79
void SetLabel(const SeverityLabel &value)
Definition Severity.h:77
const SeverityLabel & GetLabel() const
Definition Severity.h:75
Severity & WithOriginal(const Aws::String &value)
Definition Severity.h:111
void SetProduct(double value)
Definition Severity.h:56
void SetOriginal(const char *value)
Definition Severity.h:110
Severity & WithLabel(SeverityLabel &&value)
Definition Severity.h:80
AWS_SECURITYHUB_API Severity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Severity(Aws::Utils::Json::JsonView jsonValue)
void SetLabel(SeverityLabel &&value)
Definition Severity.h:78
const Aws::String & GetOriginal() const
Definition Severity.h:106
Severity & WithOriginal(const char *value)
Definition Severity.h:113
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Severity & WithProduct(double value)
Definition Severity.h:57
void SetOriginal(const Aws::String &value)
Definition Severity.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue