AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 BotChannelAssociation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 BotChannelAssociation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
74 inline const Aws::String& GetBotAlias() const { return m_botAlias; }
75 inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
76 template<typename BotAliasT = Aws::String>
77 void SetBotAlias(BotAliasT&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::forward<BotAliasT>(value); }
78 template<typename BotAliasT = Aws::String>
79 BotChannelAssociation& WithBotAlias(BotAliasT&& value) { SetBotAlias(std::forward<BotAliasT>(value)); return *this;}
81
83
88 inline const Aws::String& GetBotName() const { return m_botName; }
89 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
90 template<typename BotNameT = Aws::String>
91 void SetBotName(BotNameT&& value) { m_botNameHasBeenSet = true; m_botName = std::forward<BotNameT>(value); }
92 template<typename BotNameT = Aws::String>
93 BotChannelAssociation& WithBotName(BotNameT&& value) { SetBotName(std::forward<BotNameT>(value)); return *this;}
95
97
101 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
102 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
103 template<typename CreatedDateT = Aws::Utils::DateTime>
104 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
105 template<typename CreatedDateT = Aws::Utils::DateTime>
106 BotChannelAssociation& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
108
110
114 inline ChannelType GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(ChannelType value) { m_typeHasBeenSet = true; m_type = value; }
117 inline BotChannelAssociation& WithType(ChannelType value) { SetType(value); return *this;}
119
121
125 inline const Aws::Map<Aws::String, Aws::String>& GetBotConfiguration() const { return m_botConfiguration; }
126 inline bool BotConfigurationHasBeenSet() const { return m_botConfigurationHasBeenSet; }
127 template<typename BotConfigurationT = Aws::Map<Aws::String, Aws::String>>
128 void SetBotConfiguration(BotConfigurationT&& value) { m_botConfigurationHasBeenSet = true; m_botConfiguration = std::forward<BotConfigurationT>(value); }
129 template<typename BotConfigurationT = Aws::Map<Aws::String, Aws::String>>
130 BotChannelAssociation& WithBotConfiguration(BotConfigurationT&& value) { SetBotConfiguration(std::forward<BotConfigurationT>(value)); return *this;}
131 template<typename BotConfigurationKeyT = Aws::String, typename BotConfigurationValueT = Aws::String>
132 BotChannelAssociation& AddBotConfiguration(BotConfigurationKeyT&& key, BotConfigurationValueT&& value) {
133 m_botConfigurationHasBeenSet = true; m_botConfiguration.emplace(std::forward<BotConfigurationKeyT>(key), std::forward<BotConfigurationValueT>(value)); return *this;
134 }
136
138
146 inline ChannelStatus GetStatus() const { return m_status; }
147 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
148 inline void SetStatus(ChannelStatus value) { m_statusHasBeenSet = true; m_status = value; }
149 inline BotChannelAssociation& WithStatus(ChannelStatus value) { SetStatus(value); return *this;}
151
153
157 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
158 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
159 template<typename FailureReasonT = Aws::String>
160 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
161 template<typename FailureReasonT = Aws::String>
162 BotChannelAssociation& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
164 private:
165
166 Aws::String m_name;
167 bool m_nameHasBeenSet = false;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
172 Aws::String m_botAlias;
173 bool m_botAliasHasBeenSet = false;
174
175 Aws::String m_botName;
176 bool m_botNameHasBeenSet = false;
177
178 Aws::Utils::DateTime m_createdDate{};
179 bool m_createdDateHasBeenSet = false;
180
182 bool m_typeHasBeenSet = false;
183
184 Aws::Map<Aws::String, Aws::String> m_botConfiguration;
185 bool m_botConfigurationHasBeenSet = false;
186
188 bool m_statusHasBeenSet = false;
189
190 Aws::String m_failureReason;
191 bool m_failureReasonHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace LexModelBuildingService
196} // 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