AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Category.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qapps/QApps_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QApps {
20namespace Model {
21
28class Category {
29 public:
30 AWS_QAPPS_API Category() = default;
33 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 Category& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTitle() const { return m_title; }
58 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
59 template <typename TitleT = Aws::String>
60 void SetTitle(TitleT&& value) {
61 m_titleHasBeenSet = true;
62 m_title = std::forward<TitleT>(value);
63 }
64 template <typename TitleT = Aws::String>
66 SetTitle(std::forward<TitleT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetColor() const { return m_color; }
76 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
77 template <typename ColorT = Aws::String>
78 void SetColor(ColorT&& value) {
79 m_colorHasBeenSet = true;
80 m_color = std::forward<ColorT>(value);
81 }
82 template <typename ColorT = Aws::String>
84 SetColor(std::forward<ColorT>(value));
85 return *this;
86 }
88
90
93 inline int GetAppCount() const { return m_appCount; }
94 inline bool AppCountHasBeenSet() const { return m_appCountHasBeenSet; }
95 inline void SetAppCount(int value) {
96 m_appCountHasBeenSet = true;
97 m_appCount = value;
98 }
99 inline Category& WithAppCount(int value) {
100 SetAppCount(value);
101 return *this;
102 }
104 private:
105 Aws::String m_id;
106
107 Aws::String m_title;
108
109 Aws::String m_color;
110
111 int m_appCount{0};
112 bool m_idHasBeenSet = false;
113 bool m_titleHasBeenSet = false;
114 bool m_colorHasBeenSet = false;
115 bool m_appCountHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace QApps
120} // namespace Aws
bool ColorHasBeenSet() const
Definition Category.h:76
bool IdHasBeenSet() const
Definition Category.h:40
bool AppCountHasBeenSet() const
Definition Category.h:94
void SetId(IdT &&value)
Definition Category.h:42
Category & WithAppCount(int value)
Definition Category.h:99
AWS_QAPPS_API Category & operator=(Aws::Utils::Json::JsonView jsonValue)
Category & WithTitle(TitleT &&value)
Definition Category.h:65
AWS_QAPPS_API Category()=default
void SetAppCount(int value)
Definition Category.h:95
bool TitleHasBeenSet() const
Definition Category.h:58
AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTitle() const
Definition Category.h:57
AWS_QAPPS_API Category(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetColor() const
Definition Category.h:75
const Aws::String & GetId() const
Definition Category.h:39
void SetColor(ColorT &&value)
Definition Category.h:78
void SetTitle(TitleT &&value)
Definition Category.h:60
Category & WithId(IdT &&value)
Definition Category.h:47
Category & WithColor(ColorT &&value)
Definition Category.h:83
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue