AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
LeadContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
10#include <aws/partnercentral-selling/model/LeadCustomer.h>
11#include <aws/partnercentral-selling/model/LeadInsights.h>
12#include <aws/partnercentral-selling/model/LeadInteraction.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
35 public:
36 AWS_PARTNERCENTRALSELLING_API LeadContext() = default;
37 AWS_PARTNERCENTRALSELLING_API LeadContext(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API LeadContext& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline const LeadInsights& GetInsights() const { return m_insights; }
48 inline bool InsightsHasBeenSet() const { return m_insightsHasBeenSet; }
49 template <typename InsightsT = LeadInsights>
50 void SetInsights(InsightsT&& value) {
51 m_insightsHasBeenSet = true;
52 m_insights = std::forward<InsightsT>(value);
53 }
54 template <typename InsightsT = LeadInsights>
55 LeadContext& WithInsights(InsightsT&& value) {
56 SetInsights(std::forward<InsightsT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetQualificationStatus() const { return m_qualificationStatus; }
68 inline bool QualificationStatusHasBeenSet() const { return m_qualificationStatusHasBeenSet; }
69 template <typename QualificationStatusT = Aws::String>
70 void SetQualificationStatus(QualificationStatusT&& value) {
71 m_qualificationStatusHasBeenSet = true;
72 m_qualificationStatus = std::forward<QualificationStatusT>(value);
73 }
74 template <typename QualificationStatusT = Aws::String>
75 LeadContext& WithQualificationStatus(QualificationStatusT&& value) {
76 SetQualificationStatus(std::forward<QualificationStatusT>(value));
77 return *this;
78 }
80
82
87 inline const LeadCustomer& GetCustomer() const { return m_customer; }
88 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
89 template <typename CustomerT = LeadCustomer>
90 void SetCustomer(CustomerT&& value) {
91 m_customerHasBeenSet = true;
92 m_customer = std::forward<CustomerT>(value);
93 }
94 template <typename CustomerT = LeadCustomer>
95 LeadContext& WithCustomer(CustomerT&& value) {
96 SetCustomer(std::forward<CustomerT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::Vector<LeadInteraction>& GetInteractions() const { return m_interactions; }
108 inline bool InteractionsHasBeenSet() const { return m_interactionsHasBeenSet; }
109 template <typename InteractionsT = Aws::Vector<LeadInteraction>>
110 void SetInteractions(InteractionsT&& value) {
111 m_interactionsHasBeenSet = true;
112 m_interactions = std::forward<InteractionsT>(value);
113 }
114 template <typename InteractionsT = Aws::Vector<LeadInteraction>>
115 LeadContext& WithInteractions(InteractionsT&& value) {
116 SetInteractions(std::forward<InteractionsT>(value));
117 return *this;
118 }
119 template <typename InteractionsT = LeadInteraction>
120 LeadContext& AddInteractions(InteractionsT&& value) {
121 m_interactionsHasBeenSet = true;
122 m_interactions.emplace_back(std::forward<InteractionsT>(value));
123 return *this;
124 }
126 private:
127 LeadInsights m_insights;
128
129 Aws::String m_qualificationStatus;
130
131 LeadCustomer m_customer;
132
133 Aws::Vector<LeadInteraction> m_interactions;
134 bool m_insightsHasBeenSet = false;
135 bool m_qualificationStatusHasBeenSet = false;
136 bool m_customerHasBeenSet = false;
137 bool m_interactionsHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace PartnerCentralSelling
142} // namespace Aws
LeadContext & WithCustomer(CustomerT &&value)
Definition LeadContext.h:95
AWS_PARTNERCENTRALSELLING_API LeadContext & operator=(Aws::Utils::Json::JsonView jsonValue)
LeadContext & WithInteractions(InteractionsT &&value)
void SetQualificationStatus(QualificationStatusT &&value)
Definition LeadContext.h:70
LeadContext & WithInsights(InsightsT &&value)
Definition LeadContext.h:55
const Aws::String & GetQualificationStatus() const
Definition LeadContext.h:67
const LeadCustomer & GetCustomer() const
Definition LeadContext.h:87
void SetInteractions(InteractionsT &&value)
AWS_PARTNERCENTRALSELLING_API LeadContext(Aws::Utils::Json::JsonView jsonValue)
LeadContext & WithQualificationStatus(QualificationStatusT &&value)
Definition LeadContext.h:75
LeadContext & AddInteractions(InteractionsT &&value)
AWS_PARTNERCENTRALSELLING_API LeadContext()=default
const Aws::Vector< LeadInteraction > & GetInteractions() const
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
const LeadInsights & GetInsights() const
Definition LeadContext.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue