AWS SDK for C++

AWS SDK for C++ Version 1.11.908

Loading...
Searching...
No Matches
NotifyCodeConfiguration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/endusermessaging/EndUserMessaging_EXPORTS.h>
10#include <aws/endusermessaging/model/ChannelParameters.h>
11#include <aws/endusermessaging/model/CodeConfigurationParameters.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EndUserMessaging {
23namespace Model {
24
32 public:
33 AWS_ENDUSERMESSAGING_API NotifyCodeConfiguration() = default;
34 AWS_ENDUSERMESSAGING_API NotifyCodeConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ENDUSERMESSAGING_API NotifyCodeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetNotifyCodeConfigurationId() const { return m_notifyCodeConfigurationId; }
43 inline bool NotifyCodeConfigurationIdHasBeenSet() const { return m_notifyCodeConfigurationIdHasBeenSet; }
44 template <typename NotifyCodeConfigurationIdT = Aws::String>
45 void SetNotifyCodeConfigurationId(NotifyCodeConfigurationIdT&& value) {
46 m_notifyCodeConfigurationIdHasBeenSet = true;
47 m_notifyCodeConfigurationId = std::forward<NotifyCodeConfigurationIdT>(value);
48 }
49 template <typename NotifyCodeConfigurationIdT = Aws::String>
50 NotifyCodeConfiguration& WithNotifyCodeConfigurationId(NotifyCodeConfigurationIdT&& value) {
51 SetNotifyCodeConfigurationId(std::forward<NotifyCodeConfigurationIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetNotifyCodeConfigurationArn() const { return m_notifyCodeConfigurationArn; }
61 inline bool NotifyCodeConfigurationArnHasBeenSet() const { return m_notifyCodeConfigurationArnHasBeenSet; }
62 template <typename NotifyCodeConfigurationArnT = Aws::String>
63 void SetNotifyCodeConfigurationArn(NotifyCodeConfigurationArnT&& value) {
64 m_notifyCodeConfigurationArnHasBeenSet = true;
65 m_notifyCodeConfigurationArn = std::forward<NotifyCodeConfigurationArnT>(value);
66 }
67 template <typename NotifyCodeConfigurationArnT = Aws::String>
68 NotifyCodeConfiguration& WithNotifyCodeConfigurationArn(NotifyCodeConfigurationArnT&& value) {
69 SetNotifyCodeConfigurationArn(std::forward<NotifyCodeConfigurationArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetNotifyCodeConfigurationName() const { return m_notifyCodeConfigurationName; }
79 inline bool NotifyCodeConfigurationNameHasBeenSet() const { return m_notifyCodeConfigurationNameHasBeenSet; }
80 template <typename NotifyCodeConfigurationNameT = Aws::String>
81 void SetNotifyCodeConfigurationName(NotifyCodeConfigurationNameT&& value) {
82 m_notifyCodeConfigurationNameHasBeenSet = true;
83 m_notifyCodeConfigurationName = std::forward<NotifyCodeConfigurationNameT>(value);
84 }
85 template <typename NotifyCodeConfigurationNameT = Aws::String>
86 NotifyCodeConfiguration& WithNotifyCodeConfigurationName(NotifyCodeConfigurationNameT&& value) {
87 SetNotifyCodeConfigurationName(std::forward<NotifyCodeConfigurationNameT>(value));
88 return *this;
89 }
91
93
97 inline const CodeConfigurationParameters& GetCodeConfigurationParameters() const { return m_codeConfigurationParameters; }
98 inline bool CodeConfigurationParametersHasBeenSet() const { return m_codeConfigurationParametersHasBeenSet; }
99 template <typename CodeConfigurationParametersT = CodeConfigurationParameters>
100 void SetCodeConfigurationParameters(CodeConfigurationParametersT&& value) {
101 m_codeConfigurationParametersHasBeenSet = true;
102 m_codeConfigurationParameters = std::forward<CodeConfigurationParametersT>(value);
103 }
104 template <typename CodeConfigurationParametersT = CodeConfigurationParameters>
105 NotifyCodeConfiguration& WithCodeConfigurationParameters(CodeConfigurationParametersT&& value) {
106 SetCodeConfigurationParameters(std::forward<CodeConfigurationParametersT>(value));
107 return *this;
108 }
110
112
117 inline const ChannelParameters& GetChannelParameters() const { return m_channelParameters; }
118 inline bool ChannelParametersHasBeenSet() const { return m_channelParametersHasBeenSet; }
119 template <typename ChannelParametersT = ChannelParameters>
120 void SetChannelParameters(ChannelParametersT&& value) {
121 m_channelParametersHasBeenSet = true;
122 m_channelParameters = std::forward<ChannelParametersT>(value);
123 }
124 template <typename ChannelParametersT = ChannelParameters>
125 NotifyCodeConfiguration& WithChannelParameters(ChannelParametersT&& value) {
126 SetChannelParameters(std::forward<ChannelParametersT>(value));
127 return *this;
128 }
130
132
136 inline bool GetDeletionProtectionEnabled() const { return m_deletionProtectionEnabled; }
137 inline bool DeletionProtectionEnabledHasBeenSet() const { return m_deletionProtectionEnabledHasBeenSet; }
138 inline void SetDeletionProtectionEnabled(bool value) {
139 m_deletionProtectionEnabledHasBeenSet = true;
140 m_deletionProtectionEnabled = value;
141 }
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
153 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
154 template <typename CreatedAtT = Aws::Utils::DateTime>
155 void SetCreatedAt(CreatedAtT&& value) {
156 m_createdAtHasBeenSet = true;
157 m_createdAt = std::forward<CreatedAtT>(value);
158 }
159 template <typename CreatedAtT = Aws::Utils::DateTime>
161 SetCreatedAt(std::forward<CreatedAtT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
171 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
172 template <typename UpdatedAtT = Aws::Utils::DateTime>
173 void SetUpdatedAt(UpdatedAtT&& value) {
174 m_updatedAtHasBeenSet = true;
175 m_updatedAt = std::forward<UpdatedAtT>(value);
176 }
177 template <typename UpdatedAtT = Aws::Utils::DateTime>
179 SetUpdatedAt(std::forward<UpdatedAtT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_notifyCodeConfigurationId;
185
186 Aws::String m_notifyCodeConfigurationArn;
187
188 Aws::String m_notifyCodeConfigurationName;
189
190 CodeConfigurationParameters m_codeConfigurationParameters;
191
192 ChannelParameters m_channelParameters;
193
194 bool m_deletionProtectionEnabled{false};
195
196 Aws::Utils::DateTime m_createdAt{};
197
198 Aws::Utils::DateTime m_updatedAt{};
199 bool m_notifyCodeConfigurationIdHasBeenSet = false;
200 bool m_notifyCodeConfigurationArnHasBeenSet = false;
201 bool m_notifyCodeConfigurationNameHasBeenSet = false;
202 bool m_codeConfigurationParametersHasBeenSet = false;
203 bool m_channelParametersHasBeenSet = false;
204 bool m_deletionProtectionEnabledHasBeenSet = false;
205 bool m_createdAtHasBeenSet = false;
206 bool m_updatedAtHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace EndUserMessaging
211} // namespace Aws
NotifyCodeConfiguration & WithNotifyCodeConfigurationArn(NotifyCodeConfigurationArnT &&value)
AWS_ENDUSERMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNotifyCodeConfigurationArn(NotifyCodeConfigurationArnT &&value)
void SetNotifyCodeConfigurationId(NotifyCodeConfigurationIdT &&value)
NotifyCodeConfiguration & WithDeletionProtectionEnabled(bool value)
NotifyCodeConfiguration & WithNotifyCodeConfigurationName(NotifyCodeConfigurationNameT &&value)
void SetCodeConfigurationParameters(CodeConfigurationParametersT &&value)
AWS_ENDUSERMESSAGING_API NotifyCodeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNotifyCodeConfigurationName(NotifyCodeConfigurationNameT &&value)
AWS_ENDUSERMESSAGING_API NotifyCodeConfiguration()=default
const CodeConfigurationParameters & GetCodeConfigurationParameters() const
AWS_ENDUSERMESSAGING_API NotifyCodeConfiguration(Aws::Utils::Json::JsonView jsonValue)
NotifyCodeConfiguration & WithCodeConfigurationParameters(CodeConfigurationParametersT &&value)
NotifyCodeConfiguration & WithChannelParameters(ChannelParametersT &&value)
NotifyCodeConfiguration & WithCreatedAt(CreatedAtT &&value)
NotifyCodeConfiguration & WithUpdatedAt(UpdatedAtT &&value)
NotifyCodeConfiguration & WithNotifyCodeConfigurationId(NotifyCodeConfigurationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue