AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LeadContact.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PartnerCentralSelling {
20namespace Model {
21
30 public:
31 AWS_PARTNERCENTRALSELLING_API LeadContact() = default;
32 AWS_PARTNERCENTRALSELLING_API LeadContact(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALSELLING_API LeadContact& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetBusinessTitle() const { return m_businessTitle; }
42 inline bool BusinessTitleHasBeenSet() const { return m_businessTitleHasBeenSet; }
43 template <typename BusinessTitleT = Aws::String>
44 void SetBusinessTitle(BusinessTitleT&& value) {
45 m_businessTitleHasBeenSet = true;
46 m_businessTitle = std::forward<BusinessTitleT>(value);
47 }
48 template <typename BusinessTitleT = Aws::String>
49 LeadContact& WithBusinessTitle(BusinessTitleT&& value) {
50 SetBusinessTitle(std::forward<BusinessTitleT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEmail() const { return m_email; }
60 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
61 template <typename EmailT = Aws::String>
62 void SetEmail(EmailT&& value) {
63 m_emailHasBeenSet = true;
64 m_email = std::forward<EmailT>(value);
65 }
66 template <typename EmailT = Aws::String>
67 LeadContact& WithEmail(EmailT&& value) {
68 SetEmail(std::forward<EmailT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetFirstName() const { return m_firstName; }
78 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
79 template <typename FirstNameT = Aws::String>
80 void SetFirstName(FirstNameT&& value) {
81 m_firstNameHasBeenSet = true;
82 m_firstName = std::forward<FirstNameT>(value);
83 }
84 template <typename FirstNameT = Aws::String>
85 LeadContact& WithFirstName(FirstNameT&& value) {
86 SetFirstName(std::forward<FirstNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetLastName() const { return m_lastName; }
96 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
97 template <typename LastNameT = Aws::String>
98 void SetLastName(LastNameT&& value) {
99 m_lastNameHasBeenSet = true;
100 m_lastName = std::forward<LastNameT>(value);
101 }
102 template <typename LastNameT = Aws::String>
103 LeadContact& WithLastName(LastNameT&& value) {
104 SetLastName(std::forward<LastNameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetPhone() const { return m_phone; }
114 inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
115 template <typename PhoneT = Aws::String>
116 void SetPhone(PhoneT&& value) {
117 m_phoneHasBeenSet = true;
118 m_phone = std::forward<PhoneT>(value);
119 }
120 template <typename PhoneT = Aws::String>
121 LeadContact& WithPhone(PhoneT&& value) {
122 SetPhone(std::forward<PhoneT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_businessTitle;
128
129 Aws::String m_email;
130
131 Aws::String m_firstName;
132
133 Aws::String m_lastName;
134
135 Aws::String m_phone;
136 bool m_businessTitleHasBeenSet = false;
137 bool m_emailHasBeenSet = false;
138 bool m_firstNameHasBeenSet = false;
139 bool m_lastNameHasBeenSet = false;
140 bool m_phoneHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace PartnerCentralSelling
145} // namespace Aws
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetBusinessTitle() const
Definition LeadContact.h:41
LeadContact & WithEmail(EmailT &&value)
Definition LeadContact.h:67
void SetBusinessTitle(BusinessTitleT &&value)
Definition LeadContact.h:44
AWS_PARTNERCENTRALSELLING_API LeadContact()=default
LeadContact & WithPhone(PhoneT &&value)
const Aws::String & GetLastName() const
Definition LeadContact.h:95
LeadContact & WithLastName(LastNameT &&value)
AWS_PARTNERCENTRALSELLING_API LeadContact(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API LeadContact & operator=(Aws::Utils::Json::JsonView jsonValue)
LeadContact & WithBusinessTitle(BusinessTitleT &&value)
Definition LeadContact.h:49
const Aws::String & GetFirstName() const
Definition LeadContact.h:77
LeadContact & WithFirstName(FirstNameT &&value)
Definition LeadContact.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue