AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PhoneNumber.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/model/CallingNameStatus.h>
9#include <aws/chime/model/PhoneNumberAssociation.h>
10#include <aws/chime/model/PhoneNumberCapabilities.h>
11#include <aws/chime/model/PhoneNumberProductType.h>
12#include <aws/chime/model/PhoneNumberStatus.h>
13#include <aws/chime/model/PhoneNumberType.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Chime {
28namespace Model {
29
37 public:
38 AWS_CHIME_API PhoneNumber() = default;
39 AWS_CHIME_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetPhoneNumberId() const { return m_phoneNumberId; }
48 inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; }
49 template <typename PhoneNumberIdT = Aws::String>
50 void SetPhoneNumberId(PhoneNumberIdT&& value) {
51 m_phoneNumberIdHasBeenSet = true;
52 m_phoneNumberId = std::forward<PhoneNumberIdT>(value);
53 }
54 template <typename PhoneNumberIdT = Aws::String>
55 PhoneNumber& WithPhoneNumberId(PhoneNumberIdT&& value) {
56 SetPhoneNumberId(std::forward<PhoneNumberIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetE164PhoneNumber() const { return m_e164PhoneNumber; }
66 inline bool E164PhoneNumberHasBeenSet() const { return m_e164PhoneNumberHasBeenSet; }
67 template <typename E164PhoneNumberT = Aws::String>
68 void SetE164PhoneNumber(E164PhoneNumberT&& value) {
69 m_e164PhoneNumberHasBeenSet = true;
70 m_e164PhoneNumber = std::forward<E164PhoneNumberT>(value);
71 }
72 template <typename E164PhoneNumberT = Aws::String>
73 PhoneNumber& WithE164PhoneNumber(E164PhoneNumberT&& value) {
74 SetE164PhoneNumber(std::forward<E164PhoneNumberT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetCountry() const { return m_country; }
84 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
85 template <typename CountryT = Aws::String>
86 void SetCountry(CountryT&& value) {
87 m_countryHasBeenSet = true;
88 m_country = std::forward<CountryT>(value);
89 }
90 template <typename CountryT = Aws::String>
91 PhoneNumber& WithCountry(CountryT&& value) {
92 SetCountry(std::forward<CountryT>(value));
93 return *this;
94 }
96
98
101 inline PhoneNumberType GetType() const { return m_type; }
102 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
103 inline void SetType(PhoneNumberType value) {
104 m_typeHasBeenSet = true;
105 m_type = value;
106 }
108 SetType(value);
109 return *this;
110 }
112
114
117 inline PhoneNumberProductType GetProductType() const { return m_productType; }
118 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
120 m_productTypeHasBeenSet = true;
121 m_productType = value;
122 }
124 SetProductType(value);
125 return *this;
126 }
128
130
133 inline PhoneNumberStatus GetStatus() const { return m_status; }
134 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 inline void SetStatus(PhoneNumberStatus value) {
136 m_statusHasBeenSet = true;
137 m_status = value;
138 }
140 SetStatus(value);
141 return *this;
142 }
144
146
149 inline const PhoneNumberCapabilities& GetCapabilities() const { return m_capabilities; }
150 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
151 template <typename CapabilitiesT = PhoneNumberCapabilities>
152 void SetCapabilities(CapabilitiesT&& value) {
153 m_capabilitiesHasBeenSet = true;
154 m_capabilities = std::forward<CapabilitiesT>(value);
155 }
156 template <typename CapabilitiesT = PhoneNumberCapabilities>
157 PhoneNumber& WithCapabilities(CapabilitiesT&& value) {
158 SetCapabilities(std::forward<CapabilitiesT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Vector<PhoneNumberAssociation>& GetAssociations() const { return m_associations; }
168 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
169 template <typename AssociationsT = Aws::Vector<PhoneNumberAssociation>>
170 void SetAssociations(AssociationsT&& value) {
171 m_associationsHasBeenSet = true;
172 m_associations = std::forward<AssociationsT>(value);
173 }
174 template <typename AssociationsT = Aws::Vector<PhoneNumberAssociation>>
175 PhoneNumber& WithAssociations(AssociationsT&& value) {
176 SetAssociations(std::forward<AssociationsT>(value));
177 return *this;
178 }
179 template <typename AssociationsT = PhoneNumberAssociation>
180 PhoneNumber& AddAssociations(AssociationsT&& value) {
181 m_associationsHasBeenSet = true;
182 m_associations.emplace_back(std::forward<AssociationsT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetCallingName() const { return m_callingName; }
192 inline bool CallingNameHasBeenSet() const { return m_callingNameHasBeenSet; }
193 template <typename CallingNameT = Aws::String>
194 void SetCallingName(CallingNameT&& value) {
195 m_callingNameHasBeenSet = true;
196 m_callingName = std::forward<CallingNameT>(value);
197 }
198 template <typename CallingNameT = Aws::String>
199 PhoneNumber& WithCallingName(CallingNameT&& value) {
200 SetCallingName(std::forward<CallingNameT>(value));
201 return *this;
202 }
204
206
209 inline CallingNameStatus GetCallingNameStatus() const { return m_callingNameStatus; }
210 inline bool CallingNameStatusHasBeenSet() const { return m_callingNameStatusHasBeenSet; }
212 m_callingNameStatusHasBeenSet = true;
213 m_callingNameStatus = value;
214 }
217 return *this;
218 }
220
222
225 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
226 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
227 template <typename CreatedTimestampT = Aws::Utils::DateTime>
228 void SetCreatedTimestamp(CreatedTimestampT&& value) {
229 m_createdTimestampHasBeenSet = true;
230 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
231 }
232 template <typename CreatedTimestampT = Aws::Utils::DateTime>
233 PhoneNumber& WithCreatedTimestamp(CreatedTimestampT&& value) {
234 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
244 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
245 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
246 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
247 m_updatedTimestampHasBeenSet = true;
248 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
249 }
250 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
251 PhoneNumber& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
252 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::Utils::DateTime& GetDeletionTimestamp() const { return m_deletionTimestamp; }
262 inline bool DeletionTimestampHasBeenSet() const { return m_deletionTimestampHasBeenSet; }
263 template <typename DeletionTimestampT = Aws::Utils::DateTime>
264 void SetDeletionTimestamp(DeletionTimestampT&& value) {
265 m_deletionTimestampHasBeenSet = true;
266 m_deletionTimestamp = std::forward<DeletionTimestampT>(value);
267 }
268 template <typename DeletionTimestampT = Aws::Utils::DateTime>
269 PhoneNumber& WithDeletionTimestamp(DeletionTimestampT&& value) {
270 SetDeletionTimestamp(std::forward<DeletionTimestampT>(value));
271 return *this;
272 }
274 private:
275 Aws::String m_phoneNumberId;
276
277 Aws::String m_e164PhoneNumber;
278
279 Aws::String m_country;
280
282
284
286
287 PhoneNumberCapabilities m_capabilities;
288
290
291 Aws::String m_callingName;
292
294
295 Aws::Utils::DateTime m_createdTimestamp{};
296
297 Aws::Utils::DateTime m_updatedTimestamp{};
298
299 Aws::Utils::DateTime m_deletionTimestamp{};
300 bool m_phoneNumberIdHasBeenSet = false;
301 bool m_e164PhoneNumberHasBeenSet = false;
302 bool m_countryHasBeenSet = false;
303 bool m_typeHasBeenSet = false;
304 bool m_productTypeHasBeenSet = false;
305 bool m_statusHasBeenSet = false;
306 bool m_capabilitiesHasBeenSet = false;
307 bool m_associationsHasBeenSet = false;
308 bool m_callingNameHasBeenSet = false;
309 bool m_callingNameStatusHasBeenSet = false;
310 bool m_createdTimestampHasBeenSet = false;
311 bool m_updatedTimestampHasBeenSet = false;
312 bool m_deletionTimestampHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace Chime
317} // namespace Aws
void SetProductType(PhoneNumberProductType value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCapabilities(CapabilitiesT &&value)
PhoneNumber & WithDeletionTimestamp(DeletionTimestampT &&value)
PhoneNumber & WithCallingNameStatus(CallingNameStatus value)
bool CreatedTimestampHasBeenSet() const
PhoneNumber & WithAssociations(AssociationsT &&value)
const Aws::String & GetE164PhoneNumber() const
Definition PhoneNumber.h:65
AWS_CHIME_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue)
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
const Aws::String & GetCountry() const
Definition PhoneNumber.h:83
void SetDeletionTimestamp(DeletionTimestampT &&value)
PhoneNumberProductType GetProductType() const
bool CallingNameStatusHasBeenSet() const
PhoneNumber & WithCapabilities(CapabilitiesT &&value)
PhoneNumber & WithCountry(CountryT &&value)
Definition PhoneNumber.h:91
PhoneNumber & WithStatus(PhoneNumberStatus value)
PhoneNumber & WithPhoneNumberId(PhoneNumberIdT &&value)
Definition PhoneNumber.h:55
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
AWS_CHIME_API PhoneNumber & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPhoneNumberId() const
Definition PhoneNumber.h:47
bool DeletionTimestampHasBeenSet() const
const Aws::Utils::DateTime & GetDeletionTimestamp() const
const Aws::Utils::DateTime & GetCreatedTimestamp() const
PhoneNumber & WithUpdatedTimestamp(UpdatedTimestampT &&value)
bool UpdatedTimestampHasBeenSet() const
const Aws::String & GetCallingName() const
void SetE164PhoneNumber(E164PhoneNumberT &&value)
Definition PhoneNumber.h:68
void SetCountry(CountryT &&value)
Definition PhoneNumber.h:86
PhoneNumber & WithProductType(PhoneNumberProductType value)
const Aws::Vector< PhoneNumberAssociation > & GetAssociations() const
void SetPhoneNumberId(PhoneNumberIdT &&value)
Definition PhoneNumber.h:50
void SetStatus(PhoneNumberStatus value)
void SetCallingNameStatus(CallingNameStatus value)
PhoneNumber & AddAssociations(AssociationsT &&value)
PhoneNumber & WithCreatedTimestamp(CreatedTimestampT &&value)
PhoneNumber & WithCallingName(CallingNameT &&value)
PhoneNumberType GetType() const
void SetAssociations(AssociationsT &&value)
bool E164PhoneNumberHasBeenSet() const
Definition PhoneNumber.h:66
PhoneNumber & WithType(PhoneNumberType value)
CallingNameStatus GetCallingNameStatus() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
PhoneNumber & WithE164PhoneNumber(E164PhoneNumberT &&value)
Definition PhoneNumber.h:73
void SetCallingName(CallingNameT &&value)
PhoneNumberStatus GetStatus() const
void SetType(PhoneNumberType value)
AWS_CHIME_API PhoneNumber()=default
const PhoneNumberCapabilities & GetCapabilities() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue