AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsOpportunityCustomer.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9#include <aws/partnercentral-selling/model/Contact.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralSelling {
21namespace Model {
22
31 public:
32 AWS_PARTNERCENTRALSELLING_API AwsOpportunityCustomer() = default;
33 AWS_PARTNERCENTRALSELLING_API AwsOpportunityCustomer(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALSELLING_API AwsOpportunityCustomer& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<Contact>& GetContacts() const { return m_contacts; }
44 inline bool ContactsHasBeenSet() const { return m_contactsHasBeenSet; }
45 template <typename ContactsT = Aws::Vector<Contact>>
46 void SetContacts(ContactsT&& value) {
47 m_contactsHasBeenSet = true;
48 m_contacts = std::forward<ContactsT>(value);
49 }
50 template <typename ContactsT = Aws::Vector<Contact>>
52 SetContacts(std::forward<ContactsT>(value));
53 return *this;
54 }
55 template <typename ContactsT = Contact>
56 AwsOpportunityCustomer& AddContacts(ContactsT&& value) {
57 m_contactsHasBeenSet = true;
58 m_contacts.emplace_back(std::forward<ContactsT>(value));
59 return *this;
60 }
62 private:
63 Aws::Vector<Contact> m_contacts;
64 bool m_contactsHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace PartnerCentralSelling
69} // 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