AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
38 AWS_SNS_API PhoneNumberInformation() = default;
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 template<typename CreatedAtT = Aws::Utils::DateTime>
53 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
54 template<typename CreatedAtT = Aws::Utils::DateTime>
55 PhoneNumberInformation& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
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) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
66 template<typename PhoneNumberT = Aws::String>
67 PhoneNumberInformation& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
69
71
74 inline const Aws::String& GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 template<typename StatusT = Aws::String>
77 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
78 template<typename StatusT = Aws::String>
79 PhoneNumberInformation& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
81
83
87 inline const Aws::String& GetIso2CountryCode() const { return m_iso2CountryCode; }
88 inline bool Iso2CountryCodeHasBeenSet() const { return m_iso2CountryCodeHasBeenSet; }
89 template<typename Iso2CountryCodeT = Aws::String>
90 void SetIso2CountryCode(Iso2CountryCodeT&& value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode = std::forward<Iso2CountryCodeT>(value); }
91 template<typename Iso2CountryCodeT = Aws::String>
92 PhoneNumberInformation& WithIso2CountryCode(Iso2CountryCodeT&& value) { SetIso2CountryCode(std::forward<Iso2CountryCodeT>(value)); return *this;}
94
96
99 inline RouteType GetRouteType() const { return m_routeType; }
100 inline bool RouteTypeHasBeenSet() const { return m_routeTypeHasBeenSet; }
101 inline void SetRouteType(RouteType value) { m_routeTypeHasBeenSet = true; m_routeType = value; }
102 inline PhoneNumberInformation& WithRouteType(RouteType value) { SetRouteType(value); return *this;}
104
106
109 inline const Aws::Vector<NumberCapability>& GetNumberCapabilities() const { return m_numberCapabilities; }
110 inline bool NumberCapabilitiesHasBeenSet() const { return m_numberCapabilitiesHasBeenSet; }
111 template<typename NumberCapabilitiesT = Aws::Vector<NumberCapability>>
112 void SetNumberCapabilities(NumberCapabilitiesT&& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities = std::forward<NumberCapabilitiesT>(value); }
113 template<typename NumberCapabilitiesT = Aws::Vector<NumberCapability>>
114 PhoneNumberInformation& WithNumberCapabilities(NumberCapabilitiesT&& value) { SetNumberCapabilities(std::forward<NumberCapabilitiesT>(value)); return *this;}
115 inline PhoneNumberInformation& AddNumberCapabilities(NumberCapability value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities.push_back(value); return *this; }
117 private:
118
119 Aws::Utils::DateTime m_createdAt{};
120 bool m_createdAtHasBeenSet = false;
121
122 Aws::String m_phoneNumber;
123 bool m_phoneNumberHasBeenSet = false;
124
125 Aws::String m_status;
126 bool m_statusHasBeenSet = false;
127
128 Aws::String m_iso2CountryCode;
129 bool m_iso2CountryCodeHasBeenSet = false;
130
131 RouteType m_routeType{RouteType::NOT_SET};
132 bool m_routeTypeHasBeenSet = false;
133
134 Aws::Vector<NumberCapability> m_numberCapabilities;
135 bool m_numberCapabilitiesHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace SNS
140} // 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