AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LibraryTemplateButtonInput.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 LibraryTemplateButtonInput() = default;
38 AWS_SOCIALMESSAGING_API LibraryTemplateButtonInput(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 LibraryTemplateButtonInput& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
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) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
63 template<typename PhoneNumberT = Aws::String>
64 LibraryTemplateButtonInput& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
66
68
71 inline const Aws::Map<Aws::String, Aws::String>& GetUrl() const { return m_url; }
72 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
73 template<typename UrlT = Aws::Map<Aws::String, Aws::String>>
74 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
75 template<typename UrlT = Aws::Map<Aws::String, Aws::String>>
76 LibraryTemplateButtonInput& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
77 template<typename UrlKeyT = Aws::String, typename UrlValueT = Aws::String>
78 LibraryTemplateButtonInput& AddUrl(UrlKeyT&& key, UrlValueT&& value) {
79 m_urlHasBeenSet = true; m_url.emplace(std::forward<UrlKeyT>(key), std::forward<UrlValueT>(value)); return *this;
80 }
82
84
87 inline const Aws::String& GetOtpType() const { return m_otpType; }
88 inline bool OtpTypeHasBeenSet() const { return m_otpTypeHasBeenSet; }
89 template<typename OtpTypeT = Aws::String>
90 void SetOtpType(OtpTypeT&& value) { m_otpTypeHasBeenSet = true; m_otpType = std::forward<OtpTypeT>(value); }
91 template<typename OtpTypeT = Aws::String>
92 LibraryTemplateButtonInput& WithOtpType(OtpTypeT&& value) { SetOtpType(std::forward<OtpTypeT>(value)); return *this;}
94
96
99 inline bool GetZeroTapTermsAccepted() const { return m_zeroTapTermsAccepted; }
100 inline bool ZeroTapTermsAcceptedHasBeenSet() const { return m_zeroTapTermsAcceptedHasBeenSet; }
101 inline void SetZeroTapTermsAccepted(bool value) { m_zeroTapTermsAcceptedHasBeenSet = true; m_zeroTapTermsAccepted = value; }
104
106
109 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetSupportedApps() const { return m_supportedApps; }
110 inline bool SupportedAppsHasBeenSet() const { return m_supportedAppsHasBeenSet; }
111 template<typename SupportedAppsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
112 void SetSupportedApps(SupportedAppsT&& value) { m_supportedAppsHasBeenSet = true; m_supportedApps = std::forward<SupportedAppsT>(value); }
113 template<typename SupportedAppsT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
114 LibraryTemplateButtonInput& WithSupportedApps(SupportedAppsT&& value) { SetSupportedApps(std::forward<SupportedAppsT>(value)); return *this;}
115 template<typename SupportedAppsT = Aws::Map<Aws::String, Aws::String>>
116 LibraryTemplateButtonInput& AddSupportedApps(SupportedAppsT&& value) { m_supportedAppsHasBeenSet = true; m_supportedApps.emplace_back(std::forward<SupportedAppsT>(value)); return *this; }
118 private:
119
120 Aws::String m_type;
121 bool m_typeHasBeenSet = false;
122
123 Aws::String m_phoneNumber;
124 bool m_phoneNumberHasBeenSet = false;
125
127 bool m_urlHasBeenSet = false;
128
129 Aws::String m_otpType;
130 bool m_otpTypeHasBeenSet = false;
131
132 bool m_zeroTapTermsAccepted{false};
133 bool m_zeroTapTermsAcceptedHasBeenSet = false;
134
136 bool m_supportedAppsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SocialMessaging
141} // 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