/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { /** *

Provides the bot parameters required for importing a bot.

See * Also:

AWS * API Reference

*/ class BotImportSpecification { public: AWS_LEXMODELSV2_API BotImportSpecification(); AWS_LEXMODELSV2_API BotImportSpecification(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API BotImportSpecification& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name that Amazon Lex should use for the bot.

*/ inline const Aws::String& GetBotName() const{ return m_botName; } /** *

The name that Amazon Lex should use for the bot.

*/ inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; } /** *

The name that Amazon Lex should use for the bot.

*/ inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; } /** *

The name that Amazon Lex should use for the bot.

*/ inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); } /** *

The name that Amazon Lex should use for the bot.

*/ inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); } /** *

The name that Amazon Lex should use for the bot.

*/ inline BotImportSpecification& WithBotName(const Aws::String& value) { SetBotName(value); return *this;} /** *

The name that Amazon Lex should use for the bot.

*/ inline BotImportSpecification& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;} /** *

The name that Amazon Lex should use for the bot.

*/ inline BotImportSpecification& WithBotName(const char* value) { SetBotName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role used to build and run the * bot.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role used to build and run the * bot.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role used to build and run the * bot.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role used to build and run the * bot.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role used to build and run the * bot.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role used to build and run the * bot.

*/ inline BotImportSpecification& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role used to build and run the * bot.

*/ inline BotImportSpecification& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role used to build and run the * bot.

*/ inline BotImportSpecification& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} inline const DataPrivacy& GetDataPrivacy() const{ return m_dataPrivacy; } inline bool DataPrivacyHasBeenSet() const { return m_dataPrivacyHasBeenSet; } inline void SetDataPrivacy(const DataPrivacy& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = value; } inline void SetDataPrivacy(DataPrivacy&& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = std::move(value); } inline BotImportSpecification& WithDataPrivacy(const DataPrivacy& value) { SetDataPrivacy(value); return *this;} inline BotImportSpecification& WithDataPrivacy(DataPrivacy&& value) { SetDataPrivacy(std::move(value)); return *this;} /** *

The time, in seconds, that Amazon Lex should keep information about a user's * conversation with the bot.

A user interaction remains active for the * amount of time specified. If no conversation occurs during this time, the * session expires and Amazon Lex deletes any data provided before the timeout.

*

You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.

*/ inline int GetIdleSessionTTLInSeconds() const{ return m_idleSessionTTLInSeconds; } /** *

The time, in seconds, that Amazon Lex should keep information about a user's * conversation with the bot.

A user interaction remains active for the * amount of time specified. If no conversation occurs during this time, the * session expires and Amazon Lex deletes any data provided before the timeout.

*

You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.

*/ inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; } /** *

The time, in seconds, that Amazon Lex should keep information about a user's * conversation with the bot.

A user interaction remains active for the * amount of time specified. If no conversation occurs during this time, the * session expires and Amazon Lex deletes any data provided before the timeout.

*

You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.

*/ inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; } /** *

The time, in seconds, that Amazon Lex should keep information about a user's * conversation with the bot.

A user interaction remains active for the * amount of time specified. If no conversation occurs during this time, the * session expires and Amazon Lex deletes any data provided before the timeout.

*

You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.

*/ inline BotImportSpecification& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;} /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline const Aws::Map& GetBotTags() const{ return m_botTags; } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline bool BotTagsHasBeenSet() const { return m_botTagsHasBeenSet; } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline void SetBotTags(const Aws::Map& value) { m_botTagsHasBeenSet = true; m_botTags = value; } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline void SetBotTags(Aws::Map&& value) { m_botTagsHasBeenSet = true; m_botTags = std::move(value); } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline BotImportSpecification& WithBotTags(const Aws::Map& value) { SetBotTags(value); return *this;} /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline BotImportSpecification& WithBotTags(Aws::Map&& value) { SetBotTags(std::move(value)); return *this;} /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline BotImportSpecification& AddBotTags(const Aws::String& key, const Aws::String& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(key, value); return *this; } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline BotImportSpecification& AddBotTags(Aws::String&& key, const Aws::String& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline BotImportSpecification& AddBotTags(const Aws::String& key, Aws::String&& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline BotImportSpecification& AddBotTags(Aws::String&& key, Aws::String&& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline BotImportSpecification& AddBotTags(const char* key, Aws::String&& value) { m_botTagsHasBeenSet = true; m_botTags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline BotImportSpecification& AddBotTags(Aws::String&& key, const char* value) { m_botTagsHasBeenSet = true; m_botTags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the bot. You can only add tags when you import a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline BotImportSpecification& AddBotTags(const char* key, const char* value) { m_botTagsHasBeenSet = true; m_botTags.emplace(key, value); return *this; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline const Aws::Map& GetTestBotAliasTags() const{ return m_testBotAliasTags; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline bool TestBotAliasTagsHasBeenSet() const { return m_testBotAliasTagsHasBeenSet; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline void SetTestBotAliasTags(const Aws::Map& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags = value; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline void SetTestBotAliasTags(Aws::Map&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags = std::move(value); } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline BotImportSpecification& WithTestBotAliasTags(const Aws::Map& value) { SetTestBotAliasTags(value); return *this;} /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline BotImportSpecification& WithTestBotAliasTags(Aws::Map&& value) { SetTestBotAliasTags(std::move(value)); return *this;} /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline BotImportSpecification& AddTestBotAliasTags(const Aws::String& key, const Aws::String& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(key, value); return *this; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline BotImportSpecification& AddTestBotAliasTags(Aws::String&& key, const Aws::String& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline BotImportSpecification& AddTestBotAliasTags(const Aws::String& key, Aws::String&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline BotImportSpecification& AddTestBotAliasTags(Aws::String&& key, Aws::String&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline BotImportSpecification& AddTestBotAliasTags(const char* key, Aws::String&& value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline BotImportSpecification& AddTestBotAliasTags(Aws::String&& key, const char* value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the test alias for a bot. You can only add tags when * you import a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline BotImportSpecification& AddTestBotAliasTags(const char* key, const char* value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(key, value); return *this; } private: Aws::String m_botName; bool m_botNameHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; DataPrivacy m_dataPrivacy; bool m_dataPrivacyHasBeenSet = false; int m_idleSessionTTLInSeconds; bool m_idleSessionTTLInSecondsHasBeenSet = false; Aws::Map m_botTags; bool m_botTagsHasBeenSet = false; Aws::Map m_testBotAliasTags; bool m_testBotAliasTagsHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws