AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SeverityUpdate.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/SeverityLabel.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29 public:
30 AWS_SECURITYHUB_API SeverityUpdate() = default;
31 AWS_SECURITYHUB_API SeverityUpdate(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API SeverityUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
45 inline int GetNormalized() const { return m_normalized; }
46 inline bool NormalizedHasBeenSet() const { return m_normalizedHasBeenSet; }
47 inline void SetNormalized(int value) {
48 m_normalizedHasBeenSet = true;
49 m_normalized = value;
50 }
51 inline SeverityUpdate& WithNormalized(int value) {
52 SetNormalized(value);
53 return *this;
54 }
56
58
62 inline double GetProduct() const { return m_product; }
63 inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
64 inline void SetProduct(double value) {
65 m_productHasBeenSet = true;
66 m_product = value;
67 }
68 inline SeverityUpdate& WithProduct(double value) {
69 SetProduct(value);
70 return *this;
71 }
73
75
84 inline SeverityLabel GetLabel() const { return m_label; }
85 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
86 inline void SetLabel(SeverityLabel value) {
87 m_labelHasBeenSet = true;
88 m_label = value;
89 }
91 SetLabel(value);
92 return *this;
93 }
95 private:
96 int m_normalized{0};
97
98 double m_product{0.0};
99
101 bool m_normalizedHasBeenSet = false;
102 bool m_productHasBeenSet = false;
103 bool m_labelHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace SecurityHub
108} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
SeverityUpdate & WithProduct(double value)
SeverityUpdate & WithNormalized(int value)
SeverityUpdate & WithLabel(SeverityLabel value)
AWS_SECURITYHUB_API SeverityUpdate()=default
AWS_SECURITYHUB_API SeverityUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API SeverityUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue