AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPhones(const Aws::Vector<ContactDetails>& value) { m_phonesHasBeenSet = true; m_phones = value; }
49 inline void SetPhones(Aws::Vector<ContactDetails>&& value) { m_phonesHasBeenSet = true; m_phones = std::move(value); }
50 inline Contacts& WithPhones(const Aws::Vector<ContactDetails>& value) { SetPhones(value); return *this;}
51 inline Contacts& WithPhones(Aws::Vector<ContactDetails>&& value) { SetPhones(std::move(value)); return *this;}
52 inline Contacts& AddPhones(const ContactDetails& value) { m_phonesHasBeenSet = true; m_phones.push_back(value); return *this; }
53 inline Contacts& AddPhones(ContactDetails&& value) { m_phonesHasBeenSet = true; m_phones.push_back(std::move(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 inline void SetFaxes(const Aws::Vector<ContactDetails>& value) { m_faxesHasBeenSet = true; m_faxes = value; }
63 inline void SetFaxes(Aws::Vector<ContactDetails>&& value) { m_faxesHasBeenSet = true; m_faxes = std::move(value); }
64 inline Contacts& WithFaxes(const Aws::Vector<ContactDetails>& value) { SetFaxes(value); return *this;}
65 inline Contacts& WithFaxes(Aws::Vector<ContactDetails>&& value) { SetFaxes(std::move(value)); return *this;}
66 inline Contacts& AddFaxes(const ContactDetails& value) { m_faxesHasBeenSet = true; m_faxes.push_back(value); return *this; }
67 inline Contacts& AddFaxes(ContactDetails&& value) { m_faxesHasBeenSet = true; m_faxes.push_back(std::move(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 inline void SetWebsites(const Aws::Vector<ContactDetails>& value) { m_websitesHasBeenSet = true; m_websites = value; }
77 inline void SetWebsites(Aws::Vector<ContactDetails>&& value) { m_websitesHasBeenSet = true; m_websites = std::move(value); }
78 inline Contacts& WithWebsites(const Aws::Vector<ContactDetails>& value) { SetWebsites(value); return *this;}
79 inline Contacts& WithWebsites(Aws::Vector<ContactDetails>&& value) { SetWebsites(std::move(value)); return *this;}
80 inline Contacts& AddWebsites(const ContactDetails& value) { m_websitesHasBeenSet = true; m_websites.push_back(value); return *this; }
81 inline Contacts& AddWebsites(ContactDetails&& value) { m_websitesHasBeenSet = true; m_websites.push_back(std::move(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 inline void SetEmails(const Aws::Vector<ContactDetails>& value) { m_emailsHasBeenSet = true; m_emails = value; }
91 inline void SetEmails(Aws::Vector<ContactDetails>&& value) { m_emailsHasBeenSet = true; m_emails = std::move(value); }
92 inline Contacts& WithEmails(const Aws::Vector<ContactDetails>& value) { SetEmails(value); return *this;}
93 inline Contacts& WithEmails(Aws::Vector<ContactDetails>&& value) { SetEmails(std::move(value)); return *this;}
94 inline Contacts& AddEmails(const ContactDetails& value) { m_emailsHasBeenSet = true; m_emails.push_back(value); return *this; }
95 inline Contacts& AddEmails(ContactDetails&& value) { m_emailsHasBeenSet = true; m_emails.push_back(std::move(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 & AddWebsites(ContactDetails &&value)
Definition Contacts.h:81
Contacts & AddFaxes(const ContactDetails &value)
Definition Contacts.h:66
Contacts & WithWebsites(Aws::Vector< ContactDetails > &&value)
Definition Contacts.h:79
void SetEmails(const Aws::Vector< ContactDetails > &value)
Definition Contacts.h:90
Contacts & WithFaxes(const Aws::Vector< ContactDetails > &value)
Definition Contacts.h:64
Contacts & AddPhones(const ContactDetails &value)
Definition Contacts.h:52
AWS_GEOPLACES_API Contacts(Aws::Utils::Json::JsonView jsonValue)
Contacts & AddPhones(ContactDetails &&value)
Definition Contacts.h:53
const Aws::Vector< ContactDetails > & GetWebsites() const
Definition Contacts.h:74
Contacts & AddFaxes(ContactDetails &&value)
Definition Contacts.h:67
Contacts & AddEmails(const ContactDetails &value)
Definition Contacts.h:94
const Aws::Vector< ContactDetails > & GetFaxes() const
Definition Contacts.h:60
Contacts & AddEmails(ContactDetails &&value)
Definition Contacts.h:95
Contacts & AddWebsites(const ContactDetails &value)
Definition Contacts.h:80
void SetPhones(const Aws::Vector< ContactDetails > &value)
Definition Contacts.h:48
void SetFaxes(Aws::Vector< ContactDetails > &&value)
Definition Contacts.h:63
Contacts & WithPhones(Aws::Vector< ContactDetails > &&value)
Definition Contacts.h:51
AWS_GEOPLACES_API Contacts & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
Contacts & WithFaxes(Aws::Vector< ContactDetails > &&value)
Definition Contacts.h:65
void SetWebsites(const Aws::Vector< ContactDetails > &value)
Definition Contacts.h:76
void SetWebsites(Aws::Vector< ContactDetails > &&value)
Definition Contacts.h:77
Contacts & WithEmails(Aws::Vector< ContactDetails > &&value)
Definition Contacts.h:93
const Aws::Vector< ContactDetails > & GetPhones() const
Definition Contacts.h:46
void SetFaxes(const Aws::Vector< ContactDetails > &value)
Definition Contacts.h:62
void SetPhones(Aws::Vector< ContactDetails > &&value)
Definition Contacts.h:49
Contacts & WithEmails(const Aws::Vector< ContactDetails > &value)
Definition Contacts.h:92
Contacts & WithWebsites(const Aws::Vector< ContactDetails > &value)
Definition Contacts.h:78
AWS_GEOPLACES_API Contacts()
const Aws::Vector< ContactDetails > & GetEmails() const
Definition Contacts.h:88
void SetEmails(Aws::Vector< ContactDetails > &&value)
Definition Contacts.h:91
Contacts & WithPhones(const Aws::Vector< ContactDetails > &value)
Definition Contacts.h:50
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue