AWS SDK for C++

AWS SDK for C++ Version 1.11.711

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