AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SenderContact.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
29 public:
30 AWS_PARTNERCENTRALSELLING_API SenderContact() = default;
31 AWS_PARTNERCENTRALSELLING_API SenderContact(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PARTNERCENTRALSELLING_API SenderContact& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetEmail() const { return m_email; }
41 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
42 template <typename EmailT = Aws::String>
43 void SetEmail(EmailT&& value) {
44 m_emailHasBeenSet = true;
45 m_email = std::forward<EmailT>(value);
46 }
47 template <typename EmailT = Aws::String>
48 SenderContact& WithEmail(EmailT&& value) {
49 SetEmail(std::forward<EmailT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetFirstName() const { return m_firstName; }
60 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
61 template <typename FirstNameT = Aws::String>
62 void SetFirstName(FirstNameT&& value) {
63 m_firstNameHasBeenSet = true;
64 m_firstName = std::forward<FirstNameT>(value);
65 }
66 template <typename FirstNameT = Aws::String>
67 SenderContact& WithFirstName(FirstNameT&& value) {
68 SetFirstName(std::forward<FirstNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetLastName() const { return m_lastName; }
79 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
80 template <typename LastNameT = Aws::String>
81 void SetLastName(LastNameT&& value) {
82 m_lastNameHasBeenSet = true;
83 m_lastName = std::forward<LastNameT>(value);
84 }
85 template <typename LastNameT = Aws::String>
86 SenderContact& WithLastName(LastNameT&& value) {
87 SetLastName(std::forward<LastNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetBusinessTitle() const { return m_businessTitle; }
98 inline bool BusinessTitleHasBeenSet() const { return m_businessTitleHasBeenSet; }
99 template <typename BusinessTitleT = Aws::String>
100 void SetBusinessTitle(BusinessTitleT&& value) {
101 m_businessTitleHasBeenSet = true;
102 m_businessTitle = std::forward<BusinessTitleT>(value);
103 }
104 template <typename BusinessTitleT = Aws::String>
105 SenderContact& WithBusinessTitle(BusinessTitleT&& value) {
106 SetBusinessTitle(std::forward<BusinessTitleT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetPhone() const { return m_phone; }
117 inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
118 template <typename PhoneT = Aws::String>
119 void SetPhone(PhoneT&& value) {
120 m_phoneHasBeenSet = true;
121 m_phone = std::forward<PhoneT>(value);
122 }
123 template <typename PhoneT = Aws::String>
124 SenderContact& WithPhone(PhoneT&& value) {
125 SetPhone(std::forward<PhoneT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_email;
131
132 Aws::String m_firstName;
133
134 Aws::String m_lastName;
135
136 Aws::String m_businessTitle;
137
138 Aws::String m_phone;
139 bool m_emailHasBeenSet = false;
140 bool m_firstNameHasBeenSet = false;
141 bool m_lastNameHasBeenSet = false;
142 bool m_businessTitleHasBeenSet = false;
143 bool m_phoneHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace PartnerCentralSelling
148} // namespace Aws
SenderContact & WithBusinessTitle(BusinessTitleT &&value)
AWS_PARTNERCENTRALSELLING_API SenderContact()=default
AWS_PARTNERCENTRALSELLING_API SenderContact(Aws::Utils::Json::JsonView jsonValue)
SenderContact & WithEmail(EmailT &&value)
AWS_PARTNERCENTRALSELLING_API SenderContact & operator=(Aws::Utils::Json::JsonView jsonValue)
SenderContact & WithFirstName(FirstNameT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
SenderContact & WithLastName(LastNameT &&value)
SenderContact & WithPhone(PhoneT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue