AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
EngagementContextPayload.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/model/CustomerProjectsContext.h>
9#include <aws/partnercentral-selling/model/LeadContext.h>
10#include <aws/partnercentral-selling/model/ProspectingResult.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PartnerCentralSelling {
22namespace Model {
23
32 public:
33 AWS_PARTNERCENTRALSELLING_API EngagementContextPayload() = default;
34 AWS_PARTNERCENTRALSELLING_API EngagementContextPayload(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API EngagementContextPayload& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const CustomerProjectsContext& GetCustomerProject() const { return m_customerProject; }
45 inline bool CustomerProjectHasBeenSet() const { return m_customerProjectHasBeenSet; }
46 template <typename CustomerProjectT = CustomerProjectsContext>
47 void SetCustomerProject(CustomerProjectT&& value) {
48 m_customerProjectHasBeenSet = true;
49 m_customerProject = std::forward<CustomerProjectT>(value);
50 }
51 template <typename CustomerProjectT = CustomerProjectsContext>
52 EngagementContextPayload& WithCustomerProject(CustomerProjectT&& value) {
53 SetCustomerProject(std::forward<CustomerProjectT>(value));
54 return *this;
55 }
57
59
64 inline const LeadContext& GetLead() const { return m_lead; }
65 inline bool LeadHasBeenSet() const { return m_leadHasBeenSet; }
66 template <typename LeadT = LeadContext>
67 void SetLead(LeadT&& value) {
68 m_leadHasBeenSet = true;
69 m_lead = std::forward<LeadT>(value);
70 }
71 template <typename LeadT = LeadContext>
73 SetLead(std::forward<LeadT>(value));
74 return *this;
75 }
77
79
84 inline const ProspectingResult& GetProspectingResult() const { return m_prospectingResult; }
85 inline bool ProspectingResultHasBeenSet() const { return m_prospectingResultHasBeenSet; }
86 template <typename ProspectingResultT = ProspectingResult>
87 void SetProspectingResult(ProspectingResultT&& value) {
88 m_prospectingResultHasBeenSet = true;
89 m_prospectingResult = std::forward<ProspectingResultT>(value);
90 }
91 template <typename ProspectingResultT = ProspectingResult>
92 EngagementContextPayload& WithProspectingResult(ProspectingResultT&& value) {
93 SetProspectingResult(std::forward<ProspectingResultT>(value));
94 return *this;
95 }
97 private:
98 CustomerProjectsContext m_customerProject;
99
100 LeadContext m_lead;
101
102 ProspectingResult m_prospectingResult;
103 bool m_customerProjectHasBeenSet = false;
104 bool m_leadHasBeenSet = false;
105 bool m_prospectingResultHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace PartnerCentralSelling
110} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
EngagementContextPayload & WithProspectingResult(ProspectingResultT &&value)
AWS_PARTNERCENTRALSELLING_API EngagementContextPayload(Aws::Utils::Json::JsonView jsonValue)
EngagementContextPayload & WithCustomerProject(CustomerProjectT &&value)
AWS_PARTNERCENTRALSELLING_API EngagementContextPayload()=default
AWS_PARTNERCENTRALSELLING_API EngagementContextPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue