AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PhoneNumberInformation.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sns/model/RouteType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sns/model/NumberCapability.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace SNS
26{
27namespace Model
28{
29
36 {
37 public:
41
42 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
51 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
52 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
53 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
54 inline PhoneNumberInformation& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
55 inline PhoneNumberInformation& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
63 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
64 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
65 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
66 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
67 inline PhoneNumberInformation& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
68 inline PhoneNumberInformation& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
69 inline PhoneNumberInformation& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
71
73
76 inline const Aws::String& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
81 inline PhoneNumberInformation& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
82 inline PhoneNumberInformation& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
83 inline PhoneNumberInformation& WithStatus(const char* value) { SetStatus(value); return *this;}
85
87
91 inline const Aws::String& GetIso2CountryCode() const{ return m_iso2CountryCode; }
92 inline bool Iso2CountryCodeHasBeenSet() const { return m_iso2CountryCodeHasBeenSet; }
93 inline void SetIso2CountryCode(const Aws::String& value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode = value; }
94 inline void SetIso2CountryCode(Aws::String&& value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode = std::move(value); }
95 inline void SetIso2CountryCode(const char* value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode.assign(value); }
96 inline PhoneNumberInformation& WithIso2CountryCode(const Aws::String& value) { SetIso2CountryCode(value); return *this;}
97 inline PhoneNumberInformation& WithIso2CountryCode(Aws::String&& value) { SetIso2CountryCode(std::move(value)); return *this;}
98 inline PhoneNumberInformation& WithIso2CountryCode(const char* value) { SetIso2CountryCode(value); return *this;}
100
102
105 inline const RouteType& GetRouteType() const{ return m_routeType; }
106 inline bool RouteTypeHasBeenSet() const { return m_routeTypeHasBeenSet; }
107 inline void SetRouteType(const RouteType& value) { m_routeTypeHasBeenSet = true; m_routeType = value; }
108 inline void SetRouteType(RouteType&& value) { m_routeTypeHasBeenSet = true; m_routeType = std::move(value); }
109 inline PhoneNumberInformation& WithRouteType(const RouteType& value) { SetRouteType(value); return *this;}
110 inline PhoneNumberInformation& WithRouteType(RouteType&& value) { SetRouteType(std::move(value)); return *this;}
112
114
117 inline const Aws::Vector<NumberCapability>& GetNumberCapabilities() const{ return m_numberCapabilities; }
118 inline bool NumberCapabilitiesHasBeenSet() const { return m_numberCapabilitiesHasBeenSet; }
119 inline void SetNumberCapabilities(const Aws::Vector<NumberCapability>& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities = value; }
120 inline void SetNumberCapabilities(Aws::Vector<NumberCapability>&& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities = std::move(value); }
123 inline PhoneNumberInformation& AddNumberCapabilities(const NumberCapability& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities.push_back(value); return *this; }
124 inline PhoneNumberInformation& AddNumberCapabilities(NumberCapability&& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities.push_back(std::move(value)); return *this; }
126 private:
127
128 Aws::Utils::DateTime m_createdAt;
129 bool m_createdAtHasBeenSet = false;
130
131 Aws::String m_phoneNumber;
132 bool m_phoneNumberHasBeenSet = false;
133
134 Aws::String m_status;
135 bool m_statusHasBeenSet = false;
136
137 Aws::String m_iso2CountryCode;
138 bool m_iso2CountryCodeHasBeenSet = false;
139
140 RouteType m_routeType;
141 bool m_routeTypeHasBeenSet = false;
142
143 Aws::Vector<NumberCapability> m_numberCapabilities;
144 bool m_numberCapabilitiesHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace SNS
149} // namespace Aws
AWS_SNS_API PhoneNumberInformation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PhoneNumberInformation & AddNumberCapabilities(NumberCapability &&value)
PhoneNumberInformation & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< NumberCapability > & GetNumberCapabilities() const
PhoneNumberInformation & WithStatus(const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
PhoneNumberInformation & WithPhoneNumber(const Aws::String &value)
PhoneNumberInformation & WithPhoneNumber(Aws::String &&value)
void SetIso2CountryCode(const Aws::String &value)
void SetNumberCapabilities(Aws::Vector< NumberCapability > &&value)
PhoneNumberInformation & WithRouteType(const RouteType &value)
PhoneNumberInformation & WithIso2CountryCode(Aws::String &&value)
AWS_SNS_API PhoneNumberInformation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNumberCapabilities(const Aws::Vector< NumberCapability > &value)
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PhoneNumberInformation & AddNumberCapabilities(const NumberCapability &value)
PhoneNumberInformation & WithStatus(const Aws::String &value)
PhoneNumberInformation & WithCreatedAt(Aws::Utils::DateTime &&value)
PhoneNumberInformation & WithPhoneNumber(const char *value)
PhoneNumberInformation & WithStatus(Aws::String &&value)
PhoneNumberInformation & WithIso2CountryCode(const Aws::String &value)
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(const char *value)
PhoneNumberInformation & WithNumberCapabilities(Aws::Vector< NumberCapability > &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
PhoneNumberInformation & WithNumberCapabilities(const Aws::Vector< NumberCapability > &value)
void SetPhoneNumber(const Aws::String &value)
PhoneNumberInformation & WithRouteType(RouteType &&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