AWS SDK for C++  1.8.71
AWS SDK for C++
PutBotAliasRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace LexModelBuildingService
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "PutBotAlias"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 
61  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 
66  inline PutBotAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 
71  inline PutBotAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 
76  inline PutBotAliasRequest& WithName(const char* value) { SetName(value); return *this;}
77 
78 
82  inline const Aws::String& GetDescription() const{ return m_description; }
83 
87  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 
92  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 
97  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 
102  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 
107  inline PutBotAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 
112  inline PutBotAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 
117  inline PutBotAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
118 
119 
123  inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
124 
128  inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
129 
133  inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
134 
138  inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
139 
143  inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
144 
148  inline PutBotAliasRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
149 
153  inline PutBotAliasRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
154 
158  inline PutBotAliasRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
159 
160 
164  inline const Aws::String& GetBotName() const{ return m_botName; }
165 
169  inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
170 
174  inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
175 
179  inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
180 
184  inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
185 
189  inline PutBotAliasRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
190 
194  inline PutBotAliasRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
195 
199  inline PutBotAliasRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
200 
201 
212  inline const Aws::String& GetChecksum() const{ return m_checksum; }
213 
224  inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
225 
236  inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
237 
248  inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
249 
260  inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
261 
272  inline PutBotAliasRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
273 
284  inline PutBotAliasRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
285 
296  inline PutBotAliasRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
297 
298 
302  inline const ConversationLogsRequest& GetConversationLogs() const{ return m_conversationLogs; }
303 
307  inline bool ConversationLogsHasBeenSet() const { return m_conversationLogsHasBeenSet; }
308 
312  inline void SetConversationLogs(const ConversationLogsRequest& value) { m_conversationLogsHasBeenSet = true; m_conversationLogs = value; }
313 
317  inline void SetConversationLogs(ConversationLogsRequest&& value) { m_conversationLogsHasBeenSet = true; m_conversationLogs = std::move(value); }
318 
322  inline PutBotAliasRequest& WithConversationLogs(const ConversationLogsRequest& value) { SetConversationLogs(value); return *this;}
323 
327  inline PutBotAliasRequest& WithConversationLogs(ConversationLogsRequest&& value) { SetConversationLogs(std::move(value)); return *this;}
328 
329 
336  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
337 
344  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
345 
352  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
353 
360  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
361 
368  inline PutBotAliasRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
369 
376  inline PutBotAliasRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
377 
384  inline PutBotAliasRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
385 
392  inline PutBotAliasRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
393 
394  private:
395 
396  Aws::String m_name;
397  bool m_nameHasBeenSet;
398 
399  Aws::String m_description;
400  bool m_descriptionHasBeenSet;
401 
402  Aws::String m_botVersion;
403  bool m_botVersionHasBeenSet;
404 
405  Aws::String m_botName;
406  bool m_botNameHasBeenSet;
407 
408  Aws::String m_checksum;
409  bool m_checksumHasBeenSet;
410 
411  ConversationLogsRequest m_conversationLogs;
412  bool m_conversationLogsHasBeenSet;
413 
414  Aws::Vector<Tag> m_tags;
415  bool m_tagsHasBeenSet;
416  };
417 
418 } // namespace Model
419 } // namespace LexModelBuildingService
420 } // namespace Aws
PutBotAliasRequest & WithBotName(const char *value)
PutBotAliasRequest & WithDescription(const Aws::String &value)
void SetConversationLogs(ConversationLogsRequest &&value)
PutBotAliasRequest & WithBotVersion(const Aws::String &value)
PutBotAliasRequest & WithChecksum(const char *value)
PutBotAliasRequest & WithConversationLogs(ConversationLogsRequest &&value)
PutBotAliasRequest & WithTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
PutBotAliasRequest & WithName(const Aws::String &value)
PutBotAliasRequest & WithDescription(Aws::String &&value)
PutBotAliasRequest & WithTags(Aws::Vector< Tag > &&value)
PutBotAliasRequest & WithName(const char *value)
PutBotAliasRequest & WithBotVersion(const char *value)
PutBotAliasRequest & WithName(Aws::String &&value)
PutBotAliasRequest & WithChecksum(Aws::String &&value)
PutBotAliasRequest & WithBotVersion(Aws::String &&value)
#define AWS_LEXMODELBUILDINGSERVICE_API
void SetConversationLogs(const ConversationLogsRequest &value)
virtual const char * GetServiceRequestName() const override
const ConversationLogsRequest & GetConversationLogs() const
PutBotAliasRequest & WithDescription(const char *value)
PutBotAliasRequest & WithConversationLogs(const ConversationLogsRequest &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutBotAliasRequest & WithBotName(Aws::String &&value)
PutBotAliasRequest & WithChecksum(const Aws::String &value)
PutBotAliasRequest & WithBotName(const Aws::String &value)