AWS SDK for C++  1.9.108
AWS SDK for C++
FindingProviderSeverity.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 
34  {
35  public:
40 
41 
45  inline const SeverityLabel& GetLabel() const{ return m_label; }
46 
50  inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
51 
55  inline void SetLabel(const SeverityLabel& value) { m_labelHasBeenSet = true; m_label = value; }
56 
60  inline void SetLabel(SeverityLabel&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
61 
65  inline FindingProviderSeverity& WithLabel(const SeverityLabel& value) { SetLabel(value); return *this;}
66 
70  inline FindingProviderSeverity& WithLabel(SeverityLabel&& value) { SetLabel(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetOriginal() const{ return m_original; }
77 
81  inline bool OriginalHasBeenSet() const { return m_originalHasBeenSet; }
82 
86  inline void SetOriginal(const Aws::String& value) { m_originalHasBeenSet = true; m_original = value; }
87 
91  inline void SetOriginal(Aws::String&& value) { m_originalHasBeenSet = true; m_original = std::move(value); }
92 
96  inline void SetOriginal(const char* value) { m_originalHasBeenSet = true; m_original.assign(value); }
97 
101  inline FindingProviderSeverity& WithOriginal(const Aws::String& value) { SetOriginal(value); return *this;}
102 
106  inline FindingProviderSeverity& WithOriginal(Aws::String&& value) { SetOriginal(std::move(value)); return *this;}
107 
111  inline FindingProviderSeverity& WithOriginal(const char* value) { SetOriginal(value); return *this;}
112 
113  private:
114 
115  SeverityLabel m_label;
116  bool m_labelHasBeenSet;
117 
118  Aws::String m_original;
119  bool m_originalHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace SecurityHub
124 } // namespace Aws
Aws::SecurityHub::Model::FindingProviderSeverity::FindingProviderSeverity
FindingProviderSeverity()
Aws::SecurityHub::Model::SeverityLabel
SeverityLabel
Definition: SeverityLabel.h:17
Aws::SecurityHub::Model::FindingProviderSeverity::SetLabel
void SetLabel(const SeverityLabel &value)
Definition: FindingProviderSeverity.h:55
Aws::SecurityHub::Model::FindingProviderSeverity::SetOriginal
void SetOriginal(const char *value)
Definition: FindingProviderSeverity.h:96
Aws::SecurityHub::Model::FindingProviderSeverity::SetLabel
void SetLabel(SeverityLabel &&value)
Definition: FindingProviderSeverity.h:60
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::FindingProviderSeverity::WithOriginal
FindingProviderSeverity & WithOriginal(Aws::String &&value)
Definition: FindingProviderSeverity.h:106
Aws::SecurityHub::Model::FindingProviderSeverity::GetOriginal
const Aws::String & GetOriginal() const
Definition: FindingProviderSeverity.h:76
Aws::SecurityHub::Model::FindingProviderSeverity::WithOriginal
FindingProviderSeverity & WithOriginal(const char *value)
Definition: FindingProviderSeverity.h:111
Aws::SecurityHub::Model::FindingProviderSeverity::OriginalHasBeenSet
bool OriginalHasBeenSet() const
Definition: FindingProviderSeverity.h:81
Aws::SecurityHub::Model::FindingProviderSeverity::LabelHasBeenSet
bool LabelHasBeenSet() const
Definition: FindingProviderSeverity.h:50
Aws::SecurityHub::Model::FindingProviderSeverity::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SecurityHub::Model::FindingProviderSeverity::operator=
FindingProviderSeverity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::FindingProviderSeverity
Definition: FindingProviderSeverity.h:34
Aws::SecurityHub::Model::FindingProviderSeverity::WithOriginal
FindingProviderSeverity & WithOriginal(const Aws::String &value)
Definition: FindingProviderSeverity.h:101
Aws::SecurityHub::Model::FindingProviderSeverity::WithLabel
FindingProviderSeverity & WithLabel(SeverityLabel &&value)
Definition: FindingProviderSeverity.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::FindingProviderSeverity::SetOriginal
void SetOriginal(Aws::String &&value)
Definition: FindingProviderSeverity.h:91
SeverityLabel.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::FindingProviderSeverity::WithLabel
FindingProviderSeverity & WithLabel(const SeverityLabel &value)
Definition: FindingProviderSeverity.h:65
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::FindingProviderSeverity::FindingProviderSeverity
FindingProviderSeverity(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::FindingProviderSeverity::GetLabel
const SeverityLabel & GetLabel() const
Definition: FindingProviderSeverity.h:45
Aws::SecurityHub::Model::FindingProviderSeverity::SetOriginal
void SetOriginal(const Aws::String &value)
Definition: FindingProviderSeverity.h:86