AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Severity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/SeverityLabel.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
34class Severity {
35 public:
36 AWS_SECURITYHUB_API Severity() = default;
37 AWS_SECURITYHUB_API Severity(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Severity& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
48 inline double GetProduct() const { return m_product; }
49 inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
50 inline void SetProduct(double value) {
51 m_productHasBeenSet = true;
52 m_product = value;
53 }
54 inline Severity& WithProduct(double value) {
55 SetProduct(value);
56 return *this;
57 }
59
61
75 inline SeverityLabel GetLabel() const { return m_label; }
76 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
77 inline void SetLabel(SeverityLabel value) {
78 m_labelHasBeenSet = true;
79 m_label = value;
80 }
82 SetLabel(value);
83 return *this;
84 }
86
88
99 inline int GetNormalized() const { return m_normalized; }
100 inline bool NormalizedHasBeenSet() const { return m_normalizedHasBeenSet; }
101 inline void SetNormalized(int value) {
102 m_normalizedHasBeenSet = true;
103 m_normalized = value;
104 }
105 inline Severity& WithNormalized(int value) {
106 SetNormalized(value);
107 return *this;
108 }
110
112
116 inline const Aws::String& GetOriginal() const { return m_original; }
117 inline bool OriginalHasBeenSet() const { return m_originalHasBeenSet; }
118 template <typename OriginalT = Aws::String>
119 void SetOriginal(OriginalT&& value) {
120 m_originalHasBeenSet = true;
121 m_original = std::forward<OriginalT>(value);
122 }
123 template <typename OriginalT = Aws::String>
124 Severity& WithOriginal(OriginalT&& value) {
125 SetOriginal(std::forward<OriginalT>(value));
126 return *this;
127 }
129 private:
130 double m_product{0.0};
131
133
134 int m_normalized{0};
135
136 Aws::String m_original;
137 bool m_productHasBeenSet = false;
138 bool m_labelHasBeenSet = false;
139 bool m_normalizedHasBeenSet = false;
140 bool m_originalHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace SecurityHub
145} // namespace Aws
Severity & WithNormalized(int value)
Definition Severity.h:105
void SetOriginal(OriginalT &&value)
Definition Severity.h:119
AWS_SECURITYHUB_API Severity()=default
Severity & WithOriginal(OriginalT &&value)
Definition Severity.h:124
Severity & WithLabel(SeverityLabel value)
Definition Severity.h:81
SeverityLabel GetLabel() const
Definition Severity.h:75
void SetProduct(double value)
Definition Severity.h:50
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:116
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Severity & WithProduct(double value)
Definition Severity.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue