AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Contact.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PartnerCentralSelling
22{
23namespace Model
24{
25
32 class Contact
33 {
34 public:
35 AWS_PARTNERCENTRALSELLING_API Contact() = default;
36 AWS_PARTNERCENTRALSELLING_API Contact(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALSELLING_API Contact& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetBusinessTitle() const { return m_businessTitle; }
48 inline bool BusinessTitleHasBeenSet() const { return m_businessTitleHasBeenSet; }
49 template<typename BusinessTitleT = Aws::String>
50 void SetBusinessTitle(BusinessTitleT&& value) { m_businessTitleHasBeenSet = true; m_businessTitle = std::forward<BusinessTitleT>(value); }
51 template<typename BusinessTitleT = Aws::String>
52 Contact& WithBusinessTitle(BusinessTitleT&& value) { SetBusinessTitle(std::forward<BusinessTitleT>(value)); return *this;}
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) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
63 template<typename EmailT = Aws::String>
64 Contact& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
66
68
71 inline const Aws::String& GetFirstName() const { return m_firstName; }
72 inline bool FirstNameHasBeenSet() const { return m_firstNameHasBeenSet; }
73 template<typename FirstNameT = Aws::String>
74 void SetFirstName(FirstNameT&& value) { m_firstNameHasBeenSet = true; m_firstName = std::forward<FirstNameT>(value); }
75 template<typename FirstNameT = Aws::String>
76 Contact& WithFirstName(FirstNameT&& value) { SetFirstName(std::forward<FirstNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetLastName() const { return m_lastName; }
84 inline bool LastNameHasBeenSet() const { return m_lastNameHasBeenSet; }
85 template<typename LastNameT = Aws::String>
86 void SetLastName(LastNameT&& value) { m_lastNameHasBeenSet = true; m_lastName = std::forward<LastNameT>(value); }
87 template<typename LastNameT = Aws::String>
88 Contact& WithLastName(LastNameT&& value) { SetLastName(std::forward<LastNameT>(value)); return *this;}
90
92
95 inline const Aws::String& GetPhone() const { return m_phone; }
96 inline bool PhoneHasBeenSet() const { return m_phoneHasBeenSet; }
97 template<typename PhoneT = Aws::String>
98 void SetPhone(PhoneT&& value) { m_phoneHasBeenSet = true; m_phone = std::forward<PhoneT>(value); }
99 template<typename PhoneT = Aws::String>
100 Contact& WithPhone(PhoneT&& value) { SetPhone(std::forward<PhoneT>(value)); return *this;}
102 private:
103
104 Aws::String m_businessTitle;
105 bool m_businessTitleHasBeenSet = false;
106
107 Aws::String m_email;
108 bool m_emailHasBeenSet = false;
109
110 Aws::String m_firstName;
111 bool m_firstNameHasBeenSet = false;
112
113 Aws::String m_lastName;
114 bool m_lastNameHasBeenSet = false;
115
116 Aws::String m_phone;
117 bool m_phoneHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace PartnerCentralSelling
122} // namespace Aws
void SetBusinessTitle(BusinessTitleT &&value)
Definition Contact.h:50
Contact & WithPhone(PhoneT &&value)
Definition Contact.h:100
AWS_PARTNERCENTRALSELLING_API Contact()=default
const Aws::String & GetEmail() const
Definition Contact.h:59
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
Contact & WithEmail(EmailT &&value)
Definition Contact.h:64
const Aws::String & GetBusinessTitle() const
Definition Contact.h:47
void SetLastName(LastNameT &&value)
Definition Contact.h:86
void SetFirstName(FirstNameT &&value)
Definition Contact.h:74
Contact & WithFirstName(FirstNameT &&value)
Definition Contact.h:76
AWS_PARTNERCENTRALSELLING_API Contact(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFirstName() const
Definition Contact.h:71
Contact & WithBusinessTitle(BusinessTitleT &&value)
Definition Contact.h:52
const Aws::String & GetLastName() const
Definition Contact.h:83
Contact & WithLastName(LastNameT &&value)
Definition Contact.h:88
const Aws::String & GetPhone() const
Definition Contact.h:95
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