AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
PhoneNumberInformation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sns/SNS_EXPORTS.h>
12#include <aws/sns/model/NumberCapability.h>
13#include <aws/sns/model/RouteType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace SNS {
24namespace Model {
25
32 public:
33 AWS_SNS_API PhoneNumberInformation() = default;
36
37 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
45 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
46 template <typename CreatedAtT = Aws::Utils::DateTime>
47 void SetCreatedAt(CreatedAtT&& value) {
48 m_createdAtHasBeenSet = true;
49 m_createdAt = std::forward<CreatedAtT>(value);
50 }
51 template <typename CreatedAtT = Aws::Utils::DateTime>
53 SetCreatedAt(std::forward<CreatedAtT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
63 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
64 template <typename PhoneNumberT = Aws::String>
65 void SetPhoneNumber(PhoneNumberT&& value) {
66 m_phoneNumberHasBeenSet = true;
67 m_phoneNumber = std::forward<PhoneNumberT>(value);
68 }
69 template <typename PhoneNumberT = Aws::String>
70 PhoneNumberInformation& WithPhoneNumber(PhoneNumberT&& value) {
71 SetPhoneNumber(std::forward<PhoneNumberT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 template <typename StatusT = Aws::String>
83 void SetStatus(StatusT&& value) {
84 m_statusHasBeenSet = true;
85 m_status = std::forward<StatusT>(value);
86 }
87 template <typename StatusT = Aws::String>
89 SetStatus(std::forward<StatusT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetIso2CountryCode() const { return m_iso2CountryCode; }
100 inline bool Iso2CountryCodeHasBeenSet() const { return m_iso2CountryCodeHasBeenSet; }
101 template <typename Iso2CountryCodeT = Aws::String>
102 void SetIso2CountryCode(Iso2CountryCodeT&& value) {
103 m_iso2CountryCodeHasBeenSet = true;
104 m_iso2CountryCode = std::forward<Iso2CountryCodeT>(value);
105 }
106 template <typename Iso2CountryCodeT = Aws::String>
107 PhoneNumberInformation& WithIso2CountryCode(Iso2CountryCodeT&& value) {
108 SetIso2CountryCode(std::forward<Iso2CountryCodeT>(value));
109 return *this;
110 }
112
114
117 inline RouteType GetRouteType() const { return m_routeType; }
118 inline bool RouteTypeHasBeenSet() const { return m_routeTypeHasBeenSet; }
119 inline void SetRouteType(RouteType value) {
120 m_routeTypeHasBeenSet = true;
121 m_routeType = value;
122 }
124 SetRouteType(value);
125 return *this;
126 }
128
130
133 inline const Aws::Vector<NumberCapability>& GetNumberCapabilities() const { return m_numberCapabilities; }
134 inline bool NumberCapabilitiesHasBeenSet() const { return m_numberCapabilitiesHasBeenSet; }
135 template <typename NumberCapabilitiesT = Aws::Vector<NumberCapability>>
136 void SetNumberCapabilities(NumberCapabilitiesT&& value) {
137 m_numberCapabilitiesHasBeenSet = true;
138 m_numberCapabilities = std::forward<NumberCapabilitiesT>(value);
139 }
140 template <typename NumberCapabilitiesT = Aws::Vector<NumberCapability>>
141 PhoneNumberInformation& WithNumberCapabilities(NumberCapabilitiesT&& value) {
142 SetNumberCapabilities(std::forward<NumberCapabilitiesT>(value));
143 return *this;
144 }
146 m_numberCapabilitiesHasBeenSet = true;
147 m_numberCapabilities.push_back(value);
148 return *this;
149 }
151 private:
152 Aws::Utils::DateTime m_createdAt{};
153
154 Aws::String m_phoneNumber;
155
156 Aws::String m_status;
157
158 Aws::String m_iso2CountryCode;
159
160 RouteType m_routeType{RouteType::NOT_SET};
161
162 Aws::Vector<NumberCapability> m_numberCapabilities;
163 bool m_createdAtHasBeenSet = false;
164 bool m_phoneNumberHasBeenSet = false;
165 bool m_statusHasBeenSet = false;
166 bool m_iso2CountryCodeHasBeenSet = false;
167 bool m_routeTypeHasBeenSet = false;
168 bool m_numberCapabilitiesHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace SNS
173} // namespace Aws
PhoneNumberInformation & WithStatus(StatusT &&value)
AWS_SNS_API PhoneNumberInformation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PhoneNumberInformation & WithNumberCapabilities(NumberCapabilitiesT &&value)
PhoneNumberInformation & WithPhoneNumber(PhoneNumberT &&value)
const Aws::Vector< NumberCapability > & GetNumberCapabilities() const
void SetIso2CountryCode(Iso2CountryCodeT &&value)
PhoneNumberInformation & WithRouteType(RouteType value)
PhoneNumberInformation & AddNumberCapabilities(NumberCapability value)
AWS_SNS_API PhoneNumberInformation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetCreatedAt() const
PhoneNumberInformation & WithIso2CountryCode(Iso2CountryCodeT &&value)
void SetNumberCapabilities(NumberCapabilitiesT &&value)
AWS_SNS_API PhoneNumberInformation()=default
PhoneNumberInformation & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream