1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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/ConversationLogsResponse.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19   class JsonValue;
20   class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace LexModelBuildingService
24 {
25 namespace Model
26 {
27 
28   /**
29    * <p>Provides information about a bot alias.</p><p><h3>See Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/BotAliasMetadata">AWS
31    * API Reference</a></p>
32    */
33   class AWS_LEXMODELBUILDINGSERVICE_API BotAliasMetadata
34   {
35   public:
36     BotAliasMetadata();
37     BotAliasMetadata(Aws::Utils::Json::JsonView jsonValue);
38     BotAliasMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
39     Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42     /**
43      * <p>The name of the bot alias.</p>
44      */
GetName()45     inline const Aws::String& GetName() const{ return m_name; }
46 
47     /**
48      * <p>The name of the bot alias.</p>
49      */
NameHasBeenSet()50     inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
52     /**
53      * <p>The name of the bot alias.</p>
54      */
SetName(const Aws::String & value)55     inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
57     /**
58      * <p>The name of the bot alias.</p>
59      */
SetName(Aws::String && value)60     inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
62     /**
63      * <p>The name of the bot alias.</p>
64      */
SetName(const char * value)65     inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
67     /**
68      * <p>The name of the bot alias.</p>
69      */
WithName(const Aws::String & value)70     inline BotAliasMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
72     /**
73      * <p>The name of the bot alias.</p>
74      */
WithName(Aws::String && value)75     inline BotAliasMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
77     /**
78      * <p>The name of the bot alias.</p>
79      */
WithName(const char * value)80     inline BotAliasMetadata& WithName(const char* value) { SetName(value); return *this;}
81 
82 
83     /**
84      * <p>A description of the bot alias.</p>
85      */
GetDescription()86     inline const Aws::String& GetDescription() const{ return m_description; }
87 
88     /**
89      * <p>A description of the bot alias.</p>
90      */
DescriptionHasBeenSet()91     inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 
93     /**
94      * <p>A description of the bot alias.</p>
95      */
SetDescription(const Aws::String & value)96     inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 
98     /**
99      * <p>A description of the bot alias.</p>
100      */
SetDescription(Aws::String && value)101     inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 
103     /**
104      * <p>A description of the bot alias.</p>
105      */
SetDescription(const char * value)106     inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
107 
108     /**
109      * <p>A description of the bot alias.</p>
110      */
WithDescription(const Aws::String & value)111     inline BotAliasMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 
113     /**
114      * <p>A description of the bot alias.</p>
115      */
WithDescription(Aws::String && value)116     inline BotAliasMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
117 
118     /**
119      * <p>A description of the bot alias.</p>
120      */
WithDescription(const char * value)121     inline BotAliasMetadata& WithDescription(const char* value) { SetDescription(value); return *this;}
122 
123 
124     /**
125      * <p>The version of the Amazon Lex bot to which the alias points.</p>
126      */
GetBotVersion()127     inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
128 
129     /**
130      * <p>The version of the Amazon Lex bot to which the alias points.</p>
131      */
BotVersionHasBeenSet()132     inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
133 
134     /**
135      * <p>The version of the Amazon Lex bot to which the alias points.</p>
136      */
SetBotVersion(const Aws::String & value)137     inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
138 
139     /**
140      * <p>The version of the Amazon Lex bot to which the alias points.</p>
141      */
SetBotVersion(Aws::String && value)142     inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
143 
144     /**
145      * <p>The version of the Amazon Lex bot to which the alias points.</p>
146      */
SetBotVersion(const char * value)147     inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
148 
149     /**
150      * <p>The version of the Amazon Lex bot to which the alias points.</p>
151      */
WithBotVersion(const Aws::String & value)152     inline BotAliasMetadata& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
153 
154     /**
155      * <p>The version of the Amazon Lex bot to which the alias points.</p>
156      */
WithBotVersion(Aws::String && value)157     inline BotAliasMetadata& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
158 
159     /**
160      * <p>The version of the Amazon Lex bot to which the alias points.</p>
161      */
WithBotVersion(const char * value)162     inline BotAliasMetadata& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
163 
164 
165     /**
166      * <p>The name of the bot to which the alias points.</p>
167      */
GetBotName()168     inline const Aws::String& GetBotName() const{ return m_botName; }
169 
170     /**
171      * <p>The name of the bot to which the alias points.</p>
172      */
BotNameHasBeenSet()173     inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
174 
175     /**
176      * <p>The name of the bot to which the alias points.</p>
177      */
SetBotName(const Aws::String & value)178     inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
179 
180     /**
181      * <p>The name of the bot to which the alias points.</p>
182      */
SetBotName(Aws::String && value)183     inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
184 
185     /**
186      * <p>The name of the bot to which the alias points.</p>
187      */
SetBotName(const char * value)188     inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
189 
190     /**
191      * <p>The name of the bot to which the alias points.</p>
192      */
WithBotName(const Aws::String & value)193     inline BotAliasMetadata& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
194 
195     /**
196      * <p>The name of the bot to which the alias points.</p>
197      */
WithBotName(Aws::String && value)198     inline BotAliasMetadata& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
199 
200     /**
201      * <p>The name of the bot to which the alias points.</p>
202      */
WithBotName(const char * value)203     inline BotAliasMetadata& WithBotName(const char* value) { SetBotName(value); return *this;}
204 
205 
206     /**
207      * <p>The date that the bot alias was updated. When you create a resource, the
208      * creation date and last updated date are the same.</p>
209      */
GetLastUpdatedDate()210     inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
211 
212     /**
213      * <p>The date that the bot alias was updated. When you create a resource, the
214      * creation date and last updated date are the same.</p>
215      */
LastUpdatedDateHasBeenSet()216     inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
217 
218     /**
219      * <p>The date that the bot alias was updated. When you create a resource, the
220      * creation date and last updated date are the same.</p>
221      */
SetLastUpdatedDate(const Aws::Utils::DateTime & value)222     inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; }
223 
224     /**
225      * <p>The date that the bot alias was updated. When you create a resource, the
226      * creation date and last updated date are the same.</p>
227      */
SetLastUpdatedDate(Aws::Utils::DateTime && value)228     inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); }
229 
230     /**
231      * <p>The date that the bot alias was updated. When you create a resource, the
232      * creation date and last updated date are the same.</p>
233      */
WithLastUpdatedDate(const Aws::Utils::DateTime & value)234     inline BotAliasMetadata& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
235 
236     /**
237      * <p>The date that the bot alias was updated. When you create a resource, the
238      * creation date and last updated date are the same.</p>
239      */
WithLastUpdatedDate(Aws::Utils::DateTime && value)240     inline BotAliasMetadata& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
241 
242 
243     /**
244      * <p>The date that the bot alias was created.</p>
245      */
GetCreatedDate()246     inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
247 
248     /**
249      * <p>The date that the bot alias was created.</p>
250      */
CreatedDateHasBeenSet()251     inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
252 
253     /**
254      * <p>The date that the bot alias was created.</p>
255      */
SetCreatedDate(const Aws::Utils::DateTime & value)256     inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
257 
258     /**
259      * <p>The date that the bot alias was created.</p>
260      */
SetCreatedDate(Aws::Utils::DateTime && value)261     inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
262 
263     /**
264      * <p>The date that the bot alias was created.</p>
265      */
WithCreatedDate(const Aws::Utils::DateTime & value)266     inline BotAliasMetadata& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
267 
268     /**
269      * <p>The date that the bot alias was created.</p>
270      */
WithCreatedDate(Aws::Utils::DateTime && value)271     inline BotAliasMetadata& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
272 
273 
274     /**
275      * <p>Checksum of the bot alias.</p>
276      */
GetChecksum()277     inline const Aws::String& GetChecksum() const{ return m_checksum; }
278 
279     /**
280      * <p>Checksum of the bot alias.</p>
281      */
ChecksumHasBeenSet()282     inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
283 
284     /**
285      * <p>Checksum of the bot alias.</p>
286      */
SetChecksum(const Aws::String & value)287     inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
288 
289     /**
290      * <p>Checksum of the bot alias.</p>
291      */
SetChecksum(Aws::String && value)292     inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
293 
294     /**
295      * <p>Checksum of the bot alias.</p>
296      */
SetChecksum(const char * value)297     inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
298 
299     /**
300      * <p>Checksum of the bot alias.</p>
301      */
WithChecksum(const Aws::String & value)302     inline BotAliasMetadata& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
303 
304     /**
305      * <p>Checksum of the bot alias.</p>
306      */
WithChecksum(Aws::String && value)307     inline BotAliasMetadata& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
308 
309     /**
310      * <p>Checksum of the bot alias.</p>
311      */
WithChecksum(const char * value)312     inline BotAliasMetadata& WithChecksum(const char* value) { SetChecksum(value); return *this;}
313 
314 
315     /**
316      * <p>Settings that determine how Amazon Lex uses conversation logs for the
317      * alias.</p>
318      */
GetConversationLogs()319     inline const ConversationLogsResponse& GetConversationLogs() const{ return m_conversationLogs; }
320 
321     /**
322      * <p>Settings that determine how Amazon Lex uses conversation logs for the
323      * alias.</p>
324      */
ConversationLogsHasBeenSet()325     inline bool ConversationLogsHasBeenSet() const { return m_conversationLogsHasBeenSet; }
326 
327     /**
328      * <p>Settings that determine how Amazon Lex uses conversation logs for the
329      * alias.</p>
330      */
SetConversationLogs(const ConversationLogsResponse & value)331     inline void SetConversationLogs(const ConversationLogsResponse& value) { m_conversationLogsHasBeenSet = true; m_conversationLogs = value; }
332 
333     /**
334      * <p>Settings that determine how Amazon Lex uses conversation logs for the
335      * alias.</p>
336      */
SetConversationLogs(ConversationLogsResponse && value)337     inline void SetConversationLogs(ConversationLogsResponse&& value) { m_conversationLogsHasBeenSet = true; m_conversationLogs = std::move(value); }
338 
339     /**
340      * <p>Settings that determine how Amazon Lex uses conversation logs for the
341      * alias.</p>
342      */
WithConversationLogs(const ConversationLogsResponse & value)343     inline BotAliasMetadata& WithConversationLogs(const ConversationLogsResponse& value) { SetConversationLogs(value); return *this;}
344 
345     /**
346      * <p>Settings that determine how Amazon Lex uses conversation logs for the
347      * alias.</p>
348      */
WithConversationLogs(ConversationLogsResponse && value)349     inline BotAliasMetadata& WithConversationLogs(ConversationLogsResponse&& value) { SetConversationLogs(std::move(value)); return *this;}
350 
351   private:
352 
353     Aws::String m_name;
354     bool m_nameHasBeenSet;
355 
356     Aws::String m_description;
357     bool m_descriptionHasBeenSet;
358 
359     Aws::String m_botVersion;
360     bool m_botVersionHasBeenSet;
361 
362     Aws::String m_botName;
363     bool m_botNameHasBeenSet;
364 
365     Aws::Utils::DateTime m_lastUpdatedDate;
366     bool m_lastUpdatedDateHasBeenSet;
367 
368     Aws::Utils::DateTime m_createdDate;
369     bool m_createdDateHasBeenSet;
370 
371     Aws::String m_checksum;
372     bool m_checksumHasBeenSet;
373 
374     ConversationLogsResponse m_conversationLogs;
375     bool m_conversationLogsHasBeenSet;
376   };
377 
378 } // namespace Model
379 } // namespace LexModelBuildingService
380 } // namespace Aws
381