AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RelationshipDetail.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-channel/PartnerCentralChannel_EXPORTS.h>
10#include <aws/partnercentral-channel/model/AssociationType.h>
11#include <aws/partnercentral-channel/model/ResaleAccountModel.h>
12#include <aws/partnercentral-channel/model/Sector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PartnerCentralChannel {
24namespace Model {
25
33 public:
34 AWS_PARTNERCENTRALCHANNEL_API RelationshipDetail() = default;
35 AWS_PARTNERCENTRALCHANNEL_API RelationshipDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALCHANNEL_API RelationshipDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALCHANNEL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 RelationshipDetail& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(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 RelationshipDetail& WithId(IdT&& value) {
70 SetId(std::forward<IdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetRevision() const { return m_revision; }
80 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
81 template <typename RevisionT = Aws::String>
82 void SetRevision(RevisionT&& value) {
83 m_revisionHasBeenSet = true;
84 m_revision = std::forward<RevisionT>(value);
85 }
86 template <typename RevisionT = Aws::String>
87 RelationshipDetail& WithRevision(RevisionT&& value) {
88 SetRevision(std::forward<RevisionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetCatalog() const { return m_catalog; }
98 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
99 template <typename CatalogT = Aws::String>
100 void SetCatalog(CatalogT&& value) {
101 m_catalogHasBeenSet = true;
102 m_catalog = std::forward<CatalogT>(value);
103 }
104 template <typename CatalogT = Aws::String>
105 RelationshipDetail& WithCatalog(CatalogT&& value) {
106 SetCatalog(std::forward<CatalogT>(value));
107 return *this;
108 }
110
112
115 inline AssociationType GetAssociationType() const { return m_associationType; }
116 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
118 m_associationTypeHasBeenSet = true;
119 m_associationType = value;
120 }
122 SetAssociationType(value);
123 return *this;
124 }
126
128
131 inline const Aws::String& GetProgramManagementAccountId() const { return m_programManagementAccountId; }
132 inline bool ProgramManagementAccountIdHasBeenSet() const { return m_programManagementAccountIdHasBeenSet; }
133 template <typename ProgramManagementAccountIdT = Aws::String>
134 void SetProgramManagementAccountId(ProgramManagementAccountIdT&& value) {
135 m_programManagementAccountIdHasBeenSet = true;
136 m_programManagementAccountId = std::forward<ProgramManagementAccountIdT>(value);
137 }
138 template <typename ProgramManagementAccountIdT = Aws::String>
139 RelationshipDetail& WithProgramManagementAccountId(ProgramManagementAccountIdT&& value) {
140 SetProgramManagementAccountId(std::forward<ProgramManagementAccountIdT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetAssociatedAccountId() const { return m_associatedAccountId; }
150 inline bool AssociatedAccountIdHasBeenSet() const { return m_associatedAccountIdHasBeenSet; }
151 template <typename AssociatedAccountIdT = Aws::String>
152 void SetAssociatedAccountId(AssociatedAccountIdT&& value) {
153 m_associatedAccountIdHasBeenSet = true;
154 m_associatedAccountId = std::forward<AssociatedAccountIdT>(value);
155 }
156 template <typename AssociatedAccountIdT = Aws::String>
157 RelationshipDetail& WithAssociatedAccountId(AssociatedAccountIdT&& value) {
158 SetAssociatedAccountId(std::forward<AssociatedAccountIdT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetDisplayName() const { return m_displayName; }
168 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
169 template <typename DisplayNameT = Aws::String>
170 void SetDisplayName(DisplayNameT&& value) {
171 m_displayNameHasBeenSet = true;
172 m_displayName = std::forward<DisplayNameT>(value);
173 }
174 template <typename DisplayNameT = Aws::String>
175 RelationshipDetail& WithDisplayName(DisplayNameT&& value) {
176 SetDisplayName(std::forward<DisplayNameT>(value));
177 return *this;
178 }
180
182
185 inline ResaleAccountModel GetResaleAccountModel() const { return m_resaleAccountModel; }
186 inline bool ResaleAccountModelHasBeenSet() const { return m_resaleAccountModelHasBeenSet; }
188 m_resaleAccountModelHasBeenSet = true;
189 m_resaleAccountModel = value;
190 }
193 return *this;
194 }
196
198
201 inline Sector GetSector() const { return m_sector; }
202 inline bool SectorHasBeenSet() const { return m_sectorHasBeenSet; }
203 inline void SetSector(Sector value) {
204 m_sectorHasBeenSet = true;
205 m_sector = value;
206 }
208 SetSector(value);
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
218 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
219 template <typename CreatedAtT = Aws::Utils::DateTime>
220 void SetCreatedAt(CreatedAtT&& value) {
221 m_createdAtHasBeenSet = true;
222 m_createdAt = std::forward<CreatedAtT>(value);
223 }
224 template <typename CreatedAtT = Aws::Utils::DateTime>
225 RelationshipDetail& WithCreatedAt(CreatedAtT&& value) {
226 SetCreatedAt(std::forward<CreatedAtT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
236 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
237 template <typename UpdatedAtT = Aws::Utils::DateTime>
238 void SetUpdatedAt(UpdatedAtT&& value) {
239 m_updatedAtHasBeenSet = true;
240 m_updatedAt = std::forward<UpdatedAtT>(value);
241 }
242 template <typename UpdatedAtT = Aws::Utils::DateTime>
243 RelationshipDetail& WithUpdatedAt(UpdatedAtT&& value) {
244 SetUpdatedAt(std::forward<UpdatedAtT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
254 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
255 template <typename StartDateT = Aws::Utils::DateTime>
256 void SetStartDate(StartDateT&& value) {
257 m_startDateHasBeenSet = true;
258 m_startDate = std::forward<StartDateT>(value);
259 }
260 template <typename StartDateT = Aws::Utils::DateTime>
261 RelationshipDetail& WithStartDate(StartDateT&& value) {
262 SetStartDate(std::forward<StartDateT>(value));
263 return *this;
264 }
266 private:
267 Aws::String m_arn;
268
269 Aws::String m_id;
270
271 Aws::String m_revision;
272
273 Aws::String m_catalog;
274
275 AssociationType m_associationType{AssociationType::NOT_SET};
276
277 Aws::String m_programManagementAccountId;
278
279 Aws::String m_associatedAccountId;
280
281 Aws::String m_displayName;
282
284
285 Sector m_sector{Sector::NOT_SET};
286
287 Aws::Utils::DateTime m_createdAt{};
288
289 Aws::Utils::DateTime m_updatedAt{};
290
291 Aws::Utils::DateTime m_startDate{};
292 bool m_arnHasBeenSet = false;
293 bool m_idHasBeenSet = false;
294 bool m_revisionHasBeenSet = false;
295 bool m_catalogHasBeenSet = false;
296 bool m_associationTypeHasBeenSet = false;
297 bool m_programManagementAccountIdHasBeenSet = false;
298 bool m_associatedAccountIdHasBeenSet = false;
299 bool m_displayNameHasBeenSet = false;
300 bool m_resaleAccountModelHasBeenSet = false;
301 bool m_sectorHasBeenSet = false;
302 bool m_createdAtHasBeenSet = false;
303 bool m_updatedAtHasBeenSet = false;
304 bool m_startDateHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace PartnerCentralChannel
309} // namespace Aws
void SetAssociatedAccountId(AssociatedAccountIdT &&value)
RelationshipDetail & WithProgramManagementAccountId(ProgramManagementAccountIdT &&value)
RelationshipDetail & WithStartDate(StartDateT &&value)
RelationshipDetail & WithCreatedAt(CreatedAtT &&value)
RelationshipDetail & WithAssociationType(AssociationType value)
RelationshipDetail & WithResaleAccountModel(ResaleAccountModel value)
RelationshipDetail & WithCatalog(CatalogT &&value)
RelationshipDetail & WithAssociatedAccountId(AssociatedAccountIdT &&value)
AWS_PARTNERCENTRALCHANNEL_API RelationshipDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALCHANNEL_API RelationshipDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALCHANNEL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALCHANNEL_API RelationshipDetail()=default
RelationshipDetail & WithDisplayName(DisplayNameT &&value)
RelationshipDetail & WithUpdatedAt(UpdatedAtT &&value)
void SetProgramManagementAccountId(ProgramManagementAccountIdT &&value)
RelationshipDetail & WithRevision(RevisionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue