AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RelationshipSummary.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/Sector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralChannel {
23namespace Model {
24
32 public:
33 AWS_PARTNERCENTRALCHANNEL_API RelationshipSummary() = default;
34 AWS_PARTNERCENTRALCHANNEL_API RelationshipSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALCHANNEL_API RelationshipSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALCHANNEL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetRevision() const { return m_revision; }
79 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
80 template <typename RevisionT = Aws::String>
81 void SetRevision(RevisionT&& value) {
82 m_revisionHasBeenSet = true;
83 m_revision = std::forward<RevisionT>(value);
84 }
85 template <typename RevisionT = Aws::String>
86 RelationshipSummary& WithRevision(RevisionT&& value) {
87 SetRevision(std::forward<RevisionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetCatalog() const { return m_catalog; }
97 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
98 template <typename CatalogT = Aws::String>
99 void SetCatalog(CatalogT&& value) {
100 m_catalogHasBeenSet = true;
101 m_catalog = std::forward<CatalogT>(value);
102 }
103 template <typename CatalogT = Aws::String>
104 RelationshipSummary& WithCatalog(CatalogT&& value) {
105 SetCatalog(std::forward<CatalogT>(value));
106 return *this;
107 }
109
111
114 inline AssociationType GetAssociationType() const { return m_associationType; }
115 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
117 m_associationTypeHasBeenSet = true;
118 m_associationType = value;
119 }
121 SetAssociationType(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetProgramManagementAccountId() const { return m_programManagementAccountId; }
131 inline bool ProgramManagementAccountIdHasBeenSet() const { return m_programManagementAccountIdHasBeenSet; }
132 template <typename ProgramManagementAccountIdT = Aws::String>
133 void SetProgramManagementAccountId(ProgramManagementAccountIdT&& value) {
134 m_programManagementAccountIdHasBeenSet = true;
135 m_programManagementAccountId = std::forward<ProgramManagementAccountIdT>(value);
136 }
137 template <typename ProgramManagementAccountIdT = Aws::String>
138 RelationshipSummary& WithProgramManagementAccountId(ProgramManagementAccountIdT&& value) {
139 SetProgramManagementAccountId(std::forward<ProgramManagementAccountIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetAssociatedAccountId() const { return m_associatedAccountId; }
149 inline bool AssociatedAccountIdHasBeenSet() const { return m_associatedAccountIdHasBeenSet; }
150 template <typename AssociatedAccountIdT = Aws::String>
151 void SetAssociatedAccountId(AssociatedAccountIdT&& value) {
152 m_associatedAccountIdHasBeenSet = true;
153 m_associatedAccountId = std::forward<AssociatedAccountIdT>(value);
154 }
155 template <typename AssociatedAccountIdT = Aws::String>
156 RelationshipSummary& WithAssociatedAccountId(AssociatedAccountIdT&& value) {
157 SetAssociatedAccountId(std::forward<AssociatedAccountIdT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetDisplayName() const { return m_displayName; }
167 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
168 template <typename DisplayNameT = Aws::String>
169 void SetDisplayName(DisplayNameT&& value) {
170 m_displayNameHasBeenSet = true;
171 m_displayName = std::forward<DisplayNameT>(value);
172 }
173 template <typename DisplayNameT = Aws::String>
174 RelationshipSummary& WithDisplayName(DisplayNameT&& value) {
175 SetDisplayName(std::forward<DisplayNameT>(value));
176 return *this;
177 }
179
181
184 inline Sector GetSector() const { return m_sector; }
185 inline bool SectorHasBeenSet() const { return m_sectorHasBeenSet; }
186 inline void SetSector(Sector value) {
187 m_sectorHasBeenSet = true;
188 m_sector = value;
189 }
191 SetSector(value);
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
201 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
202 template <typename CreatedAtT = Aws::Utils::DateTime>
203 void SetCreatedAt(CreatedAtT&& value) {
204 m_createdAtHasBeenSet = true;
205 m_createdAt = std::forward<CreatedAtT>(value);
206 }
207 template <typename CreatedAtT = Aws::Utils::DateTime>
208 RelationshipSummary& WithCreatedAt(CreatedAtT&& value) {
209 SetCreatedAt(std::forward<CreatedAtT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
219 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
220 template <typename UpdatedAtT = Aws::Utils::DateTime>
221 void SetUpdatedAt(UpdatedAtT&& value) {
222 m_updatedAtHasBeenSet = true;
223 m_updatedAt = std::forward<UpdatedAtT>(value);
224 }
225 template <typename UpdatedAtT = Aws::Utils::DateTime>
226 RelationshipSummary& WithUpdatedAt(UpdatedAtT&& value) {
227 SetUpdatedAt(std::forward<UpdatedAtT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
237 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
238 template <typename StartDateT = Aws::Utils::DateTime>
239 void SetStartDate(StartDateT&& value) {
240 m_startDateHasBeenSet = true;
241 m_startDate = std::forward<StartDateT>(value);
242 }
243 template <typename StartDateT = Aws::Utils::DateTime>
244 RelationshipSummary& WithStartDate(StartDateT&& value) {
245 SetStartDate(std::forward<StartDateT>(value));
246 return *this;
247 }
249 private:
250 Aws::String m_arn;
251
252 Aws::String m_id;
253
254 Aws::String m_revision;
255
256 Aws::String m_catalog;
257
258 AssociationType m_associationType{AssociationType::NOT_SET};
259
260 Aws::String m_programManagementAccountId;
261
262 Aws::String m_associatedAccountId;
263
264 Aws::String m_displayName;
265
266 Sector m_sector{Sector::NOT_SET};
267
268 Aws::Utils::DateTime m_createdAt{};
269
270 Aws::Utils::DateTime m_updatedAt{};
271
272 Aws::Utils::DateTime m_startDate{};
273 bool m_arnHasBeenSet = false;
274 bool m_idHasBeenSet = false;
275 bool m_revisionHasBeenSet = false;
276 bool m_catalogHasBeenSet = false;
277 bool m_associationTypeHasBeenSet = false;
278 bool m_programManagementAccountIdHasBeenSet = false;
279 bool m_associatedAccountIdHasBeenSet = false;
280 bool m_displayNameHasBeenSet = false;
281 bool m_sectorHasBeenSet = false;
282 bool m_createdAtHasBeenSet = false;
283 bool m_updatedAtHasBeenSet = false;
284 bool m_startDateHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace PartnerCentralChannel
289} // namespace Aws
RelationshipSummary & WithStartDate(StartDateT &&value)
void SetProgramManagementAccountId(ProgramManagementAccountIdT &&value)
AWS_PARTNERCENTRALCHANNEL_API RelationshipSummary()=default
AWS_PARTNERCENTRALCHANNEL_API Aws::Utils::Json::JsonValue Jsonize() const
RelationshipSummary & WithAssociationType(AssociationType value)
RelationshipSummary & WithProgramManagementAccountId(ProgramManagementAccountIdT &&value)
RelationshipSummary & WithRevision(RevisionT &&value)
AWS_PARTNERCENTRALCHANNEL_API RelationshipSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RelationshipSummary & WithCatalog(CatalogT &&value)
RelationshipSummary & WithUpdatedAt(UpdatedAtT &&value)
RelationshipSummary & WithDisplayName(DisplayNameT &&value)
AWS_PARTNERCENTRALCHANNEL_API RelationshipSummary(Aws::Utils::Json::JsonView jsonValue)
RelationshipSummary & WithCreatedAt(CreatedAtT &&value)
RelationshipSummary & WithAssociatedAccountId(AssociatedAccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue