AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
LinkedWhatsAppBusinessAccount.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
11#include <aws/socialmessaging/model/RegistrationStatus.h>
12#include <aws/socialmessaging/model/WhatsAppBusinessAccountEventDestination.h>
13#include <aws/socialmessaging/model/WhatsAppPhoneNumberSummary.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SocialMessaging {
25namespace Model {
26
34 public:
35 AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount() = default;
38 AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetId() const { return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 template <typename IdT = Aws::String>
66 void SetId(IdT&& value) {
67 m_idHasBeenSet = true;
68 m_id = std::forward<IdT>(value);
69 }
70 template <typename IdT = Aws::String>
72 SetId(std::forward<IdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetWabaId() const { return m_wabaId; }
82 inline bool WabaIdHasBeenSet() const { return m_wabaIdHasBeenSet; }
83 template <typename WabaIdT = Aws::String>
84 void SetWabaId(WabaIdT&& value) {
85 m_wabaIdHasBeenSet = true;
86 m_wabaId = std::forward<WabaIdT>(value);
87 }
88 template <typename WabaIdT = Aws::String>
90 SetWabaId(std::forward<WabaIdT>(value));
91 return *this;
92 }
94
96
99 inline RegistrationStatus GetRegistrationStatus() const { return m_registrationStatus; }
100 inline bool RegistrationStatusHasBeenSet() const { return m_registrationStatusHasBeenSet; }
102 m_registrationStatusHasBeenSet = true;
103 m_registrationStatus = value;
104 }
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetLinkDate() const { return m_linkDate; }
116 inline bool LinkDateHasBeenSet() const { return m_linkDateHasBeenSet; }
117 template <typename LinkDateT = Aws::Utils::DateTime>
118 void SetLinkDate(LinkDateT&& value) {
119 m_linkDateHasBeenSet = true;
120 m_linkDate = std::forward<LinkDateT>(value);
121 }
122 template <typename LinkDateT = Aws::Utils::DateTime>
124 SetLinkDate(std::forward<LinkDateT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetWabaName() const { return m_wabaName; }
134 inline bool WabaNameHasBeenSet() const { return m_wabaNameHasBeenSet; }
135 template <typename WabaNameT = Aws::String>
136 void SetWabaName(WabaNameT&& value) {
137 m_wabaNameHasBeenSet = true;
138 m_wabaName = std::forward<WabaNameT>(value);
139 }
140 template <typename WabaNameT = Aws::String>
142 SetWabaName(std::forward<WabaNameT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<WhatsAppBusinessAccountEventDestination>& GetEventDestinations() const { return m_eventDestinations; }
152 inline bool EventDestinationsHasBeenSet() const { return m_eventDestinationsHasBeenSet; }
153 template <typename EventDestinationsT = Aws::Vector<WhatsAppBusinessAccountEventDestination>>
154 void SetEventDestinations(EventDestinationsT&& value) {
155 m_eventDestinationsHasBeenSet = true;
156 m_eventDestinations = std::forward<EventDestinationsT>(value);
157 }
158 template <typename EventDestinationsT = Aws::Vector<WhatsAppBusinessAccountEventDestination>>
160 SetEventDestinations(std::forward<EventDestinationsT>(value));
161 return *this;
162 }
163 template <typename EventDestinationsT = WhatsAppBusinessAccountEventDestination>
165 m_eventDestinationsHasBeenSet = true;
166 m_eventDestinations.emplace_back(std::forward<EventDestinationsT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Vector<WhatsAppPhoneNumberSummary>& GetPhoneNumbers() const { return m_phoneNumbers; }
176 inline bool PhoneNumbersHasBeenSet() const { return m_phoneNumbersHasBeenSet; }
177 template <typename PhoneNumbersT = Aws::Vector<WhatsAppPhoneNumberSummary>>
178 void SetPhoneNumbers(PhoneNumbersT&& value) {
179 m_phoneNumbersHasBeenSet = true;
180 m_phoneNumbers = std::forward<PhoneNumbersT>(value);
181 }
182 template <typename PhoneNumbersT = Aws::Vector<WhatsAppPhoneNumberSummary>>
184 SetPhoneNumbers(std::forward<PhoneNumbersT>(value));
185 return *this;
186 }
187 template <typename PhoneNumbersT = WhatsAppPhoneNumberSummary>
189 m_phoneNumbersHasBeenSet = true;
190 m_phoneNumbers.emplace_back(std::forward<PhoneNumbersT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_arn;
196
197 Aws::String m_id;
198
199 Aws::String m_wabaId;
200
202
203 Aws::Utils::DateTime m_linkDate{};
204
205 Aws::String m_wabaName;
206
208
210 bool m_arnHasBeenSet = false;
211 bool m_idHasBeenSet = false;
212 bool m_wabaIdHasBeenSet = false;
213 bool m_registrationStatusHasBeenSet = false;
214 bool m_linkDateHasBeenSet = false;
215 bool m_wabaNameHasBeenSet = false;
216 bool m_eventDestinationsHasBeenSet = false;
217 bool m_phoneNumbersHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace SocialMessaging
222} // namespace Aws
LinkedWhatsAppBusinessAccount & WithWabaId(WabaIdT &&value)
LinkedWhatsAppBusinessAccount & AddPhoneNumbers(PhoneNumbersT &&value)
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount(Aws::Utils::Json::JsonView jsonValue)
LinkedWhatsAppBusinessAccount & WithWabaName(WabaNameT &&value)
LinkedWhatsAppBusinessAccount & WithEventDestinations(EventDestinationsT &&value)
LinkedWhatsAppBusinessAccount & WithRegistrationStatus(RegistrationStatus value)
AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< WhatsAppBusinessAccountEventDestination > & GetEventDestinations() const
LinkedWhatsAppBusinessAccount & WithLinkDate(LinkDateT &&value)
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount()=default
const Aws::Vector< WhatsAppPhoneNumberSummary > & GetPhoneNumbers() const
AWS_SOCIALMESSAGING_API LinkedWhatsAppBusinessAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
LinkedWhatsAppBusinessAccount & WithPhoneNumbers(PhoneNumbersT &&value)
LinkedWhatsAppBusinessAccount & AddEventDestinations(EventDestinationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue