AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
OpportunityInvitationPayload.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/EngagementCustomer.h>
10#include <aws/partnercentral-selling/model/ProjectDetails.h>
11#include <aws/partnercentral-selling/model/SenderContact.h>
12#include <aws/partnercentral-selling/model/ReceiverResponsibility.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
51 inline const Aws::Vector<SenderContact>& GetSenderContacts() const { return m_senderContacts; }
52 inline bool SenderContactsHasBeenSet() const { return m_senderContactsHasBeenSet; }
53 template<typename SenderContactsT = Aws::Vector<SenderContact>>
54 void SetSenderContacts(SenderContactsT&& value) { m_senderContactsHasBeenSet = true; m_senderContacts = std::forward<SenderContactsT>(value); }
55 template<typename SenderContactsT = Aws::Vector<SenderContact>>
56 OpportunityInvitationPayload& WithSenderContacts(SenderContactsT&& value) { SetSenderContacts(std::forward<SenderContactsT>(value)); return *this;}
57 template<typename SenderContactsT = SenderContact>
58 OpportunityInvitationPayload& AddSenderContacts(SenderContactsT&& value) { m_senderContactsHasBeenSet = true; m_senderContacts.emplace_back(std::forward<SenderContactsT>(value)); return *this; }
60
62
66 inline const Aws::Vector<ReceiverResponsibility>& GetReceiverResponsibilities() const { return m_receiverResponsibilities; }
67 inline bool ReceiverResponsibilitiesHasBeenSet() const { return m_receiverResponsibilitiesHasBeenSet; }
68 template<typename ReceiverResponsibilitiesT = Aws::Vector<ReceiverResponsibility>>
69 void SetReceiverResponsibilities(ReceiverResponsibilitiesT&& value) { m_receiverResponsibilitiesHasBeenSet = true; m_receiverResponsibilities = std::forward<ReceiverResponsibilitiesT>(value); }
70 template<typename ReceiverResponsibilitiesT = Aws::Vector<ReceiverResponsibility>>
71 OpportunityInvitationPayload& WithReceiverResponsibilities(ReceiverResponsibilitiesT&& value) { SetReceiverResponsibilities(std::forward<ReceiverResponsibilitiesT>(value)); return *this;}
72 inline OpportunityInvitationPayload& AddReceiverResponsibilities(ReceiverResponsibility value) { m_receiverResponsibilitiesHasBeenSet = true; m_receiverResponsibilities.push_back(value); return *this; }
74
76
81 inline const EngagementCustomer& GetCustomer() const { return m_customer; }
82 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
83 template<typename CustomerT = EngagementCustomer>
84 void SetCustomer(CustomerT&& value) { m_customerHasBeenSet = true; m_customer = std::forward<CustomerT>(value); }
85 template<typename CustomerT = EngagementCustomer>
86 OpportunityInvitationPayload& WithCustomer(CustomerT&& value) { SetCustomer(std::forward<CustomerT>(value)); return *this;}
88
90
94 inline const ProjectDetails& GetProject() const { return m_project; }
95 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
96 template<typename ProjectT = ProjectDetails>
97 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
98 template<typename ProjectT = ProjectDetails>
99 OpportunityInvitationPayload& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
101 private:
102
103 Aws::Vector<SenderContact> m_senderContacts;
104 bool m_senderContactsHasBeenSet = false;
105
106 Aws::Vector<ReceiverResponsibility> m_receiverResponsibilities;
107 bool m_receiverResponsibilitiesHasBeenSet = false;
108
109 EngagementCustomer m_customer;
110 bool m_customerHasBeenSet = false;
111
112 ProjectDetails m_project;
113 bool m_projectHasBeenSet = 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