AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SeverityLevel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/support/Support_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Support {
20namespace Model {
21
33 public:
34 AWS_SUPPORT_API SeverityLevel() = default;
35 AWS_SUPPORT_API SeverityLevel(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetCode() const { return m_code; }
46 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
47 template <typename CodeT = Aws::String>
48 void SetCode(CodeT&& value) {
49 m_codeHasBeenSet = true;
50 m_code = std::forward<CodeT>(value);
51 }
52 template <typename CodeT = Aws::String>
53 SeverityLevel& WithCode(CodeT&& value) {
54 SetCode(std::forward<CodeT>(value));
55 return *this;
56 }
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) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
82 SeverityLevel& WithName(NameT&& value) {
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_code;
89
90 Aws::String m_name;
91 bool m_codeHasBeenSet = false;
92 bool m_nameHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace Support
97} // 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