AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Category.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
34 {
35 public:
36 AWS_SUPPORT_API Category() = default;
37 AWS_SUPPORT_API Category(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SUPPORT_API Category& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCode() const { return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 template<typename CodeT = Aws::String>
49 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
50 template<typename CodeT = Aws::String>
51 Category& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 Category& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65 private:
66
67 Aws::String m_code;
68 bool m_codeHasBeenSet = false;
69
70 Aws::String m_name;
71 bool m_nameHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Support
76} // namespace Aws
AWS_SUPPORT_API Category(Aws::Utils::Json::JsonView jsonValue)
Category & WithCode(CodeT &&value)
Definition Category.h:51
AWS_SUPPORT_API Category()=default
AWS_SUPPORT_API Category & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCode(CodeT &&value)
Definition Category.h:49
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:46
const Aws::String & GetName() const
Definition Category.h:58
Category & WithName(NameT &&value)
Definition Category.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue