AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BotChannelAssociation.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lex-models/model/ChannelType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/lex-models/model/ChannelStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LexModelBuildingService
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation();
40 AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline BotChannelAssociation& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline BotChannelAssociation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline BotChannelAssociation& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline BotChannelAssociation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline BotChannelAssociation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline BotChannelAssociation& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
78 inline const Aws::String& GetBotAlias() const{ return m_botAlias; }
79 inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
80 inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; }
81 inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); }
82 inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); }
83 inline BotChannelAssociation& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;}
84 inline BotChannelAssociation& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;}
85 inline BotChannelAssociation& WithBotAlias(const char* value) { SetBotAlias(value); return *this;}
87
89
94 inline const Aws::String& GetBotName() const{ return m_botName; }
95 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
96 inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
97 inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
98 inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
99 inline BotChannelAssociation& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
100 inline BotChannelAssociation& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
101 inline BotChannelAssociation& WithBotName(const char* value) { SetBotName(value); return *this;}
103
105
109 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
110 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
111 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
112 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
113 inline BotChannelAssociation& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
114 inline BotChannelAssociation& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
116
118
122 inline const ChannelType& GetType() const{ return m_type; }
123 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
124 inline void SetType(const ChannelType& value) { m_typeHasBeenSet = true; m_type = value; }
125 inline void SetType(ChannelType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
126 inline BotChannelAssociation& WithType(const ChannelType& value) { SetType(value); return *this;}
127 inline BotChannelAssociation& WithType(ChannelType&& value) { SetType(std::move(value)); return *this;}
129
131
135 inline const Aws::Map<Aws::String, Aws::String>& GetBotConfiguration() const{ return m_botConfiguration; }
136 inline bool BotConfigurationHasBeenSet() const { return m_botConfigurationHasBeenSet; }
137 inline void SetBotConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_botConfigurationHasBeenSet = true; m_botConfiguration = value; }
138 inline void SetBotConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_botConfigurationHasBeenSet = true; m_botConfiguration = std::move(value); }
141 inline BotChannelAssociation& AddBotConfiguration(const Aws::String& key, const Aws::String& value) { m_botConfigurationHasBeenSet = true; m_botConfiguration.emplace(key, value); return *this; }
142 inline BotChannelAssociation& AddBotConfiguration(Aws::String&& key, const Aws::String& value) { m_botConfigurationHasBeenSet = true; m_botConfiguration.emplace(std::move(key), value); return *this; }
143 inline BotChannelAssociation& AddBotConfiguration(const Aws::String& key, Aws::String&& value) { m_botConfigurationHasBeenSet = true; m_botConfiguration.emplace(key, std::move(value)); return *this; }
144 inline BotChannelAssociation& AddBotConfiguration(Aws::String&& key, Aws::String&& value) { m_botConfigurationHasBeenSet = true; m_botConfiguration.emplace(std::move(key), std::move(value)); return *this; }
145 inline BotChannelAssociation& AddBotConfiguration(const char* key, Aws::String&& value) { m_botConfigurationHasBeenSet = true; m_botConfiguration.emplace(key, std::move(value)); return *this; }
146 inline BotChannelAssociation& AddBotConfiguration(Aws::String&& key, const char* value) { m_botConfigurationHasBeenSet = true; m_botConfiguration.emplace(std::move(key), value); return *this; }
147 inline BotChannelAssociation& AddBotConfiguration(const char* key, const char* value) { m_botConfigurationHasBeenSet = true; m_botConfiguration.emplace(key, value); return *this; }
149
151
159 inline const ChannelStatus& GetStatus() const{ return m_status; }
160 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
161 inline void SetStatus(const ChannelStatus& value) { m_statusHasBeenSet = true; m_status = value; }
162 inline void SetStatus(ChannelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
163 inline BotChannelAssociation& WithStatus(const ChannelStatus& value) { SetStatus(value); return *this;}
164 inline BotChannelAssociation& WithStatus(ChannelStatus&& value) { SetStatus(std::move(value)); return *this;}
166
168
172 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
173 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
174 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
175 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
176 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
177 inline BotChannelAssociation& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
178 inline BotChannelAssociation& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
179 inline BotChannelAssociation& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
181 private:
182
183 Aws::String m_name;
184 bool m_nameHasBeenSet = false;
185
186 Aws::String m_description;
187 bool m_descriptionHasBeenSet = false;
188
189 Aws::String m_botAlias;
190 bool m_botAliasHasBeenSet = false;
191
192 Aws::String m_botName;
193 bool m_botNameHasBeenSet = false;
194
195 Aws::Utils::DateTime m_createdDate;
196 bool m_createdDateHasBeenSet = false;
197
198 ChannelType m_type;
199 bool m_typeHasBeenSet = false;
200
201 Aws::Map<Aws::String, Aws::String> m_botConfiguration;
202 bool m_botConfigurationHasBeenSet = false;
203
204 ChannelStatus m_status;
205 bool m_statusHasBeenSet = false;
206
207 Aws::String m_failureReason;
208 bool m_failureReasonHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace LexModelBuildingService
213} // namespace Aws
BotChannelAssociation & WithDescription(const Aws::String &value)
BotChannelAssociation & WithFailureReason(Aws::String &&value)
void SetBotConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
BotChannelAssociation & WithStatus(ChannelStatus &&value)
BotChannelAssociation & WithCreatedDate(Aws::Utils::DateTime &&value)
BotChannelAssociation & WithDescription(const char *value)
BotChannelAssociation & WithDescription(Aws::String &&value)
BotChannelAssociation & WithStatus(const ChannelStatus &value)
AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation()
BotChannelAssociation & AddBotConfiguration(Aws::String &&key, const char *value)
BotChannelAssociation & WithBotName(const Aws::String &value)
AWS_LEXMODELBUILDINGSERVICE_API BotChannelAssociation(Aws::Utils::Json::JsonView jsonValue)
BotChannelAssociation & WithCreatedDate(const Aws::Utils::DateTime &value)
BotChannelAssociation & WithType(ChannelType &&value)
BotChannelAssociation & WithBotConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
BotChannelAssociation & WithBotName(Aws::String &&value)
BotChannelAssociation & WithName(Aws::String &&value)
BotChannelAssociation & WithBotAlias(Aws::String &&value)
BotChannelAssociation & AddBotConfiguration(const Aws::String &key, Aws::String &&value)
BotChannelAssociation & WithName(const Aws::String &value)
BotChannelAssociation & WithBotConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
BotChannelAssociation & AddBotConfiguration(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetBotConfiguration() const
BotChannelAssociation & WithBotAlias(const char *value)
BotChannelAssociation & AddBotConfiguration(const char *key, Aws::String &&value)
BotChannelAssociation & WithBotAlias(const Aws::String &value)
BotChannelAssociation & AddBotConfiguration(Aws::String &&key, const Aws::String &value)
void SetBotConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
BotChannelAssociation & WithFailureReason(const char *value)
BotChannelAssociation & AddBotConfiguration(const Aws::String &key, const Aws::String &value)
BotChannelAssociation & AddBotConfiguration(Aws::String &&key, Aws::String &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
BotChannelAssociation & WithFailureReason(const Aws::String &value)
BotChannelAssociation & WithType(const ChannelType &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
Aws::Utils::Json::JsonValue JsonValue