AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Contact.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
28class Contact {
29 public:
30 AWS_PARTNERCENTRALSELLING_API Contact() = default;
31 AWS_PARTNERCENTRALSELLING_API Contact(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PARTNERCENTRALSELLING_API Contact& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALSELLING_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
95 inline const Aws::String& GetBusinessTitle() const { return m_businessTitle; }
96 inline bool BusinessTitleHasBeenSet() const { return m_businessTitleHasBeenSet; }
97 template <typename BusinessTitleT = Aws::String>
98 void SetBusinessTitle(BusinessTitleT&& value) {
99 m_businessTitleHasBeenSet = true;
100 m_businessTitle = std::forward<BusinessTitleT>(value);
101 }
102 template <typename BusinessTitleT = Aws::String>
103 Contact& WithBusinessTitle(BusinessTitleT&& value) {
104 SetBusinessTitle(std::forward<BusinessTitleT>(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 Contact& WithPhone(PhoneT&& value) {
122 SetPhone(std::forward<PhoneT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_email;
128
129 Aws::String m_firstName;
130
131 Aws::String m_lastName;
132
133 Aws::String m_businessTitle;
134
135 Aws::String m_phone;
136 bool m_emailHasBeenSet = false;
137 bool m_firstNameHasBeenSet = false;
138 bool m_lastNameHasBeenSet = false;
139 bool m_businessTitleHasBeenSet = false;
140 bool m_phoneHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace PartnerCentralSelling
145} // namespace Aws
void SetBusinessTitle(BusinessTitleT &&value)
Definition Contact.h:98
Contact & WithPhone(PhoneT &&value)
Definition Contact.h:121
AWS_PARTNERCENTRALSELLING_API Contact()=default
const Aws::String & GetEmail() const
Definition Contact.h:39
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
Contact & WithEmail(EmailT &&value)
Definition Contact.h:47
const Aws::String & GetBusinessTitle() const
Definition Contact.h:95
void SetLastName(LastNameT &&value)
Definition Contact.h:78
void SetFirstName(FirstNameT &&value)
Definition Contact.h:60
Contact & WithFirstName(FirstNameT &&value)
Definition Contact.h:65
AWS_PARTNERCENTRALSELLING_API Contact(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFirstName() const
Definition Contact.h:57
Contact & WithBusinessTitle(BusinessTitleT &&value)
Definition Contact.h:103
const Aws::String & GetLastName() const
Definition Contact.h:75
Contact & WithLastName(LastNameT &&value)
Definition Contact.h:83
const Aws::String & GetPhone() const
Definition Contact.h:113
AWS_PARTNERCENTRALSELLING_API Contact & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue