AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
BotChannelAssociation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
11#include <aws/lex-models/model/ChannelStatus.h>
12#include <aws/lex-models/model/ChannelType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelBuildingService {
24namespace Model {
25
33 public:
34 AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation() = default;
35 AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 BotChannelAssociation& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetBotAlias() const { return m_botAlias; }
81 inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
82 template <typename BotAliasT = Aws::String>
83 void SetBotAlias(BotAliasT&& value) {
84 m_botAliasHasBeenSet = true;
85 m_botAlias = std::forward<BotAliasT>(value);
86 }
87 template <typename BotAliasT = Aws::String>
88 BotChannelAssociation& WithBotAlias(BotAliasT&& value) {
89 SetBotAlias(std::forward<BotAliasT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetBotName() const { return m_botName; }
101 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
102 template <typename BotNameT = Aws::String>
103 void SetBotName(BotNameT&& value) {
104 m_botNameHasBeenSet = true;
105 m_botName = std::forward<BotNameT>(value);
106 }
107 template <typename BotNameT = Aws::String>
109 SetBotName(std::forward<BotNameT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
120 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
121 template <typename CreatedDateT = Aws::Utils::DateTime>
122 void SetCreatedDate(CreatedDateT&& value) {
123 m_createdDateHasBeenSet = true;
124 m_createdDate = std::forward<CreatedDateT>(value);
125 }
126 template <typename CreatedDateT = Aws::Utils::DateTime>
127 BotChannelAssociation& WithCreatedDate(CreatedDateT&& value) {
128 SetCreatedDate(std::forward<CreatedDateT>(value));
129 return *this;
130 }
132
134
138 inline ChannelType GetType() const { return m_type; }
139 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
140 inline void SetType(ChannelType value) {
141 m_typeHasBeenSet = true;
142 m_type = value;
143 }
145 SetType(value);
146 return *this;
147 }
149
151
155 inline const Aws::Map<Aws::String, Aws::String>& GetBotConfiguration() const { return m_botConfiguration; }
156 inline bool BotConfigurationHasBeenSet() const { return m_botConfigurationHasBeenSet; }
157 template <typename BotConfigurationT = Aws::Map<Aws::String, Aws::String>>
158 void SetBotConfiguration(BotConfigurationT&& value) {
159 m_botConfigurationHasBeenSet = true;
160 m_botConfiguration = std::forward<BotConfigurationT>(value);
161 }
162 template <typename BotConfigurationT = Aws::Map<Aws::String, Aws::String>>
163 BotChannelAssociation& WithBotConfiguration(BotConfigurationT&& value) {
164 SetBotConfiguration(std::forward<BotConfigurationT>(value));
165 return *this;
166 }
167 template <typename BotConfigurationKeyT = Aws::String, typename BotConfigurationValueT = Aws::String>
168 BotChannelAssociation& AddBotConfiguration(BotConfigurationKeyT&& key, BotConfigurationValueT&& value) {
169 m_botConfigurationHasBeenSet = true;
170 m_botConfiguration.emplace(std::forward<BotConfigurationKeyT>(key), std::forward<BotConfigurationValueT>(value));
171 return *this;
172 }
174
176
184 inline ChannelStatus GetStatus() const { return m_status; }
185 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
186 inline void SetStatus(ChannelStatus value) {
187 m_statusHasBeenSet = true;
188 m_status = value;
189 }
191 SetStatus(value);
192 return *this;
193 }
195
197
201 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
202 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
203 template <typename FailureReasonT = Aws::String>
204 void SetFailureReason(FailureReasonT&& value) {
205 m_failureReasonHasBeenSet = true;
206 m_failureReason = std::forward<FailureReasonT>(value);
207 }
208 template <typename FailureReasonT = Aws::String>
209 BotChannelAssociation& WithFailureReason(FailureReasonT&& value) {
210 SetFailureReason(std::forward<FailureReasonT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_name;
216
217 Aws::String m_description;
218
219 Aws::String m_botAlias;
220
221 Aws::String m_botName;
222
223 Aws::Utils::DateTime m_createdDate{};
224
226
227 Aws::Map<Aws::String, Aws::String> m_botConfiguration;
228
230
231 Aws::String m_failureReason;
232 bool m_nameHasBeenSet = false;
233 bool m_descriptionHasBeenSet = false;
234 bool m_botAliasHasBeenSet = false;
235 bool m_botNameHasBeenSet = false;
236 bool m_createdDateHasBeenSet = false;
237 bool m_typeHasBeenSet = false;
238 bool m_botConfigurationHasBeenSet = false;
239 bool m_statusHasBeenSet = false;
240 bool m_failureReasonHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace LexModelBuildingService
245} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
BotChannelAssociation & WithBotConfiguration(BotConfigurationT &&value)
AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation()=default
BotChannelAssociation & WithBotAlias(BotAliasT &&value)
BotChannelAssociation & WithStatus(ChannelStatus value)
AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation(Aws::Utils::Json::JsonView jsonValue)
BotChannelAssociation & WithFailureReason(FailureReasonT &&value)
BotChannelAssociation & WithCreatedDate(CreatedDateT &&value)
BotChannelAssociation & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetBotConfiguration() const
BotChannelAssociation & AddBotConfiguration(BotConfigurationKeyT &&key, BotConfigurationValueT &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() 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
Aws::Utils::Json::JsonValue JsonValue