AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LibraryTemplateButtonList.h
1
6#pragma once
7#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SocialMessaging
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SOCIALMESSAGING_API LibraryTemplateButtonList() = default;
38 AWS_SOCIALMESSAGING_API LibraryTemplateButtonList(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 template<typename TypeT = Aws::String>
50 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
51 template<typename TypeT = Aws::String>
52 LibraryTemplateButtonList& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
54
56
59 inline const Aws::String& GetText() const { return m_text; }
60 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
61 template<typename TextT = Aws::String>
62 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
63 template<typename TextT = Aws::String>
64 LibraryTemplateButtonList& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
66
68
71 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
72 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
73 template<typename PhoneNumberT = Aws::String>
74 void SetPhoneNumber(PhoneNumberT&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
75 template<typename PhoneNumberT = Aws::String>
76 LibraryTemplateButtonList& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
78
80
83 inline const Aws::String& GetUrl() const { return m_url; }
84 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
85 template<typename UrlT = Aws::String>
86 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
87 template<typename UrlT = Aws::String>
88 LibraryTemplateButtonList& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
90
92
95 inline const Aws::String& GetOtpType() const { return m_otpType; }
96 inline bool OtpTypeHasBeenSet() const { return m_otpTypeHasBeenSet; }
97 template<typename OtpTypeT = Aws::String>
98 void SetOtpType(OtpTypeT&& value) { m_otpTypeHasBeenSet = true; m_otpType = std::forward<OtpTypeT>(value); }
99 template<typename OtpTypeT = Aws::String>
100 LibraryTemplateButtonList& WithOtpType(OtpTypeT&& value) { SetOtpType(std::forward<OtpTypeT>(value)); return *this;}
102
104
107 inline bool GetZeroTapTermsAccepted() const { return m_zeroTapTermsAccepted; }
108 inline bool ZeroTapTermsAcceptedHasBeenSet() const { return m_zeroTapTermsAcceptedHasBeenSet; }
109 inline void SetZeroTapTermsAccepted(bool value) { m_zeroTapTermsAcceptedHasBeenSet = true; m_zeroTapTermsAccepted = value; }
112
114
117 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetSupportedApps() const { return m_supportedApps; }
118 inline bool SupportedAppsHasBeenSet() const { return m_supportedAppsHasBeenSet; }
119 template<typename SupportedAppsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
120 void SetSupportedApps(SupportedAppsT&& value) { m_supportedAppsHasBeenSet = true; m_supportedApps = std::forward<SupportedAppsT>(value); }
121 template<typename SupportedAppsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
122 LibraryTemplateButtonList& WithSupportedApps(SupportedAppsT&& value) { SetSupportedApps(std::forward<SupportedAppsT>(value)); return *this;}
123 template<typename SupportedAppsT = Aws::Map<Aws::String, Aws::String>>
124 LibraryTemplateButtonList& AddSupportedApps(SupportedAppsT&& value) { m_supportedAppsHasBeenSet = true; m_supportedApps.emplace_back(std::forward<SupportedAppsT>(value)); return *this; }
126 private:
127
128 Aws::String m_type;
129 bool m_typeHasBeenSet = false;
130
131 Aws::String m_text;
132 bool m_textHasBeenSet = false;
133
134 Aws::String m_phoneNumber;
135 bool m_phoneNumberHasBeenSet = false;
136
137 Aws::String m_url;
138 bool m_urlHasBeenSet = false;
139
140 Aws::String m_otpType;
141 bool m_otpTypeHasBeenSet = false;
142
143 bool m_zeroTapTermsAccepted{false};
144 bool m_zeroTapTermsAcceptedHasBeenSet = false;
145
147 bool m_supportedAppsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace SocialMessaging
152} // namespace Aws
AWS_SOCIALMESSAGING_API LibraryTemplateButtonList & operator=(Aws::Utils::Json::JsonView jsonValue)
LibraryTemplateButtonList & WithSupportedApps(SupportedAppsT &&value)
LibraryTemplateButtonList & WithOtpType(OtpTypeT &&value)
LibraryTemplateButtonList & WithPhoneNumber(PhoneNumberT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetSupportedApps() const
LibraryTemplateButtonList & WithZeroTapTermsAccepted(bool value)
AWS_SOCIALMESSAGING_API LibraryTemplateButtonList()=default
AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SOCIALMESSAGING_API LibraryTemplateButtonList(Aws::Utils::Json::JsonView jsonValue)
LibraryTemplateButtonList & AddSupportedApps(SupportedAppsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue