/** * 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 namespace Aws { namespace LexModelsV2 { namespace Model { /** */ class UpdateBotRequest : public LexModelsV2Request { public: AWS_LEXMODELSV2_API UpdateBotRequest(); // 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 "UpdateBot"; } AWS_LEXMODELSV2_API Aws::String SerializePayload() const override; /** *

The unique identifier of the bot to update. This identifier is returned by * the CreateBot * operation.

*/ inline const Aws::String& GetBotId() const{ return m_botId; } /** *

The unique identifier of the bot to update. This identifier is returned by * the CreateBot * operation.

*/ inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } /** *

The unique identifier of the bot to update. This identifier is returned by * the CreateBot * operation.

*/ inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } /** *

The unique identifier of the bot to update. This identifier is returned by * the CreateBot * operation.

*/ inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } /** *

The unique identifier of the bot to update. This identifier is returned by * the CreateBot * operation.

*/ inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } /** *

The unique identifier of the bot to update. This identifier is returned by * the CreateBot * operation.

*/ inline UpdateBotRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} /** *

The unique identifier of the bot to update. This identifier is returned by * the CreateBot * operation.

*/ inline UpdateBotRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} /** *

The unique identifier of the bot to update. This identifier is returned by * the CreateBot * operation.

*/ inline UpdateBotRequest& WithBotId(const char* value) { SetBotId(value); return *this;} /** *

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

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

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

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

The new name of the bot. The 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 new name of the bot. The 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 new name of the bot. The 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 new name of the bot. The name must be unique in the account that creates * the bot.

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

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

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

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

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

A description of the bot.

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

A description of the bot.

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

A description of the bot.

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

A description of the bot.

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

A description of the bot.

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

A description of the bot.

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

A description of the bot.

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

A description of the bot.

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

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

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

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

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

The Amazon Resource Name (ARN) of an IAM role that has permissions 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 permissions 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 permissions 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 permissions to access * the bot.

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

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

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

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

*/ inline UpdateBotRequest& 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 UpdateBotRequest& WithDataPrivacy(const DataPrivacy& value) { SetDataPrivacy(value); return *this;} /** *

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

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

The type of the bot to be updated.

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

The type of the bot to be updated.

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

The type of the bot to be updated.

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

The type of the bot to be updated.

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

The type of the bot to be updated.

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

The type of the bot to be updated.

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

The list of bot members in the network associated with the update action.

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

The list of bot members in the network associated with the update action.

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

The list of bot members in the network associated with the update action.

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

The list of bot members in the network associated with the update action.

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

The list of bot members in the network associated with the update action.

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

The list of bot members in the network associated with the update action.

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

The list of bot members in the network associated with the update action.

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

The list of bot members in the network associated with the update action.

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