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/qapps/QApps_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 QApps
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_QAPPS_API Category() = default;
38 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 Category& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
61 template<typename TitleT = Aws::String>
62 Category& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
64
66
69 inline const Aws::String& GetColor() const { return m_color; }
70 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
71 template<typename ColorT = Aws::String>
72 void SetColor(ColorT&& value) { m_colorHasBeenSet = true; m_color = std::forward<ColorT>(value); }
73 template<typename ColorT = Aws::String>
74 Category& WithColor(ColorT&& value) { SetColor(std::forward<ColorT>(value)); return *this;}
76
78
81 inline int GetAppCount() const { return m_appCount; }
82 inline bool AppCountHasBeenSet() const { return m_appCountHasBeenSet; }
83 inline void SetAppCount(int value) { m_appCountHasBeenSet = true; m_appCount = value; }
84 inline Category& WithAppCount(int value) { SetAppCount(value); return *this;}
86 private:
87
88 Aws::String m_id;
89 bool m_idHasBeenSet = false;
90
91 Aws::String m_title;
92 bool m_titleHasBeenSet = false;
93
94 Aws::String m_color;
95 bool m_colorHasBeenSet = false;
96
97 int m_appCount{0};
98 bool m_appCountHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace QApps
103} // namespace Aws
bool ColorHasBeenSet() const
Definition Category.h:70
bool IdHasBeenSet() const
Definition Category.h:46
bool AppCountHasBeenSet() const
Definition Category.h:82
void SetId(IdT &&value)
Definition Category.h:48
Category & WithAppCount(int value)
Definition Category.h:84
AWS_QAPPS_API Category & operator=(Aws::Utils::Json::JsonView jsonValue)
Category & WithTitle(TitleT &&value)
Definition Category.h:62
AWS_QAPPS_API Category()=default
void SetAppCount(int value)
Definition Category.h:83
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:69
const Aws::String & GetId() const
Definition Category.h:45
void SetColor(ColorT &&value)
Definition Category.h:72
void SetTitle(TitleT &&value)
Definition Category.h:60
Category & WithId(IdT &&value)
Definition Category.h:50
Category & WithColor(ColorT &&value)
Definition Category.h:74
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