AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
LibraryTemplateButtonInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SocialMessaging {
22namespace Model {
23
31 public:
32 AWS_SOCIALMESSAGING_API LibraryTemplateButtonInput() = default;
33 AWS_SOCIALMESSAGING_API LibraryTemplateButtonInput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 template <typename TypeT = Aws::String>
44 void SetType(TypeT&& value) {
45 m_typeHasBeenSet = true;
46 m_type = std::forward<TypeT>(value);
47 }
48 template <typename TypeT = Aws::String>
50 SetType(std::forward<TypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
60 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
61 template <typename PhoneNumberT = Aws::String>
62 void SetPhoneNumber(PhoneNumberT&& value) {
63 m_phoneNumberHasBeenSet = true;
64 m_phoneNumber = std::forward<PhoneNumberT>(value);
65 }
66 template <typename PhoneNumberT = Aws::String>
68 SetPhoneNumber(std::forward<PhoneNumberT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetUrl() const { return m_url; }
78 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
79 template <typename UrlT = Aws::Map<Aws::String, Aws::String>>
80 void SetUrl(UrlT&& value) {
81 m_urlHasBeenSet = true;
82 m_url = std::forward<UrlT>(value);
83 }
84 template <typename UrlT = Aws::Map<Aws::String, Aws::String>>
86 SetUrl(std::forward<UrlT>(value));
87 return *this;
88 }
89 template <typename UrlKeyT = Aws::String, typename UrlValueT = Aws::String>
90 LibraryTemplateButtonInput& AddUrl(UrlKeyT&& key, UrlValueT&& value) {
91 m_urlHasBeenSet = true;
92 m_url.emplace(std::forward<UrlKeyT>(key), std::forward<UrlValueT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetOtpType() const { return m_otpType; }
102 inline bool OtpTypeHasBeenSet() const { return m_otpTypeHasBeenSet; }
103 template <typename OtpTypeT = Aws::String>
104 void SetOtpType(OtpTypeT&& value) {
105 m_otpTypeHasBeenSet = true;
106 m_otpType = std::forward<OtpTypeT>(value);
107 }
108 template <typename OtpTypeT = Aws::String>
110 SetOtpType(std::forward<OtpTypeT>(value));
111 return *this;
112 }
114
116
119 inline bool GetZeroTapTermsAccepted() const { return m_zeroTapTermsAccepted; }
120 inline bool ZeroTapTermsAcceptedHasBeenSet() const { return m_zeroTapTermsAcceptedHasBeenSet; }
121 inline void SetZeroTapTermsAccepted(bool value) {
122 m_zeroTapTermsAcceptedHasBeenSet = true;
123 m_zeroTapTermsAccepted = value;
124 }
127 return *this;
128 }
130
132
135 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetSupportedApps() const { return m_supportedApps; }
136 inline bool SupportedAppsHasBeenSet() const { return m_supportedAppsHasBeenSet; }
137 template <typename SupportedAppsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
138 void SetSupportedApps(SupportedAppsT&& value) {
139 m_supportedAppsHasBeenSet = true;
140 m_supportedApps = std::forward<SupportedAppsT>(value);
141 }
142 template <typename SupportedAppsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
144 SetSupportedApps(std::forward<SupportedAppsT>(value));
145 return *this;
146 }
147 template <typename SupportedAppsT = Aws::Map<Aws::String, Aws::String>>
149 m_supportedAppsHasBeenSet = true;
150 m_supportedApps.emplace_back(std::forward<SupportedAppsT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_type;
156
157 Aws::String m_phoneNumber;
158
160
161 Aws::String m_otpType;
162
163 bool m_zeroTapTermsAccepted{false};
164
166 bool m_typeHasBeenSet = false;
167 bool m_phoneNumberHasBeenSet = false;
168 bool m_urlHasBeenSet = false;
169 bool m_otpTypeHasBeenSet = false;
170 bool m_zeroTapTermsAcceptedHasBeenSet = false;
171 bool m_supportedAppsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace SocialMessaging
176} // namespace Aws
AWS_SOCIALMESSAGING_API LibraryTemplateButtonInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
LibraryTemplateButtonInput & AddUrl(UrlKeyT &&key, UrlValueT &&value)
LibraryTemplateButtonInput & WithPhoneNumber(PhoneNumberT &&value)
LibraryTemplateButtonInput & AddSupportedApps(SupportedAppsT &&value)
LibraryTemplateButtonInput & WithZeroTapTermsAccepted(bool value)
AWS_SOCIALMESSAGING_API LibraryTemplateButtonInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetUrl() const
LibraryTemplateButtonInput & WithSupportedApps(SupportedAppsT &&value)
LibraryTemplateButtonInput & WithOtpType(OtpTypeT &&value)
AWS_SOCIALMESSAGING_API LibraryTemplateButtonInput()=default
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetSupportedApps() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue