AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PhoneNumber.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/PhoneNumberType.h>
10#include <aws/chime/model/PhoneNumberProductType.h>
11#include <aws/chime/model/PhoneNumberStatus.h>
12#include <aws/chime/model/PhoneNumberCapabilities.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/chime/model/CallingNameStatus.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/chime/model/PhoneNumberAssociation.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Chime
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_CHIME_API PhoneNumber();
44 AWS_CHIME_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetPhoneNumberId() const{ return m_phoneNumberId; }
54 inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; }
55 inline void SetPhoneNumberId(const Aws::String& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = value; }
56 inline void SetPhoneNumberId(Aws::String&& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = std::move(value); }
57 inline void SetPhoneNumberId(const char* value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId.assign(value); }
58 inline PhoneNumber& WithPhoneNumberId(const Aws::String& value) { SetPhoneNumberId(value); return *this;}
59 inline PhoneNumber& WithPhoneNumberId(Aws::String&& value) { SetPhoneNumberId(std::move(value)); return *this;}
60 inline PhoneNumber& WithPhoneNumberId(const char* value) { SetPhoneNumberId(value); return *this;}
62
64
67 inline const Aws::String& GetE164PhoneNumber() const{ return m_e164PhoneNumber; }
68 inline bool E164PhoneNumberHasBeenSet() const { return m_e164PhoneNumberHasBeenSet; }
69 inline void SetE164PhoneNumber(const Aws::String& value) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber = value; }
70 inline void SetE164PhoneNumber(Aws::String&& value) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber = std::move(value); }
71 inline void SetE164PhoneNumber(const char* value) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber.assign(value); }
72 inline PhoneNumber& WithE164PhoneNumber(const Aws::String& value) { SetE164PhoneNumber(value); return *this;}
73 inline PhoneNumber& WithE164PhoneNumber(Aws::String&& value) { SetE164PhoneNumber(std::move(value)); return *this;}
74 inline PhoneNumber& WithE164PhoneNumber(const char* value) { SetE164PhoneNumber(value); return *this;}
76
78
81 inline const Aws::String& GetCountry() const{ return m_country; }
82 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
83 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
84 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
85 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
86 inline PhoneNumber& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
87 inline PhoneNumber& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
88 inline PhoneNumber& WithCountry(const char* value) { SetCountry(value); return *this;}
90
92
95 inline const PhoneNumberType& GetType() const{ return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(const PhoneNumberType& value) { m_typeHasBeenSet = true; m_type = value; }
98 inline void SetType(PhoneNumberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
99 inline PhoneNumber& WithType(const PhoneNumberType& value) { SetType(value); return *this;}
100 inline PhoneNumber& WithType(PhoneNumberType&& value) { SetType(std::move(value)); return *this;}
102
104
107 inline const PhoneNumberProductType& GetProductType() const{ return m_productType; }
108 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
109 inline void SetProductType(const PhoneNumberProductType& value) { m_productTypeHasBeenSet = true; m_productType = value; }
110 inline void SetProductType(PhoneNumberProductType&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); }
111 inline PhoneNumber& WithProductType(const PhoneNumberProductType& value) { SetProductType(value); return *this;}
112 inline PhoneNumber& WithProductType(PhoneNumberProductType&& value) { SetProductType(std::move(value)); return *this;}
114
116
119 inline const PhoneNumberStatus& GetStatus() const{ return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(const PhoneNumberStatus& value) { m_statusHasBeenSet = true; m_status = value; }
122 inline void SetStatus(PhoneNumberStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
123 inline PhoneNumber& WithStatus(const PhoneNumberStatus& value) { SetStatus(value); return *this;}
124 inline PhoneNumber& WithStatus(PhoneNumberStatus&& value) { SetStatus(std::move(value)); return *this;}
126
128
131 inline const PhoneNumberCapabilities& GetCapabilities() const{ return m_capabilities; }
132 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
133 inline void SetCapabilities(const PhoneNumberCapabilities& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
134 inline void SetCapabilities(PhoneNumberCapabilities&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); }
135 inline PhoneNumber& WithCapabilities(const PhoneNumberCapabilities& value) { SetCapabilities(value); return *this;}
136 inline PhoneNumber& WithCapabilities(PhoneNumberCapabilities&& value) { SetCapabilities(std::move(value)); return *this;}
138
140
143 inline const Aws::Vector<PhoneNumberAssociation>& GetAssociations() const{ return m_associations; }
144 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
145 inline void SetAssociations(const Aws::Vector<PhoneNumberAssociation>& value) { m_associationsHasBeenSet = true; m_associations = value; }
146 inline void SetAssociations(Aws::Vector<PhoneNumberAssociation>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
148 inline PhoneNumber& WithAssociations(Aws::Vector<PhoneNumberAssociation>&& value) { SetAssociations(std::move(value)); return *this;}
149 inline PhoneNumber& AddAssociations(const PhoneNumberAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
150 inline PhoneNumber& AddAssociations(PhoneNumberAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; }
152
154
157 inline const Aws::String& GetCallingName() const{ return m_callingName; }
158 inline bool CallingNameHasBeenSet() const { return m_callingNameHasBeenSet; }
159 inline void SetCallingName(const Aws::String& value) { m_callingNameHasBeenSet = true; m_callingName = value; }
160 inline void SetCallingName(Aws::String&& value) { m_callingNameHasBeenSet = true; m_callingName = std::move(value); }
161 inline void SetCallingName(const char* value) { m_callingNameHasBeenSet = true; m_callingName.assign(value); }
162 inline PhoneNumber& WithCallingName(const Aws::String& value) { SetCallingName(value); return *this;}
163 inline PhoneNumber& WithCallingName(Aws::String&& value) { SetCallingName(std::move(value)); return *this;}
164 inline PhoneNumber& WithCallingName(const char* value) { SetCallingName(value); return *this;}
166
168
171 inline const CallingNameStatus& GetCallingNameStatus() const{ return m_callingNameStatus; }
172 inline bool CallingNameStatusHasBeenSet() const { return m_callingNameStatusHasBeenSet; }
173 inline void SetCallingNameStatus(const CallingNameStatus& value) { m_callingNameStatusHasBeenSet = true; m_callingNameStatus = value; }
174 inline void SetCallingNameStatus(CallingNameStatus&& value) { m_callingNameStatusHasBeenSet = true; m_callingNameStatus = std::move(value); }
175 inline PhoneNumber& WithCallingNameStatus(const CallingNameStatus& value) { SetCallingNameStatus(value); return *this;}
176 inline PhoneNumber& WithCallingNameStatus(CallingNameStatus&& value) { SetCallingNameStatus(std::move(value)); return *this;}
178
180
183 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
184 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
185 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
186 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
187 inline PhoneNumber& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
188 inline PhoneNumber& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
190
192
195 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; }
196 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
197 inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = value; }
198 inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::move(value); }
199 inline PhoneNumber& WithUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetUpdatedTimestamp(value); return *this;}
200 inline PhoneNumber& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;}
202
204
207 inline const Aws::Utils::DateTime& GetDeletionTimestamp() const{ return m_deletionTimestamp; }
208 inline bool DeletionTimestampHasBeenSet() const { return m_deletionTimestampHasBeenSet; }
209 inline void SetDeletionTimestamp(const Aws::Utils::DateTime& value) { m_deletionTimestampHasBeenSet = true; m_deletionTimestamp = value; }
210 inline void SetDeletionTimestamp(Aws::Utils::DateTime&& value) { m_deletionTimestampHasBeenSet = true; m_deletionTimestamp = std::move(value); }
211 inline PhoneNumber& WithDeletionTimestamp(const Aws::Utils::DateTime& value) { SetDeletionTimestamp(value); return *this;}
212 inline PhoneNumber& WithDeletionTimestamp(Aws::Utils::DateTime&& value) { SetDeletionTimestamp(std::move(value)); return *this;}
214 private:
215
216 Aws::String m_phoneNumberId;
217 bool m_phoneNumberIdHasBeenSet = false;
218
219 Aws::String m_e164PhoneNumber;
220 bool m_e164PhoneNumberHasBeenSet = false;
221
222 Aws::String m_country;
223 bool m_countryHasBeenSet = false;
224
225 PhoneNumberType m_type;
226 bool m_typeHasBeenSet = false;
227
228 PhoneNumberProductType m_productType;
229 bool m_productTypeHasBeenSet = false;
230
231 PhoneNumberStatus m_status;
232 bool m_statusHasBeenSet = false;
233
234 PhoneNumberCapabilities m_capabilities;
235 bool m_capabilitiesHasBeenSet = false;
236
238 bool m_associationsHasBeenSet = false;
239
240 Aws::String m_callingName;
241 bool m_callingNameHasBeenSet = false;
242
243 CallingNameStatus m_callingNameStatus;
244 bool m_callingNameStatusHasBeenSet = false;
245
246 Aws::Utils::DateTime m_createdTimestamp;
247 bool m_createdTimestampHasBeenSet = false;
248
249 Aws::Utils::DateTime m_updatedTimestamp;
250 bool m_updatedTimestampHasBeenSet = false;
251
252 Aws::Utils::DateTime m_deletionTimestamp;
253 bool m_deletionTimestampHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace Chime
258} // namespace Aws
PhoneNumber & WithDeletionTimestamp(const Aws::Utils::DateTime &value)
const PhoneNumberProductType & GetProductType() const
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
PhoneNumber & AddAssociations(const PhoneNumberAssociation &value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
PhoneNumber & AddAssociations(PhoneNumberAssociation &&value)
PhoneNumber & WithAssociations(const Aws::Vector< PhoneNumberAssociation > &value)
void SetCapabilities(PhoneNumberCapabilities &&value)
bool CreatedTimestampHasBeenSet() const
PhoneNumber & WithType(PhoneNumberType &&value)
const Aws::String & GetE164PhoneNumber() const
Definition PhoneNumber.h:67
AWS_CHIME_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue)
PhoneNumber & WithCallingName(Aws::String &&value)
PhoneNumber & WithPhoneNumberId(const Aws::String &value)
Definition PhoneNumber.h:58
void SetAssociations(const Aws::Vector< PhoneNumberAssociation > &value)
const Aws::String & GetCountry() const
Definition PhoneNumber.h:81
void SetPhoneNumberId(const Aws::String &value)
Definition PhoneNumber.h:55
void SetDeletionTimestamp(const Aws::Utils::DateTime &value)
PhoneNumber & WithCallingName(const char *value)
PhoneNumber & WithUpdatedTimestamp(Aws::Utils::DateTime &&value)
PhoneNumber & WithPhoneNumberId(Aws::String &&value)
Definition PhoneNumber.h:59
void SetCountry(Aws::String &&value)
Definition PhoneNumber.h:84
const CallingNameStatus & GetCallingNameStatus() const
PhoneNumber & WithCountry(const Aws::String &value)
Definition PhoneNumber.h:86
bool CallingNameStatusHasBeenSet() const
PhoneNumber & WithCountry(const char *value)
Definition PhoneNumber.h:88
void SetType(const PhoneNumberType &value)
Definition PhoneNumber.h:97
PhoneNumber & WithPhoneNumberId(const char *value)
Definition PhoneNumber.h:60
PhoneNumber & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
PhoneNumber & WithCountry(Aws::String &&value)
Definition PhoneNumber.h:87
PhoneNumber & WithE164PhoneNumber(Aws::String &&value)
Definition PhoneNumber.h:73
PhoneNumber & WithUpdatedTimestamp(const Aws::Utils::DateTime &value)
PhoneNumber & WithCallingNameStatus(CallingNameStatus &&value)
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
AWS_CHIME_API PhoneNumber & operator=(Aws::Utils::Json::JsonView jsonValue)
PhoneNumber & WithDeletionTimestamp(Aws::Utils::DateTime &&value)
PhoneNumber & WithProductType(const PhoneNumberProductType &value)
const Aws::String & GetPhoneNumberId() const
Definition PhoneNumber.h:53
void SetCallingName(const Aws::String &value)
bool DeletionTimestampHasBeenSet() const
const Aws::Utils::DateTime & GetDeletionTimestamp() const
PhoneNumber & WithStatus(const PhoneNumberStatus &value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
void SetCallingNameStatus(CallingNameStatus &&value)
bool UpdatedTimestampHasBeenSet() const
void SetPhoneNumberId(const char *value)
Definition PhoneNumber.h:57
const Aws::String & GetCallingName() const
void SetCallingName(Aws::String &&value)
PhoneNumber & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
PhoneNumber & WithCapabilities(const PhoneNumberCapabilities &value)
void SetPhoneNumberId(Aws::String &&value)
Definition PhoneNumber.h:56
void SetCapabilities(const PhoneNumberCapabilities &value)
PhoneNumber & WithCapabilities(PhoneNumberCapabilities &&value)
void SetE164PhoneNumber(Aws::String &&value)
Definition PhoneNumber.h:70
PhoneNumber & WithE164PhoneNumber(const Aws::String &value)
Definition PhoneNumber.h:72
PhoneNumber & WithStatus(PhoneNumberStatus &&value)
void SetAssociations(Aws::Vector< PhoneNumberAssociation > &&value)
const Aws::Vector< PhoneNumberAssociation > & GetAssociations() const
PhoneNumber & WithCallingNameStatus(const CallingNameStatus &value)
void SetStatus(PhoneNumberStatus &&value)
PhoneNumber & WithE164PhoneNumber(const char *value)
Definition PhoneNumber.h:74
void SetType(PhoneNumberType &&value)
Definition PhoneNumber.h:98
PhoneNumber & WithCallingName(const Aws::String &value)
PhoneNumber & WithProductType(PhoneNumberProductType &&value)
void SetCallingNameStatus(const CallingNameStatus &value)
const PhoneNumberStatus & GetStatus() const
PhoneNumber & WithType(const PhoneNumberType &value)
Definition PhoneNumber.h:99
void SetCallingName(const char *value)
bool E164PhoneNumberHasBeenSet() const
Definition PhoneNumber.h:68
void SetDeletionTimestamp(Aws::Utils::DateTime &&value)
PhoneNumber & WithAssociations(Aws::Vector< PhoneNumberAssociation > &&value)
void SetUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetE164PhoneNumber(const char *value)
Definition PhoneNumber.h:71
void SetCountry(const Aws::String &value)
Definition PhoneNumber.h:83
void SetUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetProductType(const PhoneNumberProductType &value)
void SetStatus(const PhoneNumberStatus &value)
void SetE164PhoneNumber(const Aws::String &value)
Definition PhoneNumber.h:69
void SetCountry(const char *value)
Definition PhoneNumber.h:85
void SetProductType(PhoneNumberProductType &&value)
const PhoneNumberType & GetType() const
Definition PhoneNumber.h:95
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