/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace LexModelsV2 { namespace Model { /** */ class CreateBotRequest : public LexModelsV2Request { public: AWS_LEXMODELSV2_API CreateBotRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateBot"; } AWS_LEXMODELSV2_API Aws::String SerializePayload() const override; /** *

The name of the bot. The bot name must be unique in the account that creates * the bot.

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

The name of the bot. The bot name must be unique in the account that creates * the bot.

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

The name of the bot. The bot name must be unique in the account that creates * the bot.

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

The name of the bot. The bot name must be unique in the account that creates * the bot.

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

The name of the bot. The bot name must be unique in the account that creates * the bot.

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

The name of the bot. The bot name must be unique in the account that creates * the bot.

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

The name of the bot. The bot name must be unique in the account that creates * the bot.

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

The name of the bot. The bot name must be unique in the account that creates * the bot.

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

A description of the bot. It appears in lists to help you identify a * particular bot.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the bot. It appears in lists to help you identify a * particular bot.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the bot. It appears in lists to help you identify a * particular bot.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the bot. It appears in lists to help you identify a * particular bot.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the bot. It appears in lists to help you identify a * particular bot.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the bot. It appears in lists to help you identify a * particular bot.

*/ inline CreateBotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the bot. It appears in lists to help you identify a * particular bot.

*/ inline CreateBotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the bot. It appears in lists to help you identify a * particular bot.

*/ inline CreateBotRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The Amazon Resource Name (ARN) of an IAM role that has permission to access * the bot.

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

The Amazon Resource Name (ARN) of an IAM role that has permission to access * the bot.

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

The Amazon Resource Name (ARN) of an IAM role that has permission to access * the bot.

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

The Amazon Resource Name (ARN) of an IAM role that has permission to access * the bot.

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

The Amazon Resource Name (ARN) of an IAM role that has permission to access * the bot.

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

The Amazon Resource Name (ARN) of an IAM role that has permission to access * the bot.

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

The Amazon Resource Name (ARN) of an IAM role that has permission to access * the bot.

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

The Amazon Resource Name (ARN) of an IAM role that has permission to access * the bot.

*/ inline CreateBotRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

Provides information on additional privacy protections Amazon Lex should use * with the bot's data.

*/ inline const DataPrivacy& GetDataPrivacy() const{ return m_dataPrivacy; } /** *

Provides information on additional privacy protections Amazon Lex should use * with the bot's data.

*/ inline bool DataPrivacyHasBeenSet() const { return m_dataPrivacyHasBeenSet; } /** *

Provides information on additional privacy protections Amazon Lex should use * with the bot's data.

*/ inline void SetDataPrivacy(const DataPrivacy& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = value; } /** *

Provides information on additional privacy protections Amazon Lex should use * with the bot's data.

*/ inline void SetDataPrivacy(DataPrivacy&& value) { m_dataPrivacyHasBeenSet = true; m_dataPrivacy = std::move(value); } /** *

Provides information on additional privacy protections Amazon Lex should use * with the bot's data.

*/ inline CreateBotRequest& WithDataPrivacy(const DataPrivacy& value) { SetDataPrivacy(value); return *this;} /** *

Provides information on additional privacy protections Amazon Lex should use * with the bot's data.

*/ inline CreateBotRequest& 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 CreateBotRequest& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;} /** *

A list of tags to add to the bot. You can only add tags when you create 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 create 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 create 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 create 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 create a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline CreateBotRequest& 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 create a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline CreateBotRequest& 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 create a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline CreateBotRequest& 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 create a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline CreateBotRequest& 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 create a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline CreateBotRequest& 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 create a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline CreateBotRequest& 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 create a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline CreateBotRequest& 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 create a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline CreateBotRequest& 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 create a * bot. You can't use the UpdateBot operation to update tags. To * update tags, use the TagResource operation.

*/ inline CreateBotRequest& 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 create 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 create 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 create 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 create 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 create a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline CreateBotRequest& 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 create a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline CreateBotRequest& 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 create a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline CreateBotRequest& 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 create a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline CreateBotRequest& 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 create a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline CreateBotRequest& 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 create a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline CreateBotRequest& 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 create a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline CreateBotRequest& 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 create a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline CreateBotRequest& 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 create a bot. You can't use the UpdateAlias operation to update * tags. To update tags on the test alias, use the TagResource * operation.

*/ inline CreateBotRequest& AddTestBotAliasTags(const char* key, const char* value) { m_testBotAliasTagsHasBeenSet = true; m_testBotAliasTags.emplace(key, value); return *this; } /** *

The type of a bot to create.

*/ inline const BotType& GetBotType() const{ return m_botType; } /** *

The type of a bot to create.

*/ inline bool BotTypeHasBeenSet() const { return m_botTypeHasBeenSet; } /** *

The type of a bot to create.

*/ inline void SetBotType(const BotType& value) { m_botTypeHasBeenSet = true; m_botType = value; } /** *

The type of a bot to create.

*/ inline void SetBotType(BotType&& value) { m_botTypeHasBeenSet = true; m_botType = std::move(value); } /** *

The type of a bot to create.

*/ inline CreateBotRequest& WithBotType(const BotType& value) { SetBotType(value); return *this;} /** *

The type of a bot to create.

*/ inline CreateBotRequest& WithBotType(BotType&& value) { SetBotType(std::move(value)); return *this;} /** *

The list of bot members in a network to be created.

*/ inline const Aws::Vector& GetBotMembers() const{ return m_botMembers; } /** *

The list of bot members in a network to be created.

*/ inline bool BotMembersHasBeenSet() const { return m_botMembersHasBeenSet; } /** *

The list of bot members in a network to be created.

*/ inline void SetBotMembers(const Aws::Vector& value) { m_botMembersHasBeenSet = true; m_botMembers = value; } /** *

The list of bot members in a network to be created.

*/ inline void SetBotMembers(Aws::Vector&& value) { m_botMembersHasBeenSet = true; m_botMembers = std::move(value); } /** *

The list of bot members in a network to be created.

*/ inline CreateBotRequest& WithBotMembers(const Aws::Vector& value) { SetBotMembers(value); return *this;} /** *

The list of bot members in a network to be created.

*/ inline CreateBotRequest& WithBotMembers(Aws::Vector&& value) { SetBotMembers(std::move(value)); return *this;} /** *

The list of bot members in a network to be created.

*/ inline CreateBotRequest& AddBotMembers(const BotMember& value) { m_botMembersHasBeenSet = true; m_botMembers.push_back(value); return *this; } /** *

The list of bot members in a network to be created.

*/ inline CreateBotRequest& AddBotMembers(BotMember&& value) { m_botMembersHasBeenSet = true; m_botMembers.push_back(std::move(value)); return *this; } private: Aws::String m_botName; bool m_botNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = 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; BotType m_botType; bool m_botTypeHasBeenSet = false; Aws::Vector m_botMembers; bool m_botMembersHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws