AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
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 EngagementContextPayload() = default;
33 AWS_PARTNERCENTRALSELLING_API EngagementContextPayload(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALSELLING_API EngagementContextPayload& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const CustomerProjectsContext& GetCustomerProject() const { return m_customerProject; }
44 inline bool CustomerProjectHasBeenSet() const { return m_customerProjectHasBeenSet; }
45 template <typename CustomerProjectT = CustomerProjectsContext>
46 void SetCustomerProject(CustomerProjectT&& value) {
47 m_customerProjectHasBeenSet = true;
48 m_customerProject = std::forward<CustomerProjectT>(value);
49 }
50 template <typename CustomerProjectT = CustomerProjectsContext>
51 EngagementContextPayload& WithCustomerProject(CustomerProjectT&& value) {
52 SetCustomerProject(std::forward<CustomerProjectT>(value));
53 return *this;
54 }
56
58
63 inline const LeadContext& GetLead() const { return m_lead; }
64 inline bool LeadHasBeenSet() const { return m_leadHasBeenSet; }
65 template <typename LeadT = LeadContext>
66 void SetLead(LeadT&& value) {
67 m_leadHasBeenSet = true;
68 m_lead = std::forward<LeadT>(value);
69 }
70 template <typename LeadT = LeadContext>
72 SetLead(std::forward<LeadT>(value));
73 return *this;
74 }
76 private:
77 CustomerProjectsContext m_customerProject;
78
79 LeadContext m_lead;
80 bool m_customerProjectHasBeenSet = false;
81 bool m_leadHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace PartnerCentralSelling
86} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
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