AWS SDK for C++

AWS SDK for C++ Version 1.11.765

Loading...
Searching...
No Matches
ProcurementPortalPreference.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/invoicing/Invoicing_EXPORTS.h>
11#include <aws/invoicing/model/BuyerDomain.h>
12#include <aws/invoicing/model/Contact.h>
13#include <aws/invoicing/model/EinvoiceDeliveryPreference.h>
14#include <aws/invoicing/model/ProcurementPortalName.h>
15#include <aws/invoicing/model/ProcurementPortalPreferenceSelector.h>
16#include <aws/invoicing/model/ProcurementPortalPreferenceStatus.h>
17#include <aws/invoicing/model/SupplierDomain.h>
18#include <aws/invoicing/model/TestEnvPreference.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Invoicing {
30namespace Model {
31
40 public:
41 AWS_INVOICING_API ProcurementPortalPreference() = default;
44 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
51 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
52 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
53 template <typename AwsAccountIdT = Aws::String>
54 void SetAwsAccountId(AwsAccountIdT&& value) {
55 m_awsAccountIdHasBeenSet = true;
56 m_awsAccountId = std::forward<AwsAccountIdT>(value);
57 }
58 template <typename AwsAccountIdT = Aws::String>
60 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetProcurementPortalPreferenceArn() const { return m_procurementPortalPreferenceArn; }
70 inline bool ProcurementPortalPreferenceArnHasBeenSet() const { return m_procurementPortalPreferenceArnHasBeenSet; }
71 template <typename ProcurementPortalPreferenceArnT = Aws::String>
72 void SetProcurementPortalPreferenceArn(ProcurementPortalPreferenceArnT&& value) {
73 m_procurementPortalPreferenceArnHasBeenSet = true;
74 m_procurementPortalPreferenceArn = std::forward<ProcurementPortalPreferenceArnT>(value);
75 }
76 template <typename ProcurementPortalPreferenceArnT = Aws::String>
77 ProcurementPortalPreference& WithProcurementPortalPreferenceArn(ProcurementPortalPreferenceArnT&& value) {
78 SetProcurementPortalPreferenceArn(std::forward<ProcurementPortalPreferenceArnT>(value));
79 return *this;
80 }
82
84
87 inline ProcurementPortalName GetProcurementPortalName() const { return m_procurementPortalName; }
88 inline bool ProcurementPortalNameHasBeenSet() const { return m_procurementPortalNameHasBeenSet; }
90 m_procurementPortalNameHasBeenSet = true;
91 m_procurementPortalName = value;
92 }
95 return *this;
96 }
98
100
103 inline BuyerDomain GetBuyerDomain() const { return m_buyerDomain; }
104 inline bool BuyerDomainHasBeenSet() const { return m_buyerDomainHasBeenSet; }
105 inline void SetBuyerDomain(BuyerDomain value) {
106 m_buyerDomainHasBeenSet = true;
107 m_buyerDomain = value;
108 }
110 SetBuyerDomain(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetBuyerIdentifier() const { return m_buyerIdentifier; }
120 inline bool BuyerIdentifierHasBeenSet() const { return m_buyerIdentifierHasBeenSet; }
121 template <typename BuyerIdentifierT = Aws::String>
122 void SetBuyerIdentifier(BuyerIdentifierT&& value) {
123 m_buyerIdentifierHasBeenSet = true;
124 m_buyerIdentifier = std::forward<BuyerIdentifierT>(value);
125 }
126 template <typename BuyerIdentifierT = Aws::String>
128 SetBuyerIdentifier(std::forward<BuyerIdentifierT>(value));
129 return *this;
130 }
132
134
137 inline SupplierDomain GetSupplierDomain() const { return m_supplierDomain; }
138 inline bool SupplierDomainHasBeenSet() const { return m_supplierDomainHasBeenSet; }
140 m_supplierDomainHasBeenSet = true;
141 m_supplierDomain = value;
142 }
144 SetSupplierDomain(value);
145 return *this;
146 }
148
150
153 inline const Aws::String& GetSupplierIdentifier() const { return m_supplierIdentifier; }
154 inline bool SupplierIdentifierHasBeenSet() const { return m_supplierIdentifierHasBeenSet; }
155 template <typename SupplierIdentifierT = Aws::String>
156 void SetSupplierIdentifier(SupplierIdentifierT&& value) {
157 m_supplierIdentifierHasBeenSet = true;
158 m_supplierIdentifier = std::forward<SupplierIdentifierT>(value);
159 }
160 template <typename SupplierIdentifierT = Aws::String>
162 SetSupplierIdentifier(std::forward<SupplierIdentifierT>(value));
163 return *this;
164 }
166
168
169 inline const ProcurementPortalPreferenceSelector& GetSelector() const { return m_selector; }
170 inline bool SelectorHasBeenSet() const { return m_selectorHasBeenSet; }
171 template <typename SelectorT = ProcurementPortalPreferenceSelector>
172 void SetSelector(SelectorT&& value) {
173 m_selectorHasBeenSet = true;
174 m_selector = std::forward<SelectorT>(value);
175 }
176 template <typename SelectorT = ProcurementPortalPreferenceSelector>
178 SetSelector(std::forward<SelectorT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetProcurementPortalSharedSecret() const { return m_procurementPortalSharedSecret; }
189 inline bool ProcurementPortalSharedSecretHasBeenSet() const { return m_procurementPortalSharedSecretHasBeenSet; }
190 template <typename ProcurementPortalSharedSecretT = Aws::String>
191 void SetProcurementPortalSharedSecret(ProcurementPortalSharedSecretT&& value) {
192 m_procurementPortalSharedSecretHasBeenSet = true;
193 m_procurementPortalSharedSecret = std::forward<ProcurementPortalSharedSecretT>(value);
194 }
195 template <typename ProcurementPortalSharedSecretT = Aws::String>
196 ProcurementPortalPreference& WithProcurementPortalSharedSecret(ProcurementPortalSharedSecretT&& value) {
197 SetProcurementPortalSharedSecret(std::forward<ProcurementPortalSharedSecretT>(value));
198 return *this;
199 }
201
203
207 inline const Aws::String& GetProcurementPortalInstanceEndpoint() const { return m_procurementPortalInstanceEndpoint; }
208 inline bool ProcurementPortalInstanceEndpointHasBeenSet() const { return m_procurementPortalInstanceEndpointHasBeenSet; }
209 template <typename ProcurementPortalInstanceEndpointT = Aws::String>
210 void SetProcurementPortalInstanceEndpoint(ProcurementPortalInstanceEndpointT&& value) {
211 m_procurementPortalInstanceEndpointHasBeenSet = true;
212 m_procurementPortalInstanceEndpoint = std::forward<ProcurementPortalInstanceEndpointT>(value);
213 }
214 template <typename ProcurementPortalInstanceEndpointT = Aws::String>
215 ProcurementPortalPreference& WithProcurementPortalInstanceEndpoint(ProcurementPortalInstanceEndpointT&& value) {
216 SetProcurementPortalInstanceEndpoint(std::forward<ProcurementPortalInstanceEndpointT>(value));
217 return *this;
218 }
220
222
226 inline const Aws::String& GetPurchaseOrderRetrievalEndpoint() const { return m_purchaseOrderRetrievalEndpoint; }
227 inline bool PurchaseOrderRetrievalEndpointHasBeenSet() const { return m_purchaseOrderRetrievalEndpointHasBeenSet; }
228 template <typename PurchaseOrderRetrievalEndpointT = Aws::String>
229 void SetPurchaseOrderRetrievalEndpoint(PurchaseOrderRetrievalEndpointT&& value) {
230 m_purchaseOrderRetrievalEndpointHasBeenSet = true;
231 m_purchaseOrderRetrievalEndpoint = std::forward<PurchaseOrderRetrievalEndpointT>(value);
232 }
233 template <typename PurchaseOrderRetrievalEndpointT = Aws::String>
234 ProcurementPortalPreference& WithPurchaseOrderRetrievalEndpoint(PurchaseOrderRetrievalEndpointT&& value) {
235 SetPurchaseOrderRetrievalEndpoint(std::forward<PurchaseOrderRetrievalEndpointT>(value));
236 return *this;
237 }
239
241
245 inline const TestEnvPreference& GetTestEnvPreference() const { return m_testEnvPreference; }
246 inline bool TestEnvPreferenceHasBeenSet() const { return m_testEnvPreferenceHasBeenSet; }
247 template <typename TestEnvPreferenceT = TestEnvPreference>
248 void SetTestEnvPreference(TestEnvPreferenceT&& value) {
249 m_testEnvPreferenceHasBeenSet = true;
250 m_testEnvPreference = std::forward<TestEnvPreferenceT>(value);
251 }
252 template <typename TestEnvPreferenceT = TestEnvPreference>
254 SetTestEnvPreference(std::forward<TestEnvPreferenceT>(value));
255 return *this;
256 }
258
260
264 inline bool GetEinvoiceDeliveryEnabled() const { return m_einvoiceDeliveryEnabled; }
265 inline bool EinvoiceDeliveryEnabledHasBeenSet() const { return m_einvoiceDeliveryEnabledHasBeenSet; }
266 inline void SetEinvoiceDeliveryEnabled(bool value) {
267 m_einvoiceDeliveryEnabledHasBeenSet = true;
268 m_einvoiceDeliveryEnabled = value;
269 }
272 return *this;
273 }
275
277
281 inline const EinvoiceDeliveryPreference& GetEinvoiceDeliveryPreference() const { return m_einvoiceDeliveryPreference; }
282 inline bool EinvoiceDeliveryPreferenceHasBeenSet() const { return m_einvoiceDeliveryPreferenceHasBeenSet; }
283 template <typename EinvoiceDeliveryPreferenceT = EinvoiceDeliveryPreference>
284 void SetEinvoiceDeliveryPreference(EinvoiceDeliveryPreferenceT&& value) {
285 m_einvoiceDeliveryPreferenceHasBeenSet = true;
286 m_einvoiceDeliveryPreference = std::forward<EinvoiceDeliveryPreferenceT>(value);
287 }
288 template <typename EinvoiceDeliveryPreferenceT = EinvoiceDeliveryPreference>
289 ProcurementPortalPreference& WithEinvoiceDeliveryPreference(EinvoiceDeliveryPreferenceT&& value) {
290 SetEinvoiceDeliveryPreference(std::forward<EinvoiceDeliveryPreferenceT>(value));
291 return *this;
292 }
294
296
300 inline bool GetPurchaseOrderRetrievalEnabled() const { return m_purchaseOrderRetrievalEnabled; }
301 inline bool PurchaseOrderRetrievalEnabledHasBeenSet() const { return m_purchaseOrderRetrievalEnabledHasBeenSet; }
302 inline void SetPurchaseOrderRetrievalEnabled(bool value) {
303 m_purchaseOrderRetrievalEnabledHasBeenSet = true;
304 m_purchaseOrderRetrievalEnabled = value;
305 }
308 return *this;
309 }
311
313
317 inline const Aws::Vector<Contact>& GetContacts() const { return m_contacts; }
318 inline bool ContactsHasBeenSet() const { return m_contactsHasBeenSet; }
319 template <typename ContactsT = Aws::Vector<Contact>>
320 void SetContacts(ContactsT&& value) {
321 m_contactsHasBeenSet = true;
322 m_contacts = std::forward<ContactsT>(value);
323 }
324 template <typename ContactsT = Aws::Vector<Contact>>
326 SetContacts(std::forward<ContactsT>(value));
327 return *this;
328 }
329 template <typename ContactsT = Contact>
331 m_contactsHasBeenSet = true;
332 m_contacts.emplace_back(std::forward<ContactsT>(value));
333 return *this;
334 }
336
338
341 inline ProcurementPortalPreferenceStatus GetEinvoiceDeliveryPreferenceStatus() const { return m_einvoiceDeliveryPreferenceStatus; }
342 inline bool EinvoiceDeliveryPreferenceStatusHasBeenSet() const { return m_einvoiceDeliveryPreferenceStatusHasBeenSet; }
344 m_einvoiceDeliveryPreferenceStatusHasBeenSet = true;
345 m_einvoiceDeliveryPreferenceStatus = value;
346 }
349 return *this;
350 }
352
354
357 inline const Aws::String& GetEinvoiceDeliveryPreferenceStatusReason() const { return m_einvoiceDeliveryPreferenceStatusReason; }
358 inline bool EinvoiceDeliveryPreferenceStatusReasonHasBeenSet() const { return m_einvoiceDeliveryPreferenceStatusReasonHasBeenSet; }
359 template <typename EinvoiceDeliveryPreferenceStatusReasonT = Aws::String>
360 void SetEinvoiceDeliveryPreferenceStatusReason(EinvoiceDeliveryPreferenceStatusReasonT&& value) {
361 m_einvoiceDeliveryPreferenceStatusReasonHasBeenSet = true;
362 m_einvoiceDeliveryPreferenceStatusReason = std::forward<EinvoiceDeliveryPreferenceStatusReasonT>(value);
363 }
364 template <typename EinvoiceDeliveryPreferenceStatusReasonT = Aws::String>
365 ProcurementPortalPreference& WithEinvoiceDeliveryPreferenceStatusReason(EinvoiceDeliveryPreferenceStatusReasonT&& value) {
366 SetEinvoiceDeliveryPreferenceStatusReason(std::forward<EinvoiceDeliveryPreferenceStatusReasonT>(value));
367 return *this;
368 }
370
372
376 return m_purchaseOrderRetrievalPreferenceStatus;
377 }
378 inline bool PurchaseOrderRetrievalPreferenceStatusHasBeenSet() const { return m_purchaseOrderRetrievalPreferenceStatusHasBeenSet; }
380 m_purchaseOrderRetrievalPreferenceStatusHasBeenSet = true;
381 m_purchaseOrderRetrievalPreferenceStatus = value;
382 }
385 return *this;
386 }
388
390
394 return m_purchaseOrderRetrievalPreferenceStatusReason;
395 }
397 return m_purchaseOrderRetrievalPreferenceStatusReasonHasBeenSet;
398 }
399 template <typename PurchaseOrderRetrievalPreferenceStatusReasonT = Aws::String>
400 void SetPurchaseOrderRetrievalPreferenceStatusReason(PurchaseOrderRetrievalPreferenceStatusReasonT&& value) {
401 m_purchaseOrderRetrievalPreferenceStatusReasonHasBeenSet = true;
402 m_purchaseOrderRetrievalPreferenceStatusReason = std::forward<PurchaseOrderRetrievalPreferenceStatusReasonT>(value);
403 }
404 template <typename PurchaseOrderRetrievalPreferenceStatusReasonT = Aws::String>
405 ProcurementPortalPreference& WithPurchaseOrderRetrievalPreferenceStatusReason(PurchaseOrderRetrievalPreferenceStatusReasonT&& value) {
406 SetPurchaseOrderRetrievalPreferenceStatusReason(std::forward<PurchaseOrderRetrievalPreferenceStatusReasonT>(value));
407 return *this;
408 }
410
412
415 inline long long GetVersion() const { return m_version; }
416 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
417 inline void SetVersion(long long value) {
418 m_versionHasBeenSet = true;
419 m_version = value;
420 }
421 inline ProcurementPortalPreference& WithVersion(long long value) {
422 SetVersion(value);
423 return *this;
424 }
426
428
431 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
432 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
433 template <typename CreateDateT = Aws::Utils::DateTime>
434 void SetCreateDate(CreateDateT&& value) {
435 m_createDateHasBeenSet = true;
436 m_createDate = std::forward<CreateDateT>(value);
437 }
438 template <typename CreateDateT = Aws::Utils::DateTime>
440 SetCreateDate(std::forward<CreateDateT>(value));
441 return *this;
442 }
444
446
450 inline const Aws::Utils::DateTime& GetLastUpdateDate() const { return m_lastUpdateDate; }
451 inline bool LastUpdateDateHasBeenSet() const { return m_lastUpdateDateHasBeenSet; }
452 template <typename LastUpdateDateT = Aws::Utils::DateTime>
453 void SetLastUpdateDate(LastUpdateDateT&& value) {
454 m_lastUpdateDateHasBeenSet = true;
455 m_lastUpdateDate = std::forward<LastUpdateDateT>(value);
456 }
457 template <typename LastUpdateDateT = Aws::Utils::DateTime>
459 SetLastUpdateDate(std::forward<LastUpdateDateT>(value));
460 return *this;
461 }
463 private:
464 Aws::String m_awsAccountId;
465
466 Aws::String m_procurementPortalPreferenceArn;
467
469
470 BuyerDomain m_buyerDomain{BuyerDomain::NOT_SET};
471
472 Aws::String m_buyerIdentifier;
473
474 SupplierDomain m_supplierDomain{SupplierDomain::NOT_SET};
475
476 Aws::String m_supplierIdentifier;
477
478 ProcurementPortalPreferenceSelector m_selector;
479
480 Aws::String m_procurementPortalSharedSecret;
481
482 Aws::String m_procurementPortalInstanceEndpoint;
483
484 Aws::String m_purchaseOrderRetrievalEndpoint;
485
486 TestEnvPreference m_testEnvPreference;
487
488 bool m_einvoiceDeliveryEnabled{false};
489
490 EinvoiceDeliveryPreference m_einvoiceDeliveryPreference;
491
492 bool m_purchaseOrderRetrievalEnabled{false};
493
494 Aws::Vector<Contact> m_contacts;
495
497
498 Aws::String m_einvoiceDeliveryPreferenceStatusReason;
499
501
502 Aws::String m_purchaseOrderRetrievalPreferenceStatusReason;
503
504 long long m_version{0};
505
506 Aws::Utils::DateTime m_createDate{};
507
508 Aws::Utils::DateTime m_lastUpdateDate{};
509 bool m_awsAccountIdHasBeenSet = false;
510 bool m_procurementPortalPreferenceArnHasBeenSet = false;
511 bool m_procurementPortalNameHasBeenSet = false;
512 bool m_buyerDomainHasBeenSet = false;
513 bool m_buyerIdentifierHasBeenSet = false;
514 bool m_supplierDomainHasBeenSet = false;
515 bool m_supplierIdentifierHasBeenSet = false;
516 bool m_selectorHasBeenSet = false;
517 bool m_procurementPortalSharedSecretHasBeenSet = false;
518 bool m_procurementPortalInstanceEndpointHasBeenSet = false;
519 bool m_purchaseOrderRetrievalEndpointHasBeenSet = false;
520 bool m_testEnvPreferenceHasBeenSet = false;
521 bool m_einvoiceDeliveryEnabledHasBeenSet = false;
522 bool m_einvoiceDeliveryPreferenceHasBeenSet = false;
523 bool m_purchaseOrderRetrievalEnabledHasBeenSet = false;
524 bool m_contactsHasBeenSet = false;
525 bool m_einvoiceDeliveryPreferenceStatusHasBeenSet = false;
526 bool m_einvoiceDeliveryPreferenceStatusReasonHasBeenSet = false;
527 bool m_purchaseOrderRetrievalPreferenceStatusHasBeenSet = false;
528 bool m_purchaseOrderRetrievalPreferenceStatusReasonHasBeenSet = false;
529 bool m_versionHasBeenSet = false;
530 bool m_createDateHasBeenSet = false;
531 bool m_lastUpdateDateHasBeenSet = false;
532};
533
534} // namespace Model
535} // namespace Invoicing
536} // namespace Aws
AWS_INVOICING_API ProcurementPortalPreference(Aws::Utils::Json::JsonView jsonValue)
ProcurementPortalPreference & WithContacts(ContactsT &&value)
ProcurementPortalPreference & WithSupplierDomain(SupplierDomain value)
ProcurementPortalPreference & WithBuyerDomain(BuyerDomain value)
AWS_INVOICING_API ProcurementPortalPreference & operator=(Aws::Utils::Json::JsonView jsonValue)
ProcurementPortalPreference & WithSelector(SelectorT &&value)
ProcurementPortalPreference & WithEinvoiceDeliveryPreferenceStatusReason(EinvoiceDeliveryPreferenceStatusReasonT &&value)
ProcurementPortalPreference & WithProcurementPortalPreferenceArn(ProcurementPortalPreferenceArnT &&value)
ProcurementPortalPreference & WithProcurementPortalInstanceEndpoint(ProcurementPortalInstanceEndpointT &&value)
void SetPurchaseOrderRetrievalEndpoint(PurchaseOrderRetrievalEndpointT &&value)
void SetPurchaseOrderRetrievalPreferenceStatusReason(PurchaseOrderRetrievalPreferenceStatusReasonT &&value)
void SetProcurementPortalInstanceEndpoint(ProcurementPortalInstanceEndpointT &&value)
ProcurementPortalPreference & WithEinvoiceDeliveryEnabled(bool value)
ProcurementPortalPreference & WithPurchaseOrderRetrievalEnabled(bool value)
ProcurementPortalPreference & WithProcurementPortalName(ProcurementPortalName value)
AWS_INVOICING_API ProcurementPortalPreference()=default
ProcurementPortalPreference & WithAwsAccountId(AwsAccountIdT &&value)
ProcurementPortalPreference & WithPurchaseOrderRetrievalEndpoint(PurchaseOrderRetrievalEndpointT &&value)
ProcurementPortalPreference & WithSupplierIdentifier(SupplierIdentifierT &&value)
ProcurementPortalPreference & WithEinvoiceDeliveryPreference(EinvoiceDeliveryPreferenceT &&value)
ProcurementPortalPreference & WithVersion(long long value)
const EinvoiceDeliveryPreference & GetEinvoiceDeliveryPreference() const
const ProcurementPortalPreferenceSelector & GetSelector() const
ProcurementPortalPreferenceStatus GetEinvoiceDeliveryPreferenceStatus() const
void SetPurchaseOrderRetrievalPreferenceStatus(ProcurementPortalPreferenceStatus value)
ProcurementPortalPreference & WithCreateDate(CreateDateT &&value)
ProcurementPortalPreference & AddContacts(ContactsT &&value)
ProcurementPortalPreference & WithTestEnvPreference(TestEnvPreferenceT &&value)
ProcurementPortalPreference & WithEinvoiceDeliveryPreferenceStatus(ProcurementPortalPreferenceStatus value)
void SetProcurementPortalPreferenceArn(ProcurementPortalPreferenceArnT &&value)
ProcurementPortalPreference & WithProcurementPortalSharedSecret(ProcurementPortalSharedSecretT &&value)
void SetEinvoiceDeliveryPreferenceStatusReason(EinvoiceDeliveryPreferenceStatusReasonT &&value)
ProcurementPortalPreference & WithBuyerIdentifier(BuyerIdentifierT &&value)
ProcurementPortalPreference & WithLastUpdateDate(LastUpdateDateT &&value)
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProcurementPortalSharedSecret(ProcurementPortalSharedSecretT &&value)
void SetEinvoiceDeliveryPreferenceStatus(ProcurementPortalPreferenceStatus value)
ProcurementPortalPreferenceStatus GetPurchaseOrderRetrievalPreferenceStatus() const
ProcurementPortalPreference & WithPurchaseOrderRetrievalPreferenceStatusReason(PurchaseOrderRetrievalPreferenceStatusReasonT &&value)
void SetEinvoiceDeliveryPreference(EinvoiceDeliveryPreferenceT &&value)
ProcurementPortalPreference & WithPurchaseOrderRetrievalPreferenceStatus(ProcurementPortalPreferenceStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue