AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Category.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
29class Category {
30 public:
31 AWS_SUPPORT_API Category() = default;
32 AWS_SUPPORT_API Category(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SUPPORT_API Category& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCode() const { return m_code; }
41 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
42 template <typename CodeT = Aws::String>
43 void SetCode(CodeT&& value) {
44 m_codeHasBeenSet = true;
45 m_code = std::forward<CodeT>(value);
46 }
47 template <typename CodeT = Aws::String>
48 Category& WithCode(CodeT&& value) {
49 SetCode(std::forward<CodeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 Category& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_code;
73
74 Aws::String m_name;
75 bool m_codeHasBeenSet = false;
76 bool m_nameHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Support
81} // namespace Aws
AWS_SUPPORT_API Category(Aws::Utils::Json::JsonView jsonValue)
Category & WithCode(CodeT &&value)
Definition Category.h:48
AWS_SUPPORT_API Category()=default
AWS_SUPPORT_API Category & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCode(CodeT &&value)
Definition Category.h:43
void SetName(NameT &&value)
Definition Category.h:61
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCode() const
Definition Category.h:40
const Aws::String & GetName() const
Definition Category.h:58
Category & WithName(NameT &&value)
Definition Category.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue