AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename PhoneNumberIdT = Aws::String>
56 void SetPhoneNumberId(PhoneNumberIdT&& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = std::forward<PhoneNumberIdT>(value); }
57 template<typename PhoneNumberIdT = Aws::String>
58 PhoneNumber& WithPhoneNumberId(PhoneNumberIdT&& value) { SetPhoneNumberId(std::forward<PhoneNumberIdT>(value)); return *this;}
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) { m_e164PhoneNumberHasBeenSet = true; m_e164PhoneNumber = std::forward<E164PhoneNumberT>(value); }
69 template<typename E164PhoneNumberT = Aws::String>
70 PhoneNumber& WithE164PhoneNumber(E164PhoneNumberT&& value) { SetE164PhoneNumber(std::forward<E164PhoneNumberT>(value)); return *this;}
72
74
77 inline const Aws::String& GetCountry() const { return m_country; }
78 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
79 template<typename CountryT = Aws::String>
80 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
81 template<typename CountryT = Aws::String>
82 PhoneNumber& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
84
86
89 inline PhoneNumberType GetType() const { return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(PhoneNumberType value) { m_typeHasBeenSet = true; m_type = value; }
92 inline PhoneNumber& WithType(PhoneNumberType value) { SetType(value); return *this;}
94
96
99 inline PhoneNumberProductType GetProductType() const { return m_productType; }
100 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
101 inline void SetProductType(PhoneNumberProductType value) { m_productTypeHasBeenSet = true; m_productType = value; }
102 inline PhoneNumber& WithProductType(PhoneNumberProductType value) { SetProductType(value); return *this;}
104
106
109 inline PhoneNumberStatus GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(PhoneNumberStatus value) { m_statusHasBeenSet = true; m_status = value; }
112 inline PhoneNumber& WithStatus(PhoneNumberStatus value) { SetStatus(value); return *this;}
114
116
119 inline const PhoneNumberCapabilities& GetCapabilities() const { return m_capabilities; }
120 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
121 template<typename CapabilitiesT = PhoneNumberCapabilities>
122 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
123 template<typename CapabilitiesT = PhoneNumberCapabilities>
124 PhoneNumber& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
126
128
131 inline const Aws::Vector<PhoneNumberAssociation>& GetAssociations() const { return m_associations; }
132 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
133 template<typename AssociationsT = Aws::Vector<PhoneNumberAssociation>>
134 void SetAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations = std::forward<AssociationsT>(value); }
135 template<typename AssociationsT = Aws::Vector<PhoneNumberAssociation>>
136 PhoneNumber& WithAssociations(AssociationsT&& value) { SetAssociations(std::forward<AssociationsT>(value)); return *this;}
137 template<typename AssociationsT = PhoneNumberAssociation>
138 PhoneNumber& AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations.emplace_back(std::forward<AssociationsT>(value)); return *this; }
140
142
145 inline const Aws::String& GetCallingName() const { return m_callingName; }
146 inline bool CallingNameHasBeenSet() const { return m_callingNameHasBeenSet; }
147 template<typename CallingNameT = Aws::String>
148 void SetCallingName(CallingNameT&& value) { m_callingNameHasBeenSet = true; m_callingName = std::forward<CallingNameT>(value); }
149 template<typename CallingNameT = Aws::String>
150 PhoneNumber& WithCallingName(CallingNameT&& value) { SetCallingName(std::forward<CallingNameT>(value)); return *this;}
152
154
157 inline CallingNameStatus GetCallingNameStatus() const { return m_callingNameStatus; }
158 inline bool CallingNameStatusHasBeenSet() const { return m_callingNameStatusHasBeenSet; }
159 inline void SetCallingNameStatus(CallingNameStatus value) { m_callingNameStatusHasBeenSet = true; m_callingNameStatus = value; }
162
164
167 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
168 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
169 template<typename CreatedTimestampT = Aws::Utils::DateTime>
170 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
171 template<typename CreatedTimestampT = Aws::Utils::DateTime>
172 PhoneNumber& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
174
176
179 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
180 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
181 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
182 void SetUpdatedTimestamp(UpdatedTimestampT&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::forward<UpdatedTimestampT>(value); }
183 template<typename UpdatedTimestampT = Aws::Utils::DateTime>
184 PhoneNumber& WithUpdatedTimestamp(UpdatedTimestampT&& value) { SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value)); return *this;}
186
188
191 inline const Aws::Utils::DateTime& GetDeletionTimestamp() const { return m_deletionTimestamp; }
192 inline bool DeletionTimestampHasBeenSet() const { return m_deletionTimestampHasBeenSet; }
193 template<typename DeletionTimestampT = Aws::Utils::DateTime>
194 void SetDeletionTimestamp(DeletionTimestampT&& value) { m_deletionTimestampHasBeenSet = true; m_deletionTimestamp = std::forward<DeletionTimestampT>(value); }
195 template<typename DeletionTimestampT = Aws::Utils::DateTime>
196 PhoneNumber& WithDeletionTimestamp(DeletionTimestampT&& value) { SetDeletionTimestamp(std::forward<DeletionTimestampT>(value)); return *this;}
198 private:
199
200 Aws::String m_phoneNumberId;
201 bool m_phoneNumberIdHasBeenSet = false;
202
203 Aws::String m_e164PhoneNumber;
204 bool m_e164PhoneNumberHasBeenSet = false;
205
206 Aws::String m_country;
207 bool m_countryHasBeenSet = false;
208
210 bool m_typeHasBeenSet = false;
211
213 bool m_productTypeHasBeenSet = false;
214
216 bool m_statusHasBeenSet = false;
217
218 PhoneNumberCapabilities m_capabilities;
219 bool m_capabilitiesHasBeenSet = false;
220
222 bool m_associationsHasBeenSet = false;
223
224 Aws::String m_callingName;
225 bool m_callingNameHasBeenSet = false;
226
228 bool m_callingNameStatusHasBeenSet = false;
229
230 Aws::Utils::DateTime m_createdTimestamp{};
231 bool m_createdTimestampHasBeenSet = false;
232
233 Aws::Utils::DateTime m_updatedTimestamp{};
234 bool m_updatedTimestampHasBeenSet = false;
235
236 Aws::Utils::DateTime m_deletionTimestamp{};
237 bool m_deletionTimestampHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace Chime
242} // 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:77
void SetDeletionTimestamp(DeletionTimestampT &&value)
PhoneNumberProductType GetProductType() const
Definition PhoneNumber.h:99
bool CallingNameStatusHasBeenSet() const
PhoneNumber & WithCapabilities(CapabilitiesT &&value)
PhoneNumber & WithCountry(CountryT &&value)
Definition PhoneNumber.h:82
PhoneNumber & WithStatus(PhoneNumberStatus value)
PhoneNumber & WithPhoneNumberId(PhoneNumberIdT &&value)
Definition PhoneNumber.h:58
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
AWS_CHIME_API PhoneNumber & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPhoneNumberId() const
Definition PhoneNumber.h:53
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:80
PhoneNumber & WithProductType(PhoneNumberProductType value)
const Aws::Vector< PhoneNumberAssociation > & GetAssociations() const
void SetPhoneNumberId(PhoneNumberIdT &&value)
Definition PhoneNumber.h:56
void SetStatus(PhoneNumberStatus value)
void SetCallingNameStatus(CallingNameStatus value)
PhoneNumber & AddAssociations(AssociationsT &&value)
PhoneNumber & WithCreatedTimestamp(CreatedTimestampT &&value)
PhoneNumber & WithCallingName(CallingNameT &&value)
PhoneNumberType GetType() const
Definition PhoneNumber.h:89
void SetAssociations(AssociationsT &&value)
bool E164PhoneNumberHasBeenSet() const
Definition PhoneNumber.h:66
PhoneNumber & WithType(PhoneNumberType value)
Definition PhoneNumber.h:92
CallingNameStatus GetCallingNameStatus() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
PhoneNumber & WithE164PhoneNumber(E164PhoneNumberT &&value)
Definition PhoneNumber.h:70
void SetCallingName(CallingNameT &&value)
PhoneNumberStatus GetStatus() const
void SetType(PhoneNumberType value)
Definition PhoneNumber.h:91
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