AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LeadInteraction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
10#include <aws/partnercentral-selling/model/LeadContact.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
33 public:
34 AWS_PARTNERCENTRALSELLING_API LeadInteraction() = default;
35 AWS_PARTNERCENTRALSELLING_API LeadInteraction(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALSELLING_API LeadInteraction& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::String& GetSourceType() const { return m_sourceType; }
46 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
47 template <typename SourceTypeT = Aws::String>
48 void SetSourceType(SourceTypeT&& value) {
49 m_sourceTypeHasBeenSet = true;
50 m_sourceType = std::forward<SourceTypeT>(value);
51 }
52 template <typename SourceTypeT = Aws::String>
53 LeadInteraction& WithSourceType(SourceTypeT&& value) {
54 SetSourceType(std::forward<SourceTypeT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetSourceId() const { return m_sourceId; }
66 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
67 template <typename SourceIdT = Aws::String>
68 void SetSourceId(SourceIdT&& value) {
69 m_sourceIdHasBeenSet = true;
70 m_sourceId = std::forward<SourceIdT>(value);
71 }
72 template <typename SourceIdT = Aws::String>
73 LeadInteraction& WithSourceId(SourceIdT&& value) {
74 SetSourceId(std::forward<SourceIdT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetSourceName() const { return m_sourceName; }
86 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
87 template <typename SourceNameT = Aws::String>
88 void SetSourceName(SourceNameT&& value) {
89 m_sourceNameHasBeenSet = true;
90 m_sourceName = std::forward<SourceNameT>(value);
91 }
92 template <typename SourceNameT = Aws::String>
93 LeadInteraction& WithSourceName(SourceNameT&& value) {
94 SetSourceName(std::forward<SourceNameT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::String& GetUsecase() const { return m_usecase; }
106 inline bool UsecaseHasBeenSet() const { return m_usecaseHasBeenSet; }
107 template <typename UsecaseT = Aws::String>
108 void SetUsecase(UsecaseT&& value) {
109 m_usecaseHasBeenSet = true;
110 m_usecase = std::forward<UsecaseT>(value);
111 }
112 template <typename UsecaseT = Aws::String>
113 LeadInteraction& WithUsecase(UsecaseT&& value) {
114 SetUsecase(std::forward<UsecaseT>(value));
115 return *this;
116 }
118
120
125 inline const Aws::Utils::DateTime& GetInteractionDate() const { return m_interactionDate; }
126 inline bool InteractionDateHasBeenSet() const { return m_interactionDateHasBeenSet; }
127 template <typename InteractionDateT = Aws::Utils::DateTime>
128 void SetInteractionDate(InteractionDateT&& value) {
129 m_interactionDateHasBeenSet = true;
130 m_interactionDate = std::forward<InteractionDateT>(value);
131 }
132 template <typename InteractionDateT = Aws::Utils::DateTime>
133 LeadInteraction& WithInteractionDate(InteractionDateT&& value) {
134 SetInteractionDate(std::forward<InteractionDateT>(value));
135 return *this;
136 }
138
140
145 inline const Aws::String& GetCustomerAction() const { return m_customerAction; }
146 inline bool CustomerActionHasBeenSet() const { return m_customerActionHasBeenSet; }
147 template <typename CustomerActionT = Aws::String>
148 void SetCustomerAction(CustomerActionT&& value) {
149 m_customerActionHasBeenSet = true;
150 m_customerAction = std::forward<CustomerActionT>(value);
151 }
152 template <typename CustomerActionT = Aws::String>
153 LeadInteraction& WithCustomerAction(CustomerActionT&& value) {
154 SetCustomerAction(std::forward<CustomerActionT>(value));
155 return *this;
156 }
158
160
165 inline const Aws::String& GetBusinessProblem() const { return m_businessProblem; }
166 inline bool BusinessProblemHasBeenSet() const { return m_businessProblemHasBeenSet; }
167 template <typename BusinessProblemT = Aws::String>
168 void SetBusinessProblem(BusinessProblemT&& value) {
169 m_businessProblemHasBeenSet = true;
170 m_businessProblem = std::forward<BusinessProblemT>(value);
171 }
172 template <typename BusinessProblemT = Aws::String>
173 LeadInteraction& WithBusinessProblem(BusinessProblemT&& value) {
174 SetBusinessProblem(std::forward<BusinessProblemT>(value));
175 return *this;
176 }
178
180
184 inline const LeadContact& GetContact() const { return m_contact; }
185 inline bool ContactHasBeenSet() const { return m_contactHasBeenSet; }
186 template <typename ContactT = LeadContact>
187 void SetContact(ContactT&& value) {
188 m_contactHasBeenSet = true;
189 m_contact = std::forward<ContactT>(value);
190 }
191 template <typename ContactT = LeadContact>
192 LeadInteraction& WithContact(ContactT&& value) {
193 SetContact(std::forward<ContactT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_sourceType;
199
200 Aws::String m_sourceId;
201
202 Aws::String m_sourceName;
203
204 Aws::String m_usecase;
205
206 Aws::Utils::DateTime m_interactionDate{};
207
208 Aws::String m_customerAction;
209
210 Aws::String m_businessProblem;
211
212 LeadContact m_contact;
213 bool m_sourceTypeHasBeenSet = false;
214 bool m_sourceIdHasBeenSet = false;
215 bool m_sourceNameHasBeenSet = false;
216 bool m_usecaseHasBeenSet = false;
217 bool m_interactionDateHasBeenSet = false;
218 bool m_customerActionHasBeenSet = false;
219 bool m_businessProblemHasBeenSet = false;
220 bool m_contactHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace PartnerCentralSelling
225} // namespace Aws
const Aws::Utils::DateTime & GetInteractionDate() const
LeadInteraction & WithUsecase(UsecaseT &&value)
LeadInteraction & WithSourceId(SourceIdT &&value)
LeadInteraction & WithSourceType(SourceTypeT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API LeadInteraction()=default
LeadInteraction & WithInteractionDate(InteractionDateT &&value)
LeadInteraction & WithContact(ContactT &&value)
AWS_PARTNERCENTRALSELLING_API LeadInteraction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API LeadInteraction(Aws::Utils::Json::JsonView jsonValue)
LeadInteraction & WithCustomerAction(CustomerActionT &&value)
LeadInteraction & WithSourceName(SourceNameT &&value)
LeadInteraction & WithBusinessProblem(BusinessProblemT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue