AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
BotImportSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/DataPrivacy.h>
11#include <aws/lexv2-models/model/ErrorLogSettings.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2 {
23namespace Model {
24
32 public:
33 AWS_LEXMODELSV2_API BotImportSpecification() = default;
34 AWS_LEXMODELSV2_API BotImportSpecification(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetBotName() const { return m_botName; }
43 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
44 template <typename BotNameT = Aws::String>
45 void SetBotName(BotNameT&& value) {
46 m_botNameHasBeenSet = true;
47 m_botName = std::forward<BotNameT>(value);
48 }
49 template <typename BotNameT = Aws::String>
51 SetBotName(std::forward<BotNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
62 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
63 template <typename RoleArnT = Aws::String>
64 void SetRoleArn(RoleArnT&& value) {
65 m_roleArnHasBeenSet = true;
66 m_roleArn = std::forward<RoleArnT>(value);
67 }
68 template <typename RoleArnT = Aws::String>
70 SetRoleArn(std::forward<RoleArnT>(value));
71 return *this;
72 }
74
76
77 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
78 inline bool DataPrivacyHasBeenSet() const { return m_dataPrivacyHasBeenSet; }
79 template <typename DataPrivacyT = DataPrivacy>
80 void SetDataPrivacy(DataPrivacyT&& value) {
81 m_dataPrivacyHasBeenSet = true;
82 m_dataPrivacy = std::forward<DataPrivacyT>(value);
83 }
84 template <typename DataPrivacyT = DataPrivacy>
85 BotImportSpecification& WithDataPrivacy(DataPrivacyT&& value) {
86 SetDataPrivacy(std::forward<DataPrivacyT>(value));
87 return *this;
88 }
90
92
96 inline const ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
97 inline bool ErrorLogSettingsHasBeenSet() const { return m_errorLogSettingsHasBeenSet; }
98 template <typename ErrorLogSettingsT = ErrorLogSettings>
99 void SetErrorLogSettings(ErrorLogSettingsT&& value) {
100 m_errorLogSettingsHasBeenSet = true;
101 m_errorLogSettings = std::forward<ErrorLogSettingsT>(value);
102 }
103 template <typename ErrorLogSettingsT = ErrorLogSettings>
104 BotImportSpecification& WithErrorLogSettings(ErrorLogSettingsT&& value) {
105 SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value));
106 return *this;
107 }
109
111
118 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
119 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
120 inline void SetIdleSessionTTLInSeconds(int value) {
121 m_idleSessionTTLInSecondsHasBeenSet = true;
122 m_idleSessionTTLInSeconds = value;
123 }
126 return *this;
127 }
129
131
136 inline const Aws::Map<Aws::String, Aws::String>& GetBotTags() const { return m_botTags; }
137 inline bool BotTagsHasBeenSet() const { return m_botTagsHasBeenSet; }
138 template <typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetBotTags(BotTagsT&& value) {
140 m_botTagsHasBeenSet = true;
141 m_botTags = std::forward<BotTagsT>(value);
142 }
143 template <typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
145 SetBotTags(std::forward<BotTagsT>(value));
146 return *this;
147 }
148 template <typename BotTagsKeyT = Aws::String, typename BotTagsValueT = Aws::String>
149 BotImportSpecification& AddBotTags(BotTagsKeyT&& key, BotTagsValueT&& value) {
150 m_botTagsHasBeenSet = true;
151 m_botTags.emplace(std::forward<BotTagsKeyT>(key), std::forward<BotTagsValueT>(value));
152 return *this;
153 }
155
157
163 inline const Aws::Map<Aws::String, Aws::String>& GetTestBotAliasTags() const { return m_testBotAliasTags; }
164 inline bool TestBotAliasTagsHasBeenSet() const { return m_testBotAliasTagsHasBeenSet; }
165 template <typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
166 void SetTestBotAliasTags(TestBotAliasTagsT&& value) {
167 m_testBotAliasTagsHasBeenSet = true;
168 m_testBotAliasTags = std::forward<TestBotAliasTagsT>(value);
169 }
170 template <typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
171 BotImportSpecification& WithTestBotAliasTags(TestBotAliasTagsT&& value) {
172 SetTestBotAliasTags(std::forward<TestBotAliasTagsT>(value));
173 return *this;
174 }
175 template <typename TestBotAliasTagsKeyT = Aws::String, typename TestBotAliasTagsValueT = Aws::String>
176 BotImportSpecification& AddTestBotAliasTags(TestBotAliasTagsKeyT&& key, TestBotAliasTagsValueT&& value) {
177 m_testBotAliasTagsHasBeenSet = true;
178 m_testBotAliasTags.emplace(std::forward<TestBotAliasTagsKeyT>(key), std::forward<TestBotAliasTagsValueT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_botName;
184
185 Aws::String m_roleArn;
186
187 DataPrivacy m_dataPrivacy;
188
189 ErrorLogSettings m_errorLogSettings;
190
191 int m_idleSessionTTLInSeconds{0};
192
194
195 Aws::Map<Aws::String, Aws::String> m_testBotAliasTags;
196 bool m_botNameHasBeenSet = false;
197 bool m_roleArnHasBeenSet = false;
198 bool m_dataPrivacyHasBeenSet = false;
199 bool m_errorLogSettingsHasBeenSet = false;
200 bool m_idleSessionTTLInSecondsHasBeenSet = false;
201 bool m_botTagsHasBeenSet = false;
202 bool m_testBotAliasTagsHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace LexModelsV2
207} // namespace Aws
BotImportSpecification & WithDataPrivacy(DataPrivacyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetBotTags() const
BotImportSpecification & WithBotName(BotNameT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API BotImportSpecification(Aws::Utils::Json::JsonView jsonValue)
BotImportSpecification & AddBotTags(BotTagsKeyT &&key, BotTagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTestBotAliasTags() const
BotImportSpecification & WithBotTags(BotTagsT &&value)
BotImportSpecification & WithIdleSessionTTLInSeconds(int value)
BotImportSpecification & WithErrorLogSettings(ErrorLogSettingsT &&value)
BotImportSpecification & AddTestBotAliasTags(TestBotAliasTagsKeyT &&key, TestBotAliasTagsValueT &&value)
AWS_LEXMODELSV2_API BotImportSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
BotImportSpecification & WithRoleArn(RoleArnT &&value)
BotImportSpecification & WithTestBotAliasTags(TestBotAliasTagsT &&value)
AWS_LEXMODELSV2_API BotImportSpecification()=default
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