AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 SeverityLabel GetLabel() const { return m_label; }
76 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
77 inline void SetLabel(SeverityLabel value) { m_labelHasBeenSet = true; m_label = value; }
78 inline Severity& WithLabel(SeverityLabel value) { SetLabel(value); return *this;}
80
82
93 inline int GetNormalized() const { return m_normalized; }
94 inline bool NormalizedHasBeenSet() const { return m_normalizedHasBeenSet; }
95 inline void SetNormalized(int value) { m_normalizedHasBeenSet = true; m_normalized = value; }
96 inline Severity& WithNormalized(int value) { SetNormalized(value); return *this;}
98
100
104 inline const Aws::String& GetOriginal() const { return m_original; }
105 inline bool OriginalHasBeenSet() const { return m_originalHasBeenSet; }
106 template<typename OriginalT = Aws::String>
107 void SetOriginal(OriginalT&& value) { m_originalHasBeenSet = true; m_original = std::forward<OriginalT>(value); }
108 template<typename OriginalT = Aws::String>
109 Severity& WithOriginal(OriginalT&& value) { SetOriginal(std::forward<OriginalT>(value)); return *this;}
111 private:
112
113 double m_product{0.0};
114 bool m_productHasBeenSet = false;
115
117 bool m_labelHasBeenSet = false;
118
119 int m_normalized{0};
120 bool m_normalizedHasBeenSet = false;
121
122 Aws::String m_original;
123 bool m_originalHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace SecurityHub
128} // namespace Aws
Severity & WithNormalized(int value)
Definition Severity.h:96
void SetOriginal(OriginalT &&value)
Definition Severity.h:107
AWS_SECURITYHUB_API Severity()=default
Severity & WithOriginal(OriginalT &&value)
Definition Severity.h:109
Severity & WithLabel(SeverityLabel value)
Definition Severity.h:78
SeverityLabel GetLabel() const
Definition Severity.h:75
void SetProduct(double value)
Definition Severity.h:56
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:77
const Aws::String & GetOriginal() const
Definition Severity.h:104
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Severity & WithProduct(double value)
Definition Severity.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue