AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBotRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/model/DataPrivacy.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/lexv2-models/model/BotType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/lexv2-models/model/BotMember.h>
15#include <utility>
16
17namespace Aws
18{
19namespace LexModelsV2
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_LEXMODELSV2_API CreateBotRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateBot"; }
36
37 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetBotName() const{ return m_botName; }
46 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
47 inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
48 inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
49 inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
50 inline CreateBotRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
51 inline CreateBotRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
52 inline CreateBotRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
54
56
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline CreateBotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline CreateBotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline CreateBotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
75 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
76 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
77 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
78 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
79 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
80 inline CreateBotRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
81 inline CreateBotRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
82 inline CreateBotRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
84
86
90 inline const DataPrivacy& GetDataPrivacy() const{ return m_dataPrivacy; }
91 inline bool DataPrivacyHasBeenSet() const { return m_dataPrivacyHasBeenSet; }
92 inline void SetDataPrivacy(const DataPrivacy& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = value; }
93 inline void SetDataPrivacy(DataPrivacy&& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = std::move(value); }
94 inline CreateBotRequest& WithDataPrivacy(const DataPrivacy& value) { SetDataPrivacy(value); return *this;}
95 inline CreateBotRequest& WithDataPrivacy(DataPrivacy&& value) { SetDataPrivacy(std::move(value)); return *this;}
97
99
106 inline int GetIdleSessionTTLInSeconds() const{ return m_idleSessionTTLInSeconds; }
107 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
108 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
111
113
118 inline const Aws::Map<Aws::String, Aws::String>& GetBotTags() const{ return m_botTags; }
119 inline bool BotTagsHasBeenSet() const { return m_botTagsHasBeenSet; }
120 inline void SetBotTags(const Aws::Map<Aws::String, Aws::String>& value) { m_botTagsHasBeenSet = true; m_botTags = value; }
121 inline void SetBotTags(Aws::Map<Aws::String, Aws::String>&& value) { m_botTagsHasBeenSet = true; m_botTags = std::move(value); }
122 inline CreateBotRequest& WithBotTags(const Aws::Map<Aws::String, Aws::String>& value) { SetBotTags(value); return *this;}
123 inline CreateBotRequest& WithBotTags(Aws::Map<Aws::String, Aws::String>&& value) { SetBotTags(std::move(value)); return *this;}
124 inline CreateBotRequest& AddBotTags(const Aws::String& key, const Aws::String& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(key, value); return *this; }
125 inline CreateBotRequest& AddBotTags(Aws::String&& key, const Aws::String& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(std::move(key), value); return *this; }
126 inline CreateBotRequest& AddBotTags(const Aws::String& key, Aws::String&& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(key, std::move(value)); return *this; }
127 inline CreateBotRequest& AddBotTags(Aws::String&& key, Aws::String&& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(std::move(key), std::move(value)); return *this; }
128 inline CreateBotRequest& AddBotTags(const char* key, Aws::String&& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(key, std::move(value)); return *this; }
129 inline CreateBotRequest& AddBotTags(Aws::String&& key, const char* value) { m_botTagsHasBeenSet = true; m_botTags.emplace(std::move(key), value); return *this; }
130 inline CreateBotRequest& AddBotTags(const char* key, const char* value) { m_botTagsHasBeenSet = true; m_botTags.emplace(key, value); return *this; }
132
134
140 inline const Aws::Map<Aws::String, Aws::String>& GetTestBotAliasTags() const{ return m_testBotAliasTags; }
141 inline bool TestBotAliasTagsHasBeenSet() const { return m_testBotAliasTagsHasBeenSet; }
142 inline void SetTestBotAliasTags(const Aws::Map<Aws::String, Aws::String>& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags = value; }
143 inline void SetTestBotAliasTags(Aws::Map<Aws::String, Aws::String>&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags = std::move(value); }
146 inline CreateBotRequest& AddTestBotAliasTags(const Aws::String& key, const Aws::String& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(key, value); return *this; }
147 inline CreateBotRequest& AddTestBotAliasTags(Aws::String&& key, const Aws::String& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(std::move(key), value); return *this; }
148 inline CreateBotRequest& AddTestBotAliasTags(const Aws::String& key, Aws::String&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(key, std::move(value)); return *this; }
149 inline CreateBotRequest& AddTestBotAliasTags(Aws::String&& key, Aws::String&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(std::move(key), std::move(value)); return *this; }
150 inline CreateBotRequest& AddTestBotAliasTags(const char* key, Aws::String&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(key, std::move(value)); return *this; }
151 inline CreateBotRequest& AddTestBotAliasTags(Aws::String&& key, const char* value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(std::move(key), value); return *this; }
152 inline CreateBotRequest& AddTestBotAliasTags(const char* key, const char* value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(key, value); return *this; }
154
156
159 inline const BotType& GetBotType() const{ return m_botType; }
160 inline bool BotTypeHasBeenSet() const { return m_botTypeHasBeenSet; }
161 inline void SetBotType(const BotType& value) { m_botTypeHasBeenSet = true; m_botType = value; }
162 inline void SetBotType(BotType&& value) { m_botTypeHasBeenSet = true; m_botType = std::move(value); }
163 inline CreateBotRequest& WithBotType(const BotType& value) { SetBotType(value); return *this;}
164 inline CreateBotRequest& WithBotType(BotType&& value) { SetBotType(std::move(value)); return *this;}
166
168
171 inline const Aws::Vector<BotMember>& GetBotMembers() const{ return m_botMembers; }
172 inline bool BotMembersHasBeenSet() const { return m_botMembersHasBeenSet; }
173 inline void SetBotMembers(const Aws::Vector<BotMember>& value) { m_botMembersHasBeenSet = true; m_botMembers = value; }
174 inline void SetBotMembers(Aws::Vector<BotMember>&& value) { m_botMembersHasBeenSet = true; m_botMembers = std::move(value); }
175 inline CreateBotRequest& WithBotMembers(const Aws::Vector<BotMember>& value) { SetBotMembers(value); return *this;}
176 inline CreateBotRequest& WithBotMembers(Aws::Vector<BotMember>&& value) { SetBotMembers(std::move(value)); return *this;}
177 inline CreateBotRequest& AddBotMembers(const BotMember& value) { m_botMembersHasBeenSet = true; m_botMembers.push_back(value); return *this; }
178 inline CreateBotRequest& AddBotMembers(BotMember&& value) { m_botMembersHasBeenSet = true; m_botMembers.push_back(std::move(value)); return *this; }
180 private:
181
182 Aws::String m_botName;
183 bool m_botNameHasBeenSet = false;
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
188 Aws::String m_roleArn;
189 bool m_roleArnHasBeenSet = false;
190
191 DataPrivacy m_dataPrivacy;
192 bool m_dataPrivacyHasBeenSet = false;
193
194 int m_idleSessionTTLInSeconds;
195 bool m_idleSessionTTLInSecondsHasBeenSet = false;
196
198 bool m_botTagsHasBeenSet = false;
199
200 Aws::Map<Aws::String, Aws::String> m_testBotAliasTags;
201 bool m_testBotAliasTagsHasBeenSet = false;
202
203 BotType m_botType;
204 bool m_botTypeHasBeenSet = false;
205
206 Aws::Vector<BotMember> m_botMembers;
207 bool m_botMembersHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace LexModelsV2
212} // namespace Aws
CreateBotRequest & WithDescription(const char *value)
CreateBotRequest & WithBotMembers(const Aws::Vector< BotMember > &value)
void SetRoleArn(const Aws::String &value)
void SetBotMembers(Aws::Vector< BotMember > &&value)
CreateBotRequest & AddTestBotAliasTags(const char *key, Aws::String &&value)
CreateBotRequest & WithBotTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateBotRequest & AddBotTags(const char *key, Aws::String &&value)
CreateBotRequest & AddBotTags(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTestBotAliasTags() const
CreateBotRequest & AddBotTags(Aws::String &&key, const Aws::String &value)
CreateBotRequest & AddTestBotAliasTags(Aws::String &&key, const char *value)
CreateBotRequest & AddTestBotAliasTags(const char *key, const char *value)
void SetBotName(const Aws::String &value)
void SetTestBotAliasTags(const Aws::Map< Aws::String, Aws::String > &value)
virtual const char * GetServiceRequestName() const override
void SetDescription(const Aws::String &value)
CreateBotRequest & AddTestBotAliasTags(Aws::String &&key, const Aws::String &value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
void SetDataPrivacy(const DataPrivacy &value)
CreateBotRequest & WithRoleArn(Aws::String &&value)
void SetBotTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetDescription() const
CreateBotRequest & WithBotMembers(Aws::Vector< BotMember > &&value)
CreateBotRequest & WithTestBotAliasTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateBotRequest & WithRoleArn(const Aws::String &value)
CreateBotRequest & WithBotType(BotType &&value)
CreateBotRequest & AddTestBotAliasTags(const Aws::String &key, Aws::String &&value)
CreateBotRequest & WithDescription(const Aws::String &value)
CreateBotRequest & WithBotTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateBotRequest & AddBotMembers(const BotMember &value)
CreateBotRequest & WithBotName(const Aws::String &value)
void SetTestBotAliasTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetBotTags() const
CreateBotRequest & AddBotTags(Aws::String &&key, Aws::String &&value)
CreateBotRequest & WithBotName(Aws::String &&value)
CreateBotRequest & AddTestBotAliasTags(const Aws::String &key, const Aws::String &value)
CreateBotRequest & WithBotType(const BotType &value)
CreateBotRequest & AddBotMembers(BotMember &&value)
CreateBotRequest & WithBotName(const char *value)
const DataPrivacy & GetDataPrivacy() const
CreateBotRequest & AddTestBotAliasTags(Aws::String &&key, Aws::String &&value)
CreateBotRequest & WithDataPrivacy(DataPrivacy &&value)
CreateBotRequest & AddBotTags(Aws::String &&key, const char *value)
CreateBotRequest & WithRoleArn(const char *value)
const Aws::Vector< BotMember > & GetBotMembers() const
CreateBotRequest & WithTestBotAliasTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateBotRequest & AddBotTags(const char *key, const char *value)
void SetBotTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateBotRequest & WithDataPrivacy(const DataPrivacy &value)
void SetBotMembers(const Aws::Vector< BotMember > &value)
CreateBotRequest & AddBotTags(const Aws::String &key, const Aws::String &value)
CreateBotRequest & WithIdleSessionTTLInSeconds(int value)
CreateBotRequest & WithDescription(Aws::String &&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
std::vector< T, Aws::Allocator< T > > Vector