AWS SDK for C++  1.9.104
AWS SDK for C++
PhoneNumberInformation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace SNS
26 {
27 namespace Model
28 {
29 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
50 
54  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
55 
59  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
60 
64  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
65 
69  inline PhoneNumberInformation& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
70 
74  inline PhoneNumberInformation& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
75 
76 
80  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
81 
85  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
86 
90  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
91 
95  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
96 
100  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
101 
105  inline PhoneNumberInformation& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
106 
110  inline PhoneNumberInformation& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
111 
115  inline PhoneNumberInformation& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
116 
117 
121  inline const Aws::String& GetStatus() const{ return m_status; }
122 
126  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 
131  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
132 
136  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
137 
141  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
142 
146  inline PhoneNumberInformation& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
147 
151  inline PhoneNumberInformation& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
152 
156  inline PhoneNumberInformation& WithStatus(const char* value) { SetStatus(value); return *this;}
157 
158 
163  inline const Aws::String& GetIso2CountryCode() const{ return m_iso2CountryCode; }
164 
169  inline bool Iso2CountryCodeHasBeenSet() const { return m_iso2CountryCodeHasBeenSet; }
170 
175  inline void SetIso2CountryCode(const Aws::String& value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode = value; }
176 
181  inline void SetIso2CountryCode(Aws::String&& value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode = std::move(value); }
182 
187  inline void SetIso2CountryCode(const char* value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode.assign(value); }
188 
193  inline PhoneNumberInformation& WithIso2CountryCode(const Aws::String& value) { SetIso2CountryCode(value); return *this;}
194 
199  inline PhoneNumberInformation& WithIso2CountryCode(Aws::String&& value) { SetIso2CountryCode(std::move(value)); return *this;}
200 
205  inline PhoneNumberInformation& WithIso2CountryCode(const char* value) { SetIso2CountryCode(value); return *this;}
206 
207 
211  inline const RouteType& GetRouteType() const{ return m_routeType; }
212 
216  inline bool RouteTypeHasBeenSet() const { return m_routeTypeHasBeenSet; }
217 
221  inline void SetRouteType(const RouteType& value) { m_routeTypeHasBeenSet = true; m_routeType = value; }
222 
226  inline void SetRouteType(RouteType&& value) { m_routeTypeHasBeenSet = true; m_routeType = std::move(value); }
227 
231  inline PhoneNumberInformation& WithRouteType(const RouteType& value) { SetRouteType(value); return *this;}
232 
236  inline PhoneNumberInformation& WithRouteType(RouteType&& value) { SetRouteType(std::move(value)); return *this;}
237 
238 
242  inline const Aws::Vector<NumberCapability>& GetNumberCapabilities() const{ return m_numberCapabilities; }
243 
247  inline bool NumberCapabilitiesHasBeenSet() const { return m_numberCapabilitiesHasBeenSet; }
248 
252  inline void SetNumberCapabilities(const Aws::Vector<NumberCapability>& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities = value; }
253 
257  inline void SetNumberCapabilities(Aws::Vector<NumberCapability>&& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities = std::move(value); }
258 
262  inline PhoneNumberInformation& WithNumberCapabilities(const Aws::Vector<NumberCapability>& value) { SetNumberCapabilities(value); return *this;}
263 
267  inline PhoneNumberInformation& WithNumberCapabilities(Aws::Vector<NumberCapability>&& value) { SetNumberCapabilities(std::move(value)); return *this;}
268 
272  inline PhoneNumberInformation& AddNumberCapabilities(const NumberCapability& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities.push_back(value); return *this; }
273 
277  inline PhoneNumberInformation& AddNumberCapabilities(NumberCapability&& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities.push_back(std::move(value)); return *this; }
278 
279  private:
280 
281  Aws::Utils::DateTime m_createdAt;
282  bool m_createdAtHasBeenSet;
283 
284  Aws::String m_phoneNumber;
285  bool m_phoneNumberHasBeenSet;
286 
287  Aws::String m_status;
288  bool m_statusHasBeenSet;
289 
290  Aws::String m_iso2CountryCode;
291  bool m_iso2CountryCodeHasBeenSet;
292 
293  RouteType m_routeType;
294  bool m_routeTypeHasBeenSet;
295 
296  Aws::Vector<NumberCapability> m_numberCapabilities;
297  bool m_numberCapabilitiesHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace SNS
302 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::SNS::Model::PhoneNumberInformation::WithRouteType
PhoneNumberInformation & WithRouteType(RouteType &&value)
Definition: PhoneNumberInformation.h:236
Aws::SNS::Model::PhoneNumberInformation::WithCreatedAt
PhoneNumberInformation & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: PhoneNumberInformation.h:69
Aws::SNS::Model::PhoneNumberInformation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SNS::Model::PhoneNumberInformation::SetPhoneNumber
void SetPhoneNumber(Aws::String &&value)
Definition: PhoneNumberInformation.h:95
Aws::SNS::Model::PhoneNumberInformation::PhoneNumberInformation
PhoneNumberInformation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::PhoneNumberInformation::WithStatus
PhoneNumberInformation & WithStatus(const Aws::String &value)
Definition: PhoneNumberInformation.h:146
DateTime.h
Aws::SNS::Model::RouteType
RouteType
Definition: RouteType.h:17
Aws::SNS::Model::PhoneNumberInformation::SetPhoneNumber
void SetPhoneNumber(const char *value)
Definition: PhoneNumberInformation.h:100
Aws::SNS::Model::PhoneNumberInformation::SetNumberCapabilities
void SetNumberCapabilities(Aws::Vector< NumberCapability > &&value)
Definition: PhoneNumberInformation.h:257
Aws::SNS::Model::PhoneNumberInformation::WithIso2CountryCode
PhoneNumberInformation & WithIso2CountryCode(const char *value)
Definition: PhoneNumberInformation.h:205
NumberCapability.h
Aws::SNS::Model::PhoneNumberInformation::SetRouteType
void SetRouteType(const RouteType &value)
Definition: PhoneNumberInformation.h:221
Aws::SNS::Model::PhoneNumberInformation::Iso2CountryCodeHasBeenSet
bool Iso2CountryCodeHasBeenSet() const
Definition: PhoneNumberInformation.h:169
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::SNS::Model::PhoneNumberInformation::SetIso2CountryCode
void SetIso2CountryCode(const Aws::String &value)
Definition: PhoneNumberInformation.h:175
AWSVector.h
Aws::SNS::Model::PhoneNumberInformation::SetStatus
void SetStatus(const char *value)
Definition: PhoneNumberInformation.h:141
Aws::SNS::Model::PhoneNumberInformation::SetIso2CountryCode
void SetIso2CountryCode(Aws::String &&value)
Definition: PhoneNumberInformation.h:181
Aws::SNS::Model::PhoneNumberInformation::WithCreatedAt
PhoneNumberInformation & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: PhoneNumberInformation.h:74
Aws::SNS::Model::PhoneNumberInformation::SetIso2CountryCode
void SetIso2CountryCode(const char *value)
Definition: PhoneNumberInformation.h:187
Aws::SNS::Model::PhoneNumberInformation::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: PhoneNumberInformation.h:126
Aws::SNS::Model::PhoneNumberInformation::GetStatus
const Aws::String & GetStatus() const
Definition: PhoneNumberInformation.h:121
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SNS::Model::PhoneNumberInformation::operator=
PhoneNumberInformation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SNS::Model::PhoneNumberInformation::RouteTypeHasBeenSet
bool RouteTypeHasBeenSet() const
Definition: PhoneNumberInformation.h:216
Aws::SNS::Model::PhoneNumberInformation::SetNumberCapabilities
void SetNumberCapabilities(const Aws::Vector< NumberCapability > &value)
Definition: PhoneNumberInformation.h:252
RouteType.h
Aws::SNS::Model::PhoneNumberInformation::WithPhoneNumber
PhoneNumberInformation & WithPhoneNumber(const Aws::String &value)
Definition: PhoneNumberInformation.h:105
Aws::SNS::Model::PhoneNumberInformation::SetStatus
void SetStatus(const Aws::String &value)
Definition: PhoneNumberInformation.h:131
Aws::SNS::Model::NumberCapability
NumberCapability
Definition: NumberCapability.h:17
Aws::SNS::Model::PhoneNumberInformation::WithNumberCapabilities
PhoneNumberInformation & WithNumberCapabilities(const Aws::Vector< NumberCapability > &value)
Definition: PhoneNumberInformation.h:262
Aws::SNS::Model::PhoneNumberInformation::WithPhoneNumber
PhoneNumberInformation & WithPhoneNumber(Aws::String &&value)
Definition: PhoneNumberInformation.h:110
Aws::SNS::Model::PhoneNumberInformation::GetNumberCapabilities
const Aws::Vector< NumberCapability > & GetNumberCapabilities() const
Definition: PhoneNumberInformation.h:242
Aws::SNS::Model::PhoneNumberInformation::AddNumberCapabilities
PhoneNumberInformation & AddNumberCapabilities(const NumberCapability &value)
Definition: PhoneNumberInformation.h:272
AWSString.h
Aws::SNS::Model::PhoneNumberInformation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SNS::Model::PhoneNumberInformation::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: PhoneNumberInformation.h:49
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::PhoneNumberInformation::WithNumberCapabilities
PhoneNumberInformation & WithNumberCapabilities(Aws::Vector< NumberCapability > &&value)
Definition: PhoneNumberInformation.h:267
Aws::SNS::Model::PhoneNumberInformation::PhoneNumberHasBeenSet
bool PhoneNumberHasBeenSet() const
Definition: PhoneNumberInformation.h:85
Aws::SNS::Model::PhoneNumberInformation::WithStatus
PhoneNumberInformation & WithStatus(const char *value)
Definition: PhoneNumberInformation.h:156
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::PhoneNumberInformation::PhoneNumberInformation
PhoneNumberInformation()
Aws::SNS::Model::PhoneNumberInformation::SetPhoneNumber
void SetPhoneNumber(const Aws::String &value)
Definition: PhoneNumberInformation.h:90
SNS_EXPORTS.h
Aws::SNS::Model::PhoneNumberInformation::SetStatus
void SetStatus(Aws::String &&value)
Definition: PhoneNumberInformation.h:136
Aws::SNS::Model::PhoneNumberInformation::AddNumberCapabilities
PhoneNumberInformation & AddNumberCapabilities(NumberCapability &&value)
Definition: PhoneNumberInformation.h:277
Aws::SNS::Model::PhoneNumberInformation::GetRouteType
const RouteType & GetRouteType() const
Definition: PhoneNumberInformation.h:211
Aws::SNS::Model::PhoneNumberInformation::WithPhoneNumber
PhoneNumberInformation & WithPhoneNumber(const char *value)
Definition: PhoneNumberInformation.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::PhoneNumberInformation::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: PhoneNumberInformation.h:59
Aws::SNS::Model::PhoneNumberInformation
Definition: PhoneNumberInformation.h:36
Aws::SNS::Model::PhoneNumberInformation::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: PhoneNumberInformation.h:64
Aws::SNS::Model::PhoneNumberInformation::SetRouteType
void SetRouteType(RouteType &&value)
Definition: PhoneNumberInformation.h:226
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::PhoneNumberInformation::GetIso2CountryCode
const Aws::String & GetIso2CountryCode() const
Definition: PhoneNumberInformation.h:163
index
int index
Definition: cJSON.h:181
Aws::SNS::Model::PhoneNumberInformation::WithIso2CountryCode
PhoneNumberInformation & WithIso2CountryCode(Aws::String &&value)
Definition: PhoneNumberInformation.h:199
Aws::SNS::Model::PhoneNumberInformation::WithIso2CountryCode
PhoneNumberInformation & WithIso2CountryCode(const Aws::String &value)
Definition: PhoneNumberInformation.h:193
Aws::SNS::Model::PhoneNumberInformation::NumberCapabilitiesHasBeenSet
bool NumberCapabilitiesHasBeenSet() const
Definition: PhoneNumberInformation.h:247
Aws::SNS::Model::PhoneNumberInformation::GetPhoneNumber
const Aws::String & GetPhoneNumber() const
Definition: PhoneNumberInformation.h:80
Aws::SNS::Model::PhoneNumberInformation::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: PhoneNumberInformation.h:54
Aws::SNS::Model::PhoneNumberInformation::WithRouteType
PhoneNumberInformation & WithRouteType(const RouteType &value)
Definition: PhoneNumberInformation.h:231
Aws::SNS::Model::PhoneNumberInformation::WithStatus
PhoneNumberInformation & WithStatus(Aws::String &&value)
Definition: PhoneNumberInformation.h:151