AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutBotAliasRequest.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/lex-models/LexModelBuildingServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lex-models/model/ConversationLogsRequest.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lex-models/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LexModelBuildingService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LEXMODELBUILDINGSERVICE_API PutBotAliasRequest() = default;
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_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 PutBotAliasRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 PutBotAliasRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
66 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
67 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
68 template<typename BotVersionT = Aws::String>
69 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
70 template<typename BotVersionT = Aws::String>
71 PutBotAliasRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
73
75
78 inline const Aws::String& GetBotName() const { return m_botName; }
79 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
80 template<typename BotNameT = Aws::String>
81 void SetBotName(BotNameT&& value) { m_botNameHasBeenSet = true; m_botName = std::forward<BotNameT>(value); }
82 template<typename BotNameT = Aws::String>
83 PutBotAliasRequest& WithBotName(BotNameT&& value) { SetBotName(std::forward<BotNameT>(value)); return *this;}
85
87
97 inline const Aws::String& GetChecksum() const { return m_checksum; }
98 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
99 template<typename ChecksumT = Aws::String>
100 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
101 template<typename ChecksumT = Aws::String>
102 PutBotAliasRequest& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
104
106
109 inline const ConversationLogsRequest& GetConversationLogs() const { return m_conversationLogs; }
110 inline bool ConversationLogsHasBeenSet() const { return m_conversationLogsHasBeenSet; }
111 template<typename ConversationLogsT = ConversationLogsRequest>
112 void SetConversationLogs(ConversationLogsT&& value) { m_conversationLogsHasBeenSet = true; m_conversationLogs = std::forward<ConversationLogsT>(value); }
113 template<typename ConversationLogsT = ConversationLogsRequest>
114 PutBotAliasRequest& WithConversationLogs(ConversationLogsT&& value) { SetConversationLogs(std::forward<ConversationLogsT>(value)); return *this;}
116
118
124 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template<typename TagsT = Aws::Vector<Tag>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
128 template<typename TagsT = Aws::Vector<Tag>>
129 PutBotAliasRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
130 template<typename TagsT = Tag>
131 PutBotAliasRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
133 private:
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
141 Aws::String m_botVersion;
142 bool m_botVersionHasBeenSet = false;
143
144 Aws::String m_botName;
145 bool m_botNameHasBeenSet = false;
146
147 Aws::String m_checksum;
148 bool m_checksumHasBeenSet = false;
149
150 ConversationLogsRequest m_conversationLogs;
151 bool m_conversationLogsHasBeenSet = false;
152
153 Aws::Vector<Tag> m_tags;
154 bool m_tagsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace LexModelBuildingService
159} // namespace Aws
PutBotAliasRequest & WithChecksum(ChecksumT &&value)
PutBotAliasRequest & WithBotName(BotNameT &&value)
PutBotAliasRequest & WithDescription(DescriptionT &&value)
PutBotAliasRequest & WithBotVersion(BotVersionT &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override
AWS_LEXMODELBUILDINGSERVICE_API PutBotAliasRequest()=default
const ConversationLogsRequest & GetConversationLogs() const
virtual const char * GetServiceRequestName() const override
PutBotAliasRequest & WithConversationLogs(ConversationLogsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector