AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
54 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
55 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
56 inline SeverityLevel& WithCode(const Aws::String& value) { SetCode(value); return *this;}
57 inline SeverityLevel& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
58 inline SeverityLevel& WithCode(const char* value) { SetCode(value); return *this;}
60
62
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline SeverityLevel& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline SeverityLevel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline SeverityLevel& WithName(const char* value) { SetName(value); return *this;}
85 private:
86
87 Aws::String m_code;
88 bool m_codeHasBeenSet = false;
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Support
96} // namespace Aws
void SetName(Aws::String &&value)
SeverityLevel & WithCode(const Aws::String &value)
void SetCode(const char *value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
SeverityLevel & WithCode(Aws::String &&value)
void SetName(const char *value)
AWS_SUPPORT_API SeverityLevel & operator=(Aws::Utils::Json::JsonView jsonValue)
SeverityLevel & WithName(const char *value)
SeverityLevel & WithName(Aws::String &&value)
void SetCode(const Aws::String &value)
void SetCode(Aws::String &&value)
void SetName(const Aws::String &value)
SeverityLevel & WithName(const Aws::String &value)
SeverityLevel & WithCode(const char *value)
const Aws::String & GetName() const
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