/** * 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 namespace Aws { namespace LexModelBuildingService { namespace Model { /** */ class PutBotAliasRequest : public LexModelBuildingServiceRequest { public: AWS_LEXMODELBUILDINGSERVICE_API PutBotAliasRequest(); // 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 "PutBotAlias"; } AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override; /** *

The name of the alias. The name is not case sensitive.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the alias. The name is not case sensitive.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the alias. The name is not case sensitive.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the alias. The name is not case sensitive.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the alias. The name is not case sensitive.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the alias. The name is not case sensitive.

*/ inline PutBotAliasRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the alias. The name is not case sensitive.

*/ inline PutBotAliasRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the alias. The name is not case sensitive.

*/ inline PutBotAliasRequest& WithName(const char* value) { SetName(value); return *this;} /** *

A description of the alias.

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

A description of the alias.

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

A description of the alias.

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

A description of the alias.

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

A description of the alias.

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

A description of the alias.

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

A description of the alias.

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

A description of the alias.

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

The version of the bot.

*/ inline const Aws::String& GetBotVersion() const{ return m_botVersion; } /** *

The version of the bot.

*/ inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; } /** *

The version of the bot.

*/ inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; } /** *

The version of the bot.

*/ inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); } /** *

The version of the bot.

*/ inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); } /** *

The version of the bot.

*/ inline PutBotAliasRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;} /** *

The version of the bot.

*/ inline PutBotAliasRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;} /** *

The version of the bot.

*/ inline PutBotAliasRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;} /** *

The name of the bot.

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

The name of the bot.

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

The name of the bot.

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

The name of the bot.

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

The name of the bot.

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

The name of the bot.

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

The name of the bot.

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

The name of the bot.

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

Identifies a specific revision of the $LATEST version.

*

When you create a new bot alias, leave the checksum field blank. * If you specify a checksum you get a BadRequestException * exception.

When you want to update a bot alias, set the * checksum field to the checksum of the most recent revision of the * $LATEST version. If you don't specify the checksum * field, or if the checksum does not match the $LATEST version, you * get a PreconditionFailedException exception.

*/ inline const Aws::String& GetChecksum() const{ return m_checksum; } /** *

Identifies a specific revision of the $LATEST version.

*

When you create a new bot alias, leave the checksum field blank. * If you specify a checksum you get a BadRequestException * exception.

When you want to update a bot alias, set the * checksum field to the checksum of the most recent revision of the * $LATEST version. If you don't specify the checksum * field, or if the checksum does not match the $LATEST version, you * get a PreconditionFailedException exception.

*/ inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; } /** *

Identifies a specific revision of the $LATEST version.

*

When you create a new bot alias, leave the checksum field blank. * If you specify a checksum you get a BadRequestException * exception.

When you want to update a bot alias, set the * checksum field to the checksum of the most recent revision of the * $LATEST version. If you don't specify the checksum * field, or if the checksum does not match the $LATEST version, you * get a PreconditionFailedException exception.

*/ inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; } /** *

Identifies a specific revision of the $LATEST version.

*

When you create a new bot alias, leave the checksum field blank. * If you specify a checksum you get a BadRequestException * exception.

When you want to update a bot alias, set the * checksum field to the checksum of the most recent revision of the * $LATEST version. If you don't specify the checksum * field, or if the checksum does not match the $LATEST version, you * get a PreconditionFailedException exception.

*/ inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); } /** *

Identifies a specific revision of the $LATEST version.

*

When you create a new bot alias, leave the checksum field blank. * If you specify a checksum you get a BadRequestException * exception.

When you want to update a bot alias, set the * checksum field to the checksum of the most recent revision of the * $LATEST version. If you don't specify the checksum * field, or if the checksum does not match the $LATEST version, you * get a PreconditionFailedException exception.

*/ inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); } /** *

Identifies a specific revision of the $LATEST version.

*

When you create a new bot alias, leave the checksum field blank. * If you specify a checksum you get a BadRequestException * exception.

When you want to update a bot alias, set the * checksum field to the checksum of the most recent revision of the * $LATEST version. If you don't specify the checksum * field, or if the checksum does not match the $LATEST version, you * get a PreconditionFailedException exception.

*/ inline PutBotAliasRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;} /** *

Identifies a specific revision of the $LATEST version.

*

When you create a new bot alias, leave the checksum field blank. * If you specify a checksum you get a BadRequestException * exception.

When you want to update a bot alias, set the * checksum field to the checksum of the most recent revision of the * $LATEST version. If you don't specify the checksum * field, or if the checksum does not match the $LATEST version, you * get a PreconditionFailedException exception.

*/ inline PutBotAliasRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;} /** *

Identifies a specific revision of the $LATEST version.

*

When you create a new bot alias, leave the checksum field blank. * If you specify a checksum you get a BadRequestException * exception.

When you want to update a bot alias, set the * checksum field to the checksum of the most recent revision of the * $LATEST version. If you don't specify the checksum * field, or if the checksum does not match the $LATEST version, you * get a PreconditionFailedException exception.

*/ inline PutBotAliasRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;} /** *

Settings for conversation logs for the alias.

*/ inline const ConversationLogsRequest& GetConversationLogs() const{ return m_conversationLogs; } /** *

Settings for conversation logs for the alias.

*/ inline bool ConversationLogsHasBeenSet() const { return m_conversationLogsHasBeenSet; } /** *

Settings for conversation logs for the alias.

*/ inline void SetConversationLogs(const ConversationLogsRequest& value) { m_conversationLogsHasBeenSet = true; m_conversationLogs = value; } /** *

Settings for conversation logs for the alias.

*/ inline void SetConversationLogs(ConversationLogsRequest&& value) { m_conversationLogsHasBeenSet = true; m_conversationLogs = std::move(value); } /** *

Settings for conversation logs for the alias.

*/ inline PutBotAliasRequest& WithConversationLogs(const ConversationLogsRequest& value) { SetConversationLogs(value); return *this;} /** *

Settings for conversation logs for the alias.

*/ inline PutBotAliasRequest& WithConversationLogs(ConversationLogsRequest&& value) { SetConversationLogs(std::move(value)); return *this;} /** *

A list of tags to add to the bot alias. You can only add tags when you create * an alias, you can't use the PutBotAlias operation to update the * tags on a bot alias. To update tags, use the TagResource * operation.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags to add to the bot alias. You can only add tags when you create * an alias, you can't use the PutBotAlias operation to update the * tags on a bot alias. To update tags, use the TagResource * operation.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags to add to the bot alias. You can only add tags when you create * an alias, you can't use the PutBotAlias operation to update the * tags on a bot alias. To update tags, use the TagResource * operation.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags to add to the bot alias. You can only add tags when you create * an alias, you can't use the PutBotAlias operation to update the * tags on a bot alias. To update tags, use the TagResource * operation.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags to add to the bot alias. You can only add tags when you create * an alias, you can't use the PutBotAlias operation to update the * tags on a bot alias. To update tags, use the TagResource * operation.

*/ inline PutBotAliasRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags to add to the bot alias. You can only add tags when you create * an alias, you can't use the PutBotAlias operation to update the * tags on a bot alias. To update tags, use the TagResource * operation.

*/ inline PutBotAliasRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags to add to the bot alias. You can only add tags when you create * an alias, you can't use the PutBotAlias operation to update the * tags on a bot alias. To update tags, use the TagResource * operation.

*/ inline PutBotAliasRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags to add to the bot alias. You can only add tags when you create * an alias, you can't use the PutBotAlias operation to update the * tags on a bot alias. To update tags, use the TagResource * operation.

*/ inline PutBotAliasRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_botVersion; bool m_botVersionHasBeenSet = false; Aws::String m_botName; bool m_botNameHasBeenSet = false; Aws::String m_checksum; bool m_checksumHasBeenSet = false; ConversationLogsRequest m_conversationLogs; bool m_conversationLogsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws