AWS SDK for C++  1.9.108
AWS SDK for C++
SeverityUpdate.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SecurityHub
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
50  inline int GetNormalized() const{ return m_normalized; }
51 
61  inline bool NormalizedHasBeenSet() const { return m_normalizedHasBeenSet; }
62 
72  inline void SetNormalized(int value) { m_normalizedHasBeenSet = true; m_normalized = value; }
73 
83  inline SeverityUpdate& WithNormalized(int value) { SetNormalized(value); return *this;}
84 
85 
90  inline double GetProduct() const{ return m_product; }
91 
96  inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
97 
102  inline void SetProduct(double value) { m_productHasBeenSet = true; m_product = value; }
103 
108  inline SeverityUpdate& WithProduct(double value) { SetProduct(value); return *this;}
109 
110 
120  inline const SeverityLabel& GetLabel() const{ return m_label; }
121 
131  inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
132 
142  inline void SetLabel(const SeverityLabel& value) { m_labelHasBeenSet = true; m_label = value; }
143 
153  inline void SetLabel(SeverityLabel&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
154 
164  inline SeverityUpdate& WithLabel(const SeverityLabel& value) { SetLabel(value); return *this;}
165 
175  inline SeverityUpdate& WithLabel(SeverityLabel&& value) { SetLabel(std::move(value)); return *this;}
176 
177  private:
178 
179  int m_normalized;
180  bool m_normalizedHasBeenSet;
181 
182  double m_product;
183  bool m_productHasBeenSet;
184 
185  SeverityLabel m_label;
186  bool m_labelHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace SecurityHub
191 } // namespace Aws
Aws::SecurityHub::Model::SeverityUpdate::WithLabel
SeverityUpdate & WithLabel(SeverityLabel &&value)
Definition: SeverityUpdate.h:175
Aws::SecurityHub::Model::SeverityUpdate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::SeverityUpdate::GetProduct
double GetProduct() const
Definition: SeverityUpdate.h:90
Aws::SecurityHub::Model::SeverityLabel
SeverityLabel
Definition: SeverityLabel.h:17
Aws::SecurityHub::Model::SeverityUpdate::SeverityUpdate
SeverityUpdate()
Aws::SecurityHub::Model::SeverityUpdate::operator=
SeverityUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::SeverityUpdate::SetLabel
void SetLabel(SeverityLabel &&value)
Definition: SeverityUpdate.h:153
Aws::SecurityHub::Model::SeverityUpdate::SeverityUpdate
SeverityUpdate(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::SeverityUpdate::LabelHasBeenSet
bool LabelHasBeenSet() const
Definition: SeverityUpdate.h:131
Aws::SecurityHub::Model::SeverityUpdate::NormalizedHasBeenSet
bool NormalizedHasBeenSet() const
Definition: SeverityUpdate.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::SeverityUpdate::ProductHasBeenSet
bool ProductHasBeenSet() const
Definition: SeverityUpdate.h:96
Aws::SecurityHub::Model::SeverityUpdate::SetNormalized
void SetNormalized(int value)
Definition: SeverityUpdate.h:72
Aws::SecurityHub::Model::SeverityUpdate::SetProduct
void SetProduct(double value)
Definition: SeverityUpdate.h:102
Aws::SecurityHub::Model::SeverityUpdate
Definition: SeverityUpdate.h:33
Aws::SecurityHub::Model::SeverityUpdate::WithProduct
SeverityUpdate & WithProduct(double value)
Definition: SeverityUpdate.h:108
Aws::SecurityHub::Model::SeverityUpdate::GetLabel
const SeverityLabel & GetLabel() const
Definition: SeverityUpdate.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::SeverityUpdate::GetNormalized
int GetNormalized() const
Definition: SeverityUpdate.h:50
SeverityLabel.h
Aws::SecurityHub::Model::SeverityUpdate::WithNormalized
SeverityUpdate & WithNormalized(int value)
Definition: SeverityUpdate.h:83
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::SeverityUpdate::SetLabel
void SetLabel(const SeverityLabel &value)
Definition: SeverityUpdate.h:142
Aws::SecurityHub::Model::SeverityUpdate::WithLabel
SeverityUpdate & WithLabel(const SeverityLabel &value)
Definition: SeverityUpdate.h:164