AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
CreateNotifyCodeConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/endusermessaging/EndUserMessagingRequest.h>
11#include <aws/endusermessaging/EndUserMessaging_EXPORTS.h>
12#include <aws/endusermessaging/model/ChannelParameters.h>
13#include <aws/endusermessaging/model/CodeConfigurationParameters.h>
14#include <aws/endusermessaging/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace EndUserMessaging {
20namespace Model {
21
25 public:
26 AWS_ENDUSERMESSAGING_API CreateNotifyCodeConfigurationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateNotifyCodeConfiguration"; }
33
34 AWS_ENDUSERMESSAGING_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetNotifyCodeConfigurationName() const { return m_notifyCodeConfigurationName; }
41 inline bool NotifyCodeConfigurationNameHasBeenSet() const { return m_notifyCodeConfigurationNameHasBeenSet; }
42 template <typename NotifyCodeConfigurationNameT = Aws::String>
43 void SetNotifyCodeConfigurationName(NotifyCodeConfigurationNameT&& value) {
44 m_notifyCodeConfigurationNameHasBeenSet = true;
45 m_notifyCodeConfigurationName = std::forward<NotifyCodeConfigurationNameT>(value);
46 }
47 template <typename NotifyCodeConfigurationNameT = Aws::String>
49 SetNotifyCodeConfigurationName(std::forward<NotifyCodeConfigurationNameT>(value));
50 return *this;
51 }
53
55
61 inline const CodeConfigurationParameters& GetCodeConfigurationParameters() const { return m_codeConfigurationParameters; }
62 inline bool CodeConfigurationParametersHasBeenSet() const { return m_codeConfigurationParametersHasBeenSet; }
63 template <typename CodeConfigurationParametersT = CodeConfigurationParameters>
64 void SetCodeConfigurationParameters(CodeConfigurationParametersT&& value) {
65 m_codeConfigurationParametersHasBeenSet = true;
66 m_codeConfigurationParameters = std::forward<CodeConfigurationParametersT>(value);
67 }
68 template <typename CodeConfigurationParametersT = CodeConfigurationParameters>
70 SetCodeConfigurationParameters(std::forward<CodeConfigurationParametersT>(value));
71 return *this;
72 }
74
76
82 inline const ChannelParameters& GetChannelParameters() const { return m_channelParameters; }
83 inline bool ChannelParametersHasBeenSet() const { return m_channelParametersHasBeenSet; }
84 template <typename ChannelParametersT = ChannelParameters>
85 void SetChannelParameters(ChannelParametersT&& value) {
86 m_channelParametersHasBeenSet = true;
87 m_channelParameters = std::forward<ChannelParametersT>(value);
88 }
89 template <typename ChannelParametersT = ChannelParameters>
91 SetChannelParameters(std::forward<ChannelParametersT>(value));
92 return *this;
93 }
95
97
101 inline bool GetDeletionProtectionEnabled() const { return m_deletionProtectionEnabled; }
102 inline bool DeletionProtectionEnabledHasBeenSet() const { return m_deletionProtectionEnabledHasBeenSet; }
103 inline void SetDeletionProtectionEnabled(bool value) {
104 m_deletionProtectionEnabledHasBeenSet = true;
105 m_deletionProtectionEnabled = value;
106 }
109 return *this;
110 }
112
114
119 inline const Aws::String& GetClientToken() const { return m_clientToken; }
120 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
121 template <typename ClientTokenT = Aws::String>
122 void SetClientToken(ClientTokenT&& value) {
123 m_clientTokenHasBeenSet = true;
124 m_clientToken = std::forward<ClientTokenT>(value);
125 }
126 template <typename ClientTokenT = Aws::String>
128 SetClientToken(std::forward<ClientTokenT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template <typename TagsT = Aws::Vector<Tag>>
141 void SetTags(TagsT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags = std::forward<TagsT>(value);
144 }
145 template <typename TagsT = Aws::Vector<Tag>>
147 SetTags(std::forward<TagsT>(value));
148 return *this;
149 }
150 template <typename TagsT = Tag>
152 m_tagsHasBeenSet = true;
153 m_tags.emplace_back(std::forward<TagsT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_notifyCodeConfigurationName;
159
160 CodeConfigurationParameters m_codeConfigurationParameters;
161
162 ChannelParameters m_channelParameters;
163
164 bool m_deletionProtectionEnabled{false};
165
167
168 Aws::Vector<Tag> m_tags;
169 bool m_notifyCodeConfigurationNameHasBeenSet = false;
170 bool m_codeConfigurationParametersHasBeenSet = false;
171 bool m_channelParametersHasBeenSet = false;
172 bool m_deletionProtectionEnabledHasBeenSet = false;
173 bool m_clientTokenHasBeenSet = true;
174 bool m_tagsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace EndUserMessaging
179} // namespace Aws
CreateNotifyCodeConfigurationRequest & WithClientToken(ClientTokenT &&value)
AWS_ENDUSERMESSAGING_API CreateNotifyCodeConfigurationRequest()=default
CreateNotifyCodeConfigurationRequest & WithCodeConfigurationParameters(CodeConfigurationParametersT &&value)
AWS_ENDUSERMESSAGING_API Aws::String SerializePayload() const override
CreateNotifyCodeConfigurationRequest & WithNotifyCodeConfigurationName(NotifyCodeConfigurationNameT &&value)
CreateNotifyCodeConfigurationRequest & WithChannelParameters(ChannelParametersT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector