AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SeverityLevel.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Support
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_SUPPORT_API SeverityLevel() = default;
40 AWS_SUPPORT_API SeverityLevel(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetCode() const { return m_code; }
52 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 template<typename CodeT = Aws::String>
54 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
55 template<typename CodeT = Aws::String>
56 SeverityLevel& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
58
60
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 SeverityLevel& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81 private:
82
83 Aws::String m_code;
84 bool m_codeHasBeenSet = false;
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Support
92} // namespace Aws
SeverityLevel & WithName(NameT &&value)
SeverityLevel & WithCode(CodeT &&value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPORT_API SeverityLevel & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
AWS_SUPPORT_API SeverityLevel()=default
const Aws::String & GetCode() const
AWS_SUPPORT_API SeverityLevel(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue