AWS SDK for C++  1.9.131
AWS SDK for C++
Severity.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SecurityHub
23 {
24 namespace Model
25 {
26 
39  {
40  public:
45 
46 
53  inline double GetProduct() const{ return m_product; }
54 
61  inline bool ProductHasBeenSet() const { return m_productHasBeenSet; }
62 
69  inline void SetProduct(double value) { m_productHasBeenSet = true; m_product = value; }
70 
77  inline Severity& WithProduct(double value) { SetProduct(value); return *this;}
78 
79 
94  inline const SeverityLabel& GetLabel() const{ return m_label; }
95 
110  inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
111 
126  inline void SetLabel(const SeverityLabel& value) { m_labelHasBeenSet = true; m_label = value; }
127 
142  inline void SetLabel(SeverityLabel&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
143 
158  inline Severity& WithLabel(const SeverityLabel& value) { SetLabel(value); return *this;}
159 
174  inline Severity& WithLabel(SeverityLabel&& value) { SetLabel(std::move(value)); return *this;}
175 
176 
187  inline int GetNormalized() const{ return m_normalized; }
188 
199  inline bool NormalizedHasBeenSet() const { return m_normalizedHasBeenSet; }
200 
211  inline void SetNormalized(int value) { m_normalizedHasBeenSet = true; m_normalized = value; }
212 
223  inline Severity& WithNormalized(int value) { SetNormalized(value); return *this;}
224 
225 
229  inline const Aws::String& GetOriginal() const{ return m_original; }
230 
234  inline bool OriginalHasBeenSet() const { return m_originalHasBeenSet; }
235 
239  inline void SetOriginal(const Aws::String& value) { m_originalHasBeenSet = true; m_original = value; }
240 
244  inline void SetOriginal(Aws::String&& value) { m_originalHasBeenSet = true; m_original = std::move(value); }
245 
249  inline void SetOriginal(const char* value) { m_originalHasBeenSet = true; m_original.assign(value); }
250 
254  inline Severity& WithOriginal(const Aws::String& value) { SetOriginal(value); return *this;}
255 
259  inline Severity& WithOriginal(Aws::String&& value) { SetOriginal(std::move(value)); return *this;}
260 
264  inline Severity& WithOriginal(const char* value) { SetOriginal(value); return *this;}
265 
266  private:
267 
268  double m_product;
269  bool m_productHasBeenSet;
270 
271  SeverityLabel m_label;
272  bool m_labelHasBeenSet;
273 
274  int m_normalized;
275  bool m_normalizedHasBeenSet;
276 
277  Aws::String m_original;
278  bool m_originalHasBeenSet;
279  };
280 
281 } // namespace Model
282 } // namespace SecurityHub
283 } // namespace Aws
Aws::SecurityHub::Model::Severity::OriginalHasBeenSet
bool OriginalHasBeenSet() const
Definition: Severity.h:234
Aws::SecurityHub::Model::Severity::SetLabel
void SetLabel(const SeverityLabel &value)
Definition: Severity.h:126
Aws::SecurityHub::Model::Severity::Severity
Severity(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::SeverityLabel
SeverityLabel
Definition: SeverityLabel.h:17
Aws::SecurityHub::Model::Severity::SetLabel
void SetLabel(SeverityLabel &&value)
Definition: Severity.h:142
Aws::SecurityHub::Model::Severity::GetOriginal
const Aws::String & GetOriginal() const
Definition: Severity.h:229
Aws::SecurityHub::Model::Severity
Definition: Severity.h:39
Aws::SecurityHub::Model::Severity::WithLabel
Severity & WithLabel(const SeverityLabel &value)
Definition: Severity.h:158
Aws::SecurityHub::Model::Severity::WithNormalized
Severity & WithNormalized(int value)
Definition: Severity.h:223
Aws::SecurityHub::Model::Severity::GetProduct
double GetProduct() const
Definition: Severity.h:53
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::Severity::GetNormalized
int GetNormalized() const
Definition: Severity.h:187
Aws::SecurityHub::Model::Severity::SetProduct
void SetProduct(double value)
Definition: Severity.h:69
Aws::SecurityHub::Model::Severity::SetNormalized
void SetNormalized(int value)
Definition: Severity.h:211
Aws::SecurityHub::Model::Severity::ProductHasBeenSet
bool ProductHasBeenSet() const
Definition: Severity.h:61
Aws::SecurityHub::Model::Severity::NormalizedHasBeenSet
bool NormalizedHasBeenSet() const
Definition: Severity.h:199
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SecurityHub::Model::Severity::GetLabel
const SeverityLabel & GetLabel() const
Definition: Severity.h:94
AWSString.h
Aws::SecurityHub::Model::Severity::WithOriginal
Severity & WithOriginal(Aws::String &&value)
Definition: Severity.h:259
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::Severity::operator=
Severity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::Severity::SetOriginal
void SetOriginal(const Aws::String &value)
Definition: Severity.h:239
Aws::SecurityHub::Model::Severity::WithProduct
Severity & WithProduct(double value)
Definition: Severity.h:77
Aws
Definition: AccessManagementClient.h:15
SeverityLabel.h
Aws::SecurityHub::Model::Severity::Severity
Severity()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::Severity::SetOriginal
void SetOriginal(const char *value)
Definition: Severity.h:249
Aws::SecurityHub::Model::Severity::LabelHasBeenSet
bool LabelHasBeenSet() const
Definition: Severity.h:110
Aws::SecurityHub::Model::Severity::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::Severity::WithOriginal
Severity & WithOriginal(const char *value)
Definition: Severity.h:264
Aws::SecurityHub::Model::Severity::WithLabel
Severity & WithLabel(SeverityLabel &&value)
Definition: Severity.h:174
Aws::SecurityHub::Model::Severity::WithOriginal
Severity & WithOriginal(const Aws::String &value)
Definition: Severity.h:254
Aws::SecurityHub::Model::Severity::SetOriginal
void SetOriginal(Aws::String &&value)
Definition: Severity.h:244