AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AwsOpportunityCustomer.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-selling/model/Contact.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralSelling
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PARTNERCENTRALSELLING_API AwsOpportunityCustomer() = default;
38 AWS_PARTNERCENTRALSELLING_API AwsOpportunityCustomer(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PARTNERCENTRALSELLING_API AwsOpportunityCustomer& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<Contact>& GetContacts() const { return m_contacts; }
50 inline bool ContactsHasBeenSet() const { return m_contactsHasBeenSet; }
51 template<typename ContactsT = Aws::Vector<Contact>>
52 void SetContacts(ContactsT&& value) { m_contactsHasBeenSet = true; m_contacts = std::forward<ContactsT>(value); }
53 template<typename ContactsT = Aws::Vector<Contact>>
54 AwsOpportunityCustomer& WithContacts(ContactsT&& value) { SetContacts(std::forward<ContactsT>(value)); return *this;}
55 template<typename ContactsT = Contact>
56 AwsOpportunityCustomer& AddContacts(ContactsT&& value) { m_contactsHasBeenSet = true; m_contacts.emplace_back(std::forward<ContactsT>(value)); return *this; }
58 private:
59
60 Aws::Vector<Contact> m_contacts;
61 bool m_contactsHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace PartnerCentralSelling
66} // namespace Aws
AWS_PARTNERCENTRALSELLING_API AwsOpportunityCustomer(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API AwsOpportunityCustomer & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API AwsOpportunityCustomer()=default
AwsOpportunityCustomer & WithContacts(ContactsT &&value)
AwsOpportunityCustomer & AddContacts(ContactsT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue