AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/LeadInteraction.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralSelling {
23namespace Model {
24
34 public:
35 AWS_PARTNERCENTRALSELLING_API LeadContext() = default;
36 AWS_PARTNERCENTRALSELLING_API LeadContext(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALSELLING_API LeadContext& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetQualificationStatus() const { return m_qualificationStatus; }
47 inline bool QualificationStatusHasBeenSet() const { return m_qualificationStatusHasBeenSet; }
48 template <typename QualificationStatusT = Aws::String>
49 void SetQualificationStatus(QualificationStatusT&& value) {
50 m_qualificationStatusHasBeenSet = true;
51 m_qualificationStatus = std::forward<QualificationStatusT>(value);
52 }
53 template <typename QualificationStatusT = Aws::String>
54 LeadContext& WithQualificationStatus(QualificationStatusT&& value) {
55 SetQualificationStatus(std::forward<QualificationStatusT>(value));
56 return *this;
57 }
59
61
66 inline const LeadCustomer& GetCustomer() const { return m_customer; }
67 inline bool CustomerHasBeenSet() const { return m_customerHasBeenSet; }
68 template <typename CustomerT = LeadCustomer>
69 void SetCustomer(CustomerT&& value) {
70 m_customerHasBeenSet = true;
71 m_customer = std::forward<CustomerT>(value);
72 }
73 template <typename CustomerT = LeadCustomer>
74 LeadContext& WithCustomer(CustomerT&& value) {
75 SetCustomer(std::forward<CustomerT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::Vector<LeadInteraction>& GetInteractions() const { return m_interactions; }
87 inline bool InteractionsHasBeenSet() const { return m_interactionsHasBeenSet; }
88 template <typename InteractionsT = Aws::Vector<LeadInteraction>>
89 void SetInteractions(InteractionsT&& value) {
90 m_interactionsHasBeenSet = true;
91 m_interactions = std::forward<InteractionsT>(value);
92 }
93 template <typename InteractionsT = Aws::Vector<LeadInteraction>>
94 LeadContext& WithInteractions(InteractionsT&& value) {
95 SetInteractions(std::forward<InteractionsT>(value));
96 return *this;
97 }
98 template <typename InteractionsT = LeadInteraction>
99 LeadContext& AddInteractions(InteractionsT&& value) {
100 m_interactionsHasBeenSet = true;
101 m_interactions.emplace_back(std::forward<InteractionsT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_qualificationStatus;
107
108 LeadCustomer m_customer;
109
110 Aws::Vector<LeadInteraction> m_interactions;
111 bool m_qualificationStatusHasBeenSet = false;
112 bool m_customerHasBeenSet = false;
113 bool m_interactionsHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace PartnerCentralSelling
118} // namespace Aws
LeadContext & WithCustomer(CustomerT &&value)
Definition LeadContext.h:74
AWS_PARTNERCENTRALSELLING_API LeadContext & operator=(Aws::Utils::Json::JsonView jsonValue)
LeadContext & WithInteractions(InteractionsT &&value)
Definition LeadContext.h:94
void SetQualificationStatus(QualificationStatusT &&value)
Definition LeadContext.h:49
const Aws::String & GetQualificationStatus() const
Definition LeadContext.h:46
const LeadCustomer & GetCustomer() const
Definition LeadContext.h:66
void SetInteractions(InteractionsT &&value)
Definition LeadContext.h:89
AWS_PARTNERCENTRALSELLING_API LeadContext(Aws::Utils::Json::JsonView jsonValue)
LeadContext & WithQualificationStatus(QualificationStatusT &&value)
Definition LeadContext.h:54
LeadContext & AddInteractions(InteractionsT &&value)
Definition LeadContext.h:99
AWS_PARTNERCENTRALSELLING_API LeadContext()=default
const Aws::Vector< LeadInteraction > & GetInteractions() const
Definition LeadContext.h:86
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue