AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Customer.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/model/Account.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-selling/model/Contact.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PartnerCentralSelling
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PARTNERCENTRALSELLING_API Customer() = default;
38 AWS_PARTNERCENTRALSELLING_API Customer(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PARTNERCENTRALSELLING_API Customer& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Account& GetAccount() const { return m_account; }
48 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
49 template<typename AccountT = Account>
50 void SetAccount(AccountT&& value) { m_accountHasBeenSet = true; m_account = std::forward<AccountT>(value); }
51 template<typename AccountT = Account>
52 Customer& WithAccount(AccountT&& value) { SetAccount(std::forward<AccountT>(value)); return *this;}
54
56
63 inline const Aws::Vector<Contact>& GetContacts() const { return m_contacts; }
64 inline bool ContactsHasBeenSet() const { return m_contactsHasBeenSet; }
65 template<typename ContactsT = Aws::Vector<Contact>>
66 void SetContacts(ContactsT&& value) { m_contactsHasBeenSet = true; m_contacts = std::forward<ContactsT>(value); }
67 template<typename ContactsT = Aws::Vector<Contact>>
68 Customer& WithContacts(ContactsT&& value) { SetContacts(std::forward<ContactsT>(value)); return *this;}
69 template<typename ContactsT = Contact>
70 Customer& AddContacts(ContactsT&& value) { m_contactsHasBeenSet = true; m_contacts.emplace_back(std::forward<ContactsT>(value)); return *this; }
72 private:
73
74 Account m_account;
75 bool m_accountHasBeenSet = false;
76
77 Aws::Vector<Contact> m_contacts;
78 bool m_contactsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace PartnerCentralSelling
83} // namespace Aws
Customer & WithAccount(AccountT &&value)
Definition Customer.h:52
AWS_PARTNERCENTRALSELLING_API Customer()=default
void SetContacts(ContactsT &&value)
Definition Customer.h:66
Customer & WithContacts(ContactsT &&value)
Definition Customer.h:68
const Aws::Vector< Contact > & GetContacts() const
Definition Customer.h:63
AWS_PARTNERCENTRALSELLING_API Customer & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Customer(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
Customer & AddContacts(ContactsT &&value)
Definition Customer.h:70
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue