AWS SDK for C++

AWS SDK for C++ Version 1.11.715

Loading...
Searching...
No Matches
Participant.h
1
6#pragma once
7#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
8#include <aws/partnercentral-account/model/AccountSummary.h>
9#include <aws/partnercentral-account/model/PartnerProfileSummary.h>
10#include <aws/partnercentral-account/model/SellerProfileSummary.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PartnerCentralAccount {
22namespace Model {
23
31 public:
32 AWS_PARTNERCENTRALACCOUNT_API Participant() = default;
33 AWS_PARTNERCENTRALACCOUNT_API Participant(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALACCOUNT_API Participant& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const PartnerProfileSummary& GetPartnerProfile() const { return m_partnerProfile; }
42 inline bool PartnerProfileHasBeenSet() const { return m_partnerProfileHasBeenSet; }
43 template <typename PartnerProfileT = PartnerProfileSummary>
44 void SetPartnerProfile(PartnerProfileT&& value) {
45 m_partnerProfileHasBeenSet = true;
46 m_partnerProfile = std::forward<PartnerProfileT>(value);
47 }
48 template <typename PartnerProfileT = PartnerProfileSummary>
49 Participant& WithPartnerProfile(PartnerProfileT&& value) {
50 SetPartnerProfile(std::forward<PartnerProfileT>(value));
51 return *this;
52 }
54
56
59 inline const SellerProfileSummary& GetSellerProfile() const { return m_sellerProfile; }
60 inline bool SellerProfileHasBeenSet() const { return m_sellerProfileHasBeenSet; }
61 template <typename SellerProfileT = SellerProfileSummary>
62 void SetSellerProfile(SellerProfileT&& value) {
63 m_sellerProfileHasBeenSet = true;
64 m_sellerProfile = std::forward<SellerProfileT>(value);
65 }
66 template <typename SellerProfileT = SellerProfileSummary>
67 Participant& WithSellerProfile(SellerProfileT&& value) {
68 SetSellerProfile(std::forward<SellerProfileT>(value));
69 return *this;
70 }
72
74
77 inline const AccountSummary& GetAccount() const { return m_account; }
78 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
79 template <typename AccountT = AccountSummary>
80 void SetAccount(AccountT&& value) {
81 m_accountHasBeenSet = true;
82 m_account = std::forward<AccountT>(value);
83 }
84 template <typename AccountT = AccountSummary>
85 Participant& WithAccount(AccountT&& value) {
86 SetAccount(std::forward<AccountT>(value));
87 return *this;
88 }
90 private:
91 PartnerProfileSummary m_partnerProfile;
92
93 SellerProfileSummary m_sellerProfile;
94
95 AccountSummary m_account;
96 bool m_partnerProfileHasBeenSet = false;
97 bool m_sellerProfileHasBeenSet = false;
98 bool m_accountHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace PartnerCentralAccount
103} // namespace Aws
AWS_PARTNERCENTRALACCOUNT_API Participant & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALACCOUNT_API Participant(Aws::Utils::Json::JsonView jsonValue)
const SellerProfileSummary & GetSellerProfile() const
Definition Participant.h:59
Participant & WithPartnerProfile(PartnerProfileT &&value)
Definition Participant.h:49
const AccountSummary & GetAccount() const
Definition Participant.h:77
Participant & WithSellerProfile(SellerProfileT &&value)
Definition Participant.h:67
Participant & WithAccount(AccountT &&value)
Definition Participant.h:85
AWS_PARTNERCENTRALACCOUNT_API Participant()=default
void SetPartnerProfile(PartnerProfileT &&value)
Definition Participant.h:44
AWS_PARTNERCENTRALACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSellerProfile(SellerProfileT &&value)
Definition Participant.h:62
const PartnerProfileSummary & GetPartnerProfile() const
Definition Participant.h:41
Aws::Utils::Json::JsonValue JsonValue