AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Contacts.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/model/ContactDetails.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoPlaces
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GEOPLACES_API Contacts() = default;
37 AWS_GEOPLACES_API Contacts(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOPLACES_API Contacts& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<ContactDetails>& GetPhones() const { return m_phones; }
47 inline bool PhonesHasBeenSet() const { return m_phonesHasBeenSet; }
48 template<typename PhonesT = Aws::Vector<ContactDetails>>
49 void SetPhones(PhonesT&& value) { m_phonesHasBeenSet = true; m_phones = std::forward<PhonesT>(value); }
50 template<typename PhonesT = Aws::Vector<ContactDetails>>
51 Contacts& WithPhones(PhonesT&& value) { SetPhones(std::forward<PhonesT>(value)); return *this;}
52 template<typename PhonesT = ContactDetails>
53 Contacts& AddPhones(PhonesT&& value) { m_phonesHasBeenSet = true; m_phones.emplace_back(std::forward<PhonesT>(value)); return *this; }
55
57
60 inline const Aws::Vector<ContactDetails>& GetFaxes() const { return m_faxes; }
61 inline bool FaxesHasBeenSet() const { return m_faxesHasBeenSet; }
62 template<typename FaxesT = Aws::Vector<ContactDetails>>
63 void SetFaxes(FaxesT&& value) { m_faxesHasBeenSet = true; m_faxes = std::forward<FaxesT>(value); }
64 template<typename FaxesT = Aws::Vector<ContactDetails>>
65 Contacts& WithFaxes(FaxesT&& value) { SetFaxes(std::forward<FaxesT>(value)); return *this;}
66 template<typename FaxesT = ContactDetails>
67 Contacts& AddFaxes(FaxesT&& value) { m_faxesHasBeenSet = true; m_faxes.emplace_back(std::forward<FaxesT>(value)); return *this; }
69
71
74 inline const Aws::Vector<ContactDetails>& GetWebsites() const { return m_websites; }
75 inline bool WebsitesHasBeenSet() const { return m_websitesHasBeenSet; }
76 template<typename WebsitesT = Aws::Vector<ContactDetails>>
77 void SetWebsites(WebsitesT&& value) { m_websitesHasBeenSet = true; m_websites = std::forward<WebsitesT>(value); }
78 template<typename WebsitesT = Aws::Vector<ContactDetails>>
79 Contacts& WithWebsites(WebsitesT&& value) { SetWebsites(std::forward<WebsitesT>(value)); return *this;}
80 template<typename WebsitesT = ContactDetails>
81 Contacts& AddWebsites(WebsitesT&& value) { m_websitesHasBeenSet = true; m_websites.emplace_back(std::forward<WebsitesT>(value)); return *this; }
83
85
88 inline const Aws::Vector<ContactDetails>& GetEmails() const { return m_emails; }
89 inline bool EmailsHasBeenSet() const { return m_emailsHasBeenSet; }
90 template<typename EmailsT = Aws::Vector<ContactDetails>>
91 void SetEmails(EmailsT&& value) { m_emailsHasBeenSet = true; m_emails = std::forward<EmailsT>(value); }
92 template<typename EmailsT = Aws::Vector<ContactDetails>>
93 Contacts& WithEmails(EmailsT&& value) { SetEmails(std::forward<EmailsT>(value)); return *this;}
94 template<typename EmailsT = ContactDetails>
95 Contacts& AddEmails(EmailsT&& value) { m_emailsHasBeenSet = true; m_emails.emplace_back(std::forward<EmailsT>(value)); return *this; }
97 private:
98
100 bool m_phonesHasBeenSet = false;
101
103 bool m_faxesHasBeenSet = false;
104
106 bool m_websitesHasBeenSet = false;
107
109 bool m_emailsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace GeoPlaces
114} // namespace Aws
Contacts & AddFaxes(FaxesT &&value)
Definition Contacts.h:67
Contacts & AddEmails(EmailsT &&value)
Definition Contacts.h:95
Contacts & AddWebsites(WebsitesT &&value)
Definition Contacts.h:81
Contacts & WithEmails(EmailsT &&value)
Definition Contacts.h:93
Contacts & WithWebsites(WebsitesT &&value)
Definition Contacts.h:79
AWS_GEOPLACES_API Contacts(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ContactDetails > & GetWebsites() const
Definition Contacts.h:74
void SetWebsites(WebsitesT &&value)
Definition Contacts.h:77
const Aws::Vector< ContactDetails > & GetFaxes() const
Definition Contacts.h:60
void SetEmails(EmailsT &&value)
Definition Contacts.h:91
Contacts & WithPhones(PhonesT &&value)
Definition Contacts.h:51
void SetPhones(PhonesT &&value)
Definition Contacts.h:49
AWS_GEOPLACES_API Contacts()=default
AWS_GEOPLACES_API Contacts & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ContactDetails > & GetPhones() const
Definition Contacts.h:46
Contacts & WithFaxes(FaxesT &&value)
Definition Contacts.h:65
void SetFaxes(FaxesT &&value)
Definition Contacts.h:63
const Aws::Vector< ContactDetails > & GetEmails() const
Definition Contacts.h:88
Contacts & AddPhones(PhonesT &&value)
Definition Contacts.h:53
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue