AWS SDK for C++

AWS SDK for C++ Version 1.11.915

Loading...
Searching...
No Matches
SendNotifyCodeVerificationRequest.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/endusermessaging/EndUserMessagingRequest.h>
10#include <aws/endusermessaging/EndUserMessaging_EXPORTS.h>
11#include <aws/endusermessaging/model/ChannelParameters.h>
12#include <aws/endusermessaging/model/CodeConfigurationParameters.h>
13#include <aws/endusermessaging/model/NotifyChannel.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EndUserMessaging {
19namespace Model {
20
24 public:
25 AWS_ENDUSERMESSAGING_API SendNotifyCodeVerificationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SendNotifyCodeVerification"; }
32
33 AWS_ENDUSERMESSAGING_API Aws::String SerializePayload() const override;
34
36
39 inline NotifyChannel GetChannel() const { return m_channel; }
40 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
41 inline void SetChannel(NotifyChannel value) {
42 m_channelHasBeenSet = true;
43 m_channel = value;
44 }
46 SetChannel(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetDestinationIdentity() const { return m_destinationIdentity; }
57 inline bool DestinationIdentityHasBeenSet() const { return m_destinationIdentityHasBeenSet; }
58 template <typename DestinationIdentityT = Aws::String>
59 void SetDestinationIdentity(DestinationIdentityT&& value) {
60 m_destinationIdentityHasBeenSet = true;
61 m_destinationIdentity = std::forward<DestinationIdentityT>(value);
62 }
63 template <typename DestinationIdentityT = Aws::String>
65 SetDestinationIdentity(std::forward<DestinationIdentityT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetOriginationIdentity() const { return m_originationIdentity; }
76 inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; }
77 template <typename OriginationIdentityT = Aws::String>
78 void SetOriginationIdentity(OriginationIdentityT&& value) {
79 m_originationIdentityHasBeenSet = true;
80 m_originationIdentity = std::forward<OriginationIdentityT>(value);
81 }
82 template <typename OriginationIdentityT = Aws::String>
84 SetOriginationIdentity(std::forward<OriginationIdentityT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetNotifyCodeConfiguration() const { return m_notifyCodeConfiguration; }
96 inline bool NotifyCodeConfigurationHasBeenSet() const { return m_notifyCodeConfigurationHasBeenSet; }
97 template <typename NotifyCodeConfigurationT = Aws::String>
98 void SetNotifyCodeConfiguration(NotifyCodeConfigurationT&& value) {
99 m_notifyCodeConfigurationHasBeenSet = true;
100 m_notifyCodeConfiguration = std::forward<NotifyCodeConfigurationT>(value);
101 }
102 template <typename NotifyCodeConfigurationT = Aws::String>
104 SetNotifyCodeConfiguration(std::forward<NotifyCodeConfigurationT>(value));
105 return *this;
106 }
108
110
117 inline const ChannelParameters& GetOverrideChannelParameters() const { return m_overrideChannelParameters; }
118 inline bool OverrideChannelParametersHasBeenSet() const { return m_overrideChannelParametersHasBeenSet; }
119 template <typename OverrideChannelParametersT = ChannelParameters>
120 void SetOverrideChannelParameters(OverrideChannelParametersT&& value) {
121 m_overrideChannelParametersHasBeenSet = true;
122 m_overrideChannelParameters = std::forward<OverrideChannelParametersT>(value);
123 }
124 template <typename OverrideChannelParametersT = ChannelParameters>
126 SetOverrideChannelParameters(std::forward<OverrideChannelParametersT>(value));
127 return *this;
128 }
130
132
139 inline const CodeConfigurationParameters& GetOverrideCodeConfigurationParameters() const { return m_overrideCodeConfigurationParameters; }
140 inline bool OverrideCodeConfigurationParametersHasBeenSet() const { return m_overrideCodeConfigurationParametersHasBeenSet; }
141 template <typename OverrideCodeConfigurationParametersT = CodeConfigurationParameters>
142 void SetOverrideCodeConfigurationParameters(OverrideCodeConfigurationParametersT&& value) {
143 m_overrideCodeConfigurationParametersHasBeenSet = true;
144 m_overrideCodeConfigurationParameters = std::forward<OverrideCodeConfigurationParametersT>(value);
145 }
146 template <typename OverrideCodeConfigurationParametersT = CodeConfigurationParameters>
147 SendNotifyCodeVerificationRequest& WithOverrideCodeConfigurationParameters(OverrideCodeConfigurationParametersT&& value) {
148 SetOverrideCodeConfigurationParameters(std::forward<OverrideCodeConfigurationParametersT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::String& GetConfigurationSetName() const { return m_configurationSetName; }
159 inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; }
160 template <typename ConfigurationSetNameT = Aws::String>
161 void SetConfigurationSetName(ConfigurationSetNameT&& value) {
162 m_configurationSetNameHasBeenSet = true;
163 m_configurationSetName = std::forward<ConfigurationSetNameT>(value);
164 }
165 template <typename ConfigurationSetNameT = Aws::String>
167 SetConfigurationSetName(std::forward<ConfigurationSetNameT>(value));
168 return *this;
169 }
171
173
177 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
178 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
179 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
180 void SetContext(ContextT&& value) {
181 m_contextHasBeenSet = true;
182 m_context = std::forward<ContextT>(value);
183 }
184 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
186 SetContext(std::forward<ContextT>(value));
187 return *this;
188 }
189 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
190 SendNotifyCodeVerificationRequest& AddContext(ContextKeyT&& key, ContextValueT&& value) {
191 m_contextHasBeenSet = true;
192 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::String& GetReferenceId() const { return m_referenceId; }
203 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
204 template <typename ReferenceIdT = Aws::String>
205 void SetReferenceId(ReferenceIdT&& value) {
206 m_referenceIdHasBeenSet = true;
207 m_referenceId = std::forward<ReferenceIdT>(value);
208 }
209 template <typename ReferenceIdT = Aws::String>
211 SetReferenceId(std::forward<ReferenceIdT>(value));
212 return *this;
213 }
215 private:
217
218 Aws::String m_destinationIdentity;
219
220 Aws::String m_originationIdentity;
221
222 Aws::String m_notifyCodeConfiguration;
223
224 ChannelParameters m_overrideChannelParameters;
225
226 CodeConfigurationParameters m_overrideCodeConfigurationParameters;
227
228 Aws::String m_configurationSetName;
229
231
232 Aws::String m_referenceId;
233 bool m_channelHasBeenSet = false;
234 bool m_destinationIdentityHasBeenSet = false;
235 bool m_originationIdentityHasBeenSet = false;
236 bool m_notifyCodeConfigurationHasBeenSet = false;
237 bool m_overrideChannelParametersHasBeenSet = false;
238 bool m_overrideCodeConfigurationParametersHasBeenSet = false;
239 bool m_configurationSetNameHasBeenSet = false;
240 bool m_contextHasBeenSet = false;
241 bool m_referenceIdHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace EndUserMessaging
246} // namespace Aws
SendNotifyCodeVerificationRequest & WithReferenceId(ReferenceIdT &&value)
SendNotifyCodeVerificationRequest & AddContext(ContextKeyT &&key, ContextValueT &&value)
SendNotifyCodeVerificationRequest & WithNotifyCodeConfiguration(NotifyCodeConfigurationT &&value)
SendNotifyCodeVerificationRequest & WithDestinationIdentity(DestinationIdentityT &&value)
SendNotifyCodeVerificationRequest & WithOriginationIdentity(OriginationIdentityT &&value)
SendNotifyCodeVerificationRequest & WithChannel(NotifyChannel value)
void SetOverrideCodeConfigurationParameters(OverrideCodeConfigurationParametersT &&value)
SendNotifyCodeVerificationRequest & WithConfigurationSetName(ConfigurationSetNameT &&value)
SendNotifyCodeVerificationRequest & WithOverrideCodeConfigurationParameters(OverrideCodeConfigurationParametersT &&value)
AWS_ENDUSERMESSAGING_API SendNotifyCodeVerificationRequest()=default
AWS_ENDUSERMESSAGING_API Aws::String SerializePayload() const override
SendNotifyCodeVerificationRequest & WithOverrideChannelParameters(OverrideChannelParametersT &&value)
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