AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BotImportSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/model/DataPrivacy.h>
10#include <aws/lexv2-models/model/ErrorLogSettings.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LEXMODELSV2_API BotImportSpecification() = default;
39 AWS_LEXMODELSV2_API BotImportSpecification(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetBotName() const { return m_botName; }
49 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
50 template<typename BotNameT = Aws::String>
51 void SetBotName(BotNameT&& value) { m_botNameHasBeenSet = true; m_botName = std::forward<BotNameT>(value); }
52 template<typename BotNameT = Aws::String>
53 BotImportSpecification& WithBotName(BotNameT&& value) { SetBotName(std::forward<BotNameT>(value)); return *this;}
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) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
65 template<typename RoleArnT = Aws::String>
66 BotImportSpecification& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
68
70
71 inline const DataPrivacy& GetDataPrivacy() const { return m_dataPrivacy; }
72 inline bool DataPrivacyHasBeenSet() const { return m_dataPrivacyHasBeenSet; }
73 template<typename DataPrivacyT = DataPrivacy>
74 void SetDataPrivacy(DataPrivacyT&& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = std::forward<DataPrivacyT>(value); }
75 template<typename DataPrivacyT = DataPrivacy>
76 BotImportSpecification& WithDataPrivacy(DataPrivacyT&& value) { SetDataPrivacy(std::forward<DataPrivacyT>(value)); return *this;}
78
80
84 inline const ErrorLogSettings& GetErrorLogSettings() const { return m_errorLogSettings; }
85 inline bool ErrorLogSettingsHasBeenSet() const { return m_errorLogSettingsHasBeenSet; }
86 template<typename ErrorLogSettingsT = ErrorLogSettings>
87 void SetErrorLogSettings(ErrorLogSettingsT&& value) { m_errorLogSettingsHasBeenSet = true; m_errorLogSettings = std::forward<ErrorLogSettingsT>(value); }
88 template<typename ErrorLogSettingsT = ErrorLogSettings>
89 BotImportSpecification& WithErrorLogSettings(ErrorLogSettingsT&& value) { SetErrorLogSettings(std::forward<ErrorLogSettingsT>(value)); return *this;}
91
93
100 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
101 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
102 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
105
107
112 inline const Aws::Map<Aws::String, Aws::String>& GetBotTags() const { return m_botTags; }
113 inline bool BotTagsHasBeenSet() const { return m_botTagsHasBeenSet; }
114 template<typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
115 void SetBotTags(BotTagsT&& value) { m_botTagsHasBeenSet = true; m_botTags = std::forward<BotTagsT>(value); }
116 template<typename BotTagsT = Aws::Map<Aws::String, Aws::String>>
117 BotImportSpecification& WithBotTags(BotTagsT&& value) { SetBotTags(std::forward<BotTagsT>(value)); return *this;}
118 template<typename BotTagsKeyT = Aws::String, typename BotTagsValueT = Aws::String>
119 BotImportSpecification& AddBotTags(BotTagsKeyT&& key, BotTagsValueT&& value) {
120 m_botTagsHasBeenSet = true; m_botTags.emplace(std::forward<BotTagsKeyT>(key), std::forward<BotTagsValueT>(value)); return *this;
121 }
123
125
131 inline const Aws::Map<Aws::String, Aws::String>& GetTestBotAliasTags() const { return m_testBotAliasTags; }
132 inline bool TestBotAliasTagsHasBeenSet() const { return m_testBotAliasTagsHasBeenSet; }
133 template<typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTestBotAliasTags(TestBotAliasTagsT&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags = std::forward<TestBotAliasTagsT>(value); }
135 template<typename TestBotAliasTagsT = Aws::Map<Aws::String, Aws::String>>
136 BotImportSpecification& WithTestBotAliasTags(TestBotAliasTagsT&& value) { SetTestBotAliasTags(std::forward<TestBotAliasTagsT>(value)); return *this;}
137 template<typename TestBotAliasTagsKeyT = Aws::String, typename TestBotAliasTagsValueT = Aws::String>
138 BotImportSpecification& AddTestBotAliasTags(TestBotAliasTagsKeyT&& key, TestBotAliasTagsValueT&& value) {
139 m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(std::forward<TestBotAliasTagsKeyT>(key), std::forward<TestBotAliasTagsValueT>(value)); return *this;
140 }
142 private:
143
144 Aws::String m_botName;
145 bool m_botNameHasBeenSet = false;
146
147 Aws::String m_roleArn;
148 bool m_roleArnHasBeenSet = false;
149
150 DataPrivacy m_dataPrivacy;
151 bool m_dataPrivacyHasBeenSet = false;
152
153 ErrorLogSettings m_errorLogSettings;
154 bool m_errorLogSettingsHasBeenSet = false;
155
156 int m_idleSessionTTLInSeconds{0};
157 bool m_idleSessionTTLInSecondsHasBeenSet = false;
158
160 bool m_botTagsHasBeenSet = false;
161
162 Aws::Map<Aws::String, Aws::String> m_testBotAliasTags;
163 bool m_testBotAliasTagsHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace LexModelsV2
168} // 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