AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SolutionBase.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
10#include <aws/partnercentral-selling/model/SolutionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PartnerCentralSelling {
22namespace Model {
23
31 public:
32 AWS_PARTNERCENTRALSELLING_API SolutionBase() = default;
33 AWS_PARTNERCENTRALSELLING_API SolutionBase(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALSELLING_API SolutionBase& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetCatalog() const { return m_catalog; }
44 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
45 template <typename CatalogT = Aws::String>
46 void SetCatalog(CatalogT&& value) {
47 m_catalogHasBeenSet = true;
48 m_catalog = std::forward<CatalogT>(value);
49 }
50 template <typename CatalogT = Aws::String>
51 SolutionBase& WithCatalog(CatalogT&& value) {
52 SetCatalog(std::forward<CatalogT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 template <typename IdT = Aws::String>
64 void SetId(IdT&& value) {
65 m_idHasBeenSet = true;
66 m_id = std::forward<IdT>(value);
67 }
68 template <typename IdT = Aws::String>
69 SolutionBase& WithId(IdT&& value) {
70 SetId(std::forward<IdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetArn() const { return m_arn; }
81 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
82 template <typename ArnT = Aws::String>
83 void SetArn(ArnT&& value) {
84 m_arnHasBeenSet = true;
85 m_arn = std::forward<ArnT>(value);
86 }
87 template <typename ArnT = Aws::String>
88 SolutionBase& WithArn(ArnT&& value) {
89 SetArn(std::forward<ArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template <typename NameT = Aws::String>
101 void SetName(NameT&& value) {
102 m_nameHasBeenSet = true;
103 m_name = std::forward<NameT>(value);
104 }
105 template <typename NameT = Aws::String>
106 SolutionBase& WithName(NameT&& value) {
107 SetName(std::forward<NameT>(value));
108 return *this;
109 }
111
113
120 inline SolutionStatus GetStatus() const { return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 inline void SetStatus(SolutionStatus value) {
123 m_statusHasBeenSet = true;
124 m_status = value;
125 }
127 SetStatus(value);
128 return *this;
129 }
131
133
142 inline const Aws::String& GetCategory() const { return m_category; }
143 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
144 template <typename CategoryT = Aws::String>
145 void SetCategory(CategoryT&& value) {
146 m_categoryHasBeenSet = true;
147 m_category = std::forward<CategoryT>(value);
148 }
149 template <typename CategoryT = Aws::String>
150 SolutionBase& WithCategory(CategoryT&& value) {
151 SetCategory(std::forward<CategoryT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
161 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
162 template <typename CreatedDateT = Aws::Utils::DateTime>
163 void SetCreatedDate(CreatedDateT&& value) {
164 m_createdDateHasBeenSet = true;
165 m_createdDate = std::forward<CreatedDateT>(value);
166 }
167 template <typename CreatedDateT = Aws::Utils::DateTime>
168 SolutionBase& WithCreatedDate(CreatedDateT&& value) {
169 SetCreatedDate(std::forward<CreatedDateT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_catalog;
175
176 Aws::String m_id;
177
178 Aws::String m_arn;
179
180 Aws::String m_name;
181
183
184 Aws::String m_category;
185
186 Aws::Utils::DateTime m_createdDate{};
187 bool m_catalogHasBeenSet = false;
188 bool m_idHasBeenSet = false;
189 bool m_arnHasBeenSet = false;
190 bool m_nameHasBeenSet = false;
191 bool m_statusHasBeenSet = false;
192 bool m_categoryHasBeenSet = false;
193 bool m_createdDateHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace PartnerCentralSelling
198} // namespace Aws
SolutionBase & WithStatus(SolutionStatus value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API SolutionBase()=default
const Aws::Utils::DateTime & GetCreatedDate() const
AWS_PARTNERCENTRALSELLING_API SolutionBase & operator=(Aws::Utils::Json::JsonView jsonValue)
SolutionBase & WithCatalog(CatalogT &&value)
SolutionBase & WithCreatedDate(CreatedDateT &&value)
SolutionBase & WithCategory(CategoryT &&value)
AWS_PARTNERCENTRALSELLING_API SolutionBase(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue