AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OpportunityInvitationPayload.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/EngagementCustomer.h>
10#include <aws/partnercentral-selling/model/ProjectDetails.h>
11#include <aws/partnercentral-selling/model/ReceiverResponsibility.h>
12#include <aws/partnercentral-selling/model/SenderContact.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PartnerCentralSelling {
24namespace Model {
25
34 public:
35 AWS_PARTNERCENTRALSELLING_API OpportunityInvitationPayload() = default;
36 AWS_PARTNERCENTRALSELLING_API OpportunityInvitationPayload(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALSELLING_API OpportunityInvitationPayload& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Vector<SenderContact>& GetSenderContacts() const { return m_senderContacts; }
46 inline bool SenderContactsHasBeenSet() const { return m_senderContactsHasBeenSet; }
47 template <typename SenderContactsT = Aws::Vector<SenderContact>>
48 void SetSenderContacts(SenderContactsT&& value) {
49 m_senderContactsHasBeenSet = true;
50 m_senderContacts = std::forward<SenderContactsT>(value);
51 }
52 template <typename SenderContactsT = Aws::Vector<SenderContact>>
54 SetSenderContacts(std::forward<SenderContactsT>(value));
55 return *this;
56 }
57 template <typename SenderContactsT = SenderContact>
59 m_senderContactsHasBeenSet = true;
60 m_senderContacts.emplace_back(std::forward<SenderContactsT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<ReceiverResponsibility>& GetReceiverResponsibilities() const { return m_receiverResponsibilities; }
71 inline bool ReceiverResponsibilitiesHasBeenSet() const { return m_receiverResponsibilitiesHasBeenSet; }
72 template <typename ReceiverResponsibilitiesT = Aws::Vector<ReceiverResponsibility>>
73 void SetReceiverResponsibilities(ReceiverResponsibilitiesT&& value) {
74 m_receiverResponsibilitiesHasBeenSet = true;
75 m_receiverResponsibilities = std::forward<ReceiverResponsibilitiesT>(value);
76 }
77 template <typename ReceiverResponsibilitiesT = Aws::Vector<ReceiverResponsibility>>
78 OpportunityInvitationPayload& WithReceiverResponsibilities(ReceiverResponsibilitiesT&& value) {
79 SetReceiverResponsibilities(std::forward<ReceiverResponsibilitiesT>(value));
80 return *this;
81 }
83 m_receiverResponsibilitiesHasBeenSet = true;
84 m_receiverResponsibilities.push_back(value);
85 return *this;
86 }
88
90
95 inline const EngagementCustomer& GetCustomer() const { return m_customer; }
96 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
97 template <typename CustomerT = EngagementCustomer>
98 void SetCustomer(CustomerT&& value) {
99 m_customerHasBeenSet = true;
100 m_customer = std::forward<CustomerT>(value);
101 }
102 template <typename CustomerT = EngagementCustomer>
104 SetCustomer(std::forward<CustomerT>(value));
105 return *this;
106 }
108
110
114 inline const ProjectDetails& GetProject() const { return m_project; }
115 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
116 template <typename ProjectT = ProjectDetails>
117 void SetProject(ProjectT&& value) {
118 m_projectHasBeenSet = true;
119 m_project = std::forward<ProjectT>(value);
120 }
121 template <typename ProjectT = ProjectDetails>
123 SetProject(std::forward<ProjectT>(value));
124 return *this;
125 }
127 private:
128 Aws::Vector<SenderContact> m_senderContacts;
129
130 Aws::Vector<ReceiverResponsibility> m_receiverResponsibilities;
131
132 EngagementCustomer m_customer;
133
134 ProjectDetails m_project;
135 bool m_senderContactsHasBeenSet = false;
136 bool m_receiverResponsibilitiesHasBeenSet = false;
137 bool m_customerHasBeenSet = false;
138 bool m_projectHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace PartnerCentralSelling
143} // namespace Aws
OpportunityInvitationPayload & AddSenderContacts(SenderContactsT &&value)
AWS_PARTNERCENTRALSELLING_API OpportunityInvitationPayload()=default
OpportunityInvitationPayload & WithSenderContacts(SenderContactsT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API OpportunityInvitationPayload(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ReceiverResponsibility > & GetReceiverResponsibilities() const
AWS_PARTNERCENTRALSELLING_API OpportunityInvitationPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
OpportunityInvitationPayload & AddReceiverResponsibilities(ReceiverResponsibility value)
OpportunityInvitationPayload & WithReceiverResponsibilities(ReceiverResponsibilitiesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue