AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OpportunityInvitationPayload.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/model/EngagementCustomer.h>
9#include <aws/partnercentral-selling/model/ProjectDetails.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-selling/model/ReceiverResponsibility.h>
12#include <aws/partnercentral-selling/model/SenderContact.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace PartnerCentralSelling
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_PARTNERCENTRALSELLING_API OpportunityInvitationPayload() = default;
41 AWS_PARTNERCENTRALSELLING_API OpportunityInvitationPayload(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PARTNERCENTRALSELLING_API OpportunityInvitationPayload& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const EngagementCustomer& GetCustomer() const { return m_customer; }
53 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
54 template<typename CustomerT = EngagementCustomer>
55 void SetCustomer(CustomerT&& value) { m_customerHasBeenSet = true; m_customer = std::forward<CustomerT>(value); }
56 template<typename CustomerT = EngagementCustomer>
57 OpportunityInvitationPayload& WithCustomer(CustomerT&& value) { SetCustomer(std::forward<CustomerT>(value)); return *this;}
59
61
65 inline const ProjectDetails& GetProject() const { return m_project; }
66 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
67 template<typename ProjectT = ProjectDetails>
68 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
69 template<typename ProjectT = ProjectDetails>
70 OpportunityInvitationPayload& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
72
74
78 inline const Aws::Vector<ReceiverResponsibility>& GetReceiverResponsibilities() const { return m_receiverResponsibilities; }
79 inline bool ReceiverResponsibilitiesHasBeenSet() const { return m_receiverResponsibilitiesHasBeenSet; }
80 template<typename ReceiverResponsibilitiesT = Aws::Vector<ReceiverResponsibility>>
81 void SetReceiverResponsibilities(ReceiverResponsibilitiesT&& value) { m_receiverResponsibilitiesHasBeenSet = true; m_receiverResponsibilities = std::forward<ReceiverResponsibilitiesT>(value); }
82 template<typename ReceiverResponsibilitiesT = Aws::Vector<ReceiverResponsibility>>
83 OpportunityInvitationPayload& WithReceiverResponsibilities(ReceiverResponsibilitiesT&& value) { SetReceiverResponsibilities(std::forward<ReceiverResponsibilitiesT>(value)); return *this;}
84 inline OpportunityInvitationPayload& AddReceiverResponsibilities(ReceiverResponsibility value) { m_receiverResponsibilitiesHasBeenSet = true; m_receiverResponsibilities.push_back(value); return *this; }
86
88
92 inline const Aws::Vector<SenderContact>& GetSenderContacts() const { return m_senderContacts; }
93 inline bool SenderContactsHasBeenSet() const { return m_senderContactsHasBeenSet; }
94 template<typename SenderContactsT = Aws::Vector<SenderContact>>
95 void SetSenderContacts(SenderContactsT&& value) { m_senderContactsHasBeenSet = true; m_senderContacts = std::forward<SenderContactsT>(value); }
96 template<typename SenderContactsT = Aws::Vector<SenderContact>>
97 OpportunityInvitationPayload& WithSenderContacts(SenderContactsT&& value) { SetSenderContacts(std::forward<SenderContactsT>(value)); return *this;}
98 template<typename SenderContactsT = SenderContact>
99 OpportunityInvitationPayload& AddSenderContacts(SenderContactsT&& value) { m_senderContactsHasBeenSet = true; m_senderContacts.emplace_back(std::forward<SenderContactsT>(value)); return *this; }
101 private:
102
103 EngagementCustomer m_customer;
104 bool m_customerHasBeenSet = false;
105
106 ProjectDetails m_project;
107 bool m_projectHasBeenSet = false;
108
109 Aws::Vector<ReceiverResponsibility> m_receiverResponsibilities;
110 bool m_receiverResponsibilitiesHasBeenSet = false;
111
112 Aws::Vector<SenderContact> m_senderContacts;
113 bool m_senderContactsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace PartnerCentralSelling
118} // 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