/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lexmodelsv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateBotRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique identifier of the bot to update. This identifier is returned by the CreateBot operation. *
*/ private String botId; /** ** The new name of the bot. The name must be unique in the account that creates the bot. *
*/ private String botName; /** ** A description of the bot. *
*/ private String description; /** ** The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot. *
*/ private String roleArn; /** ** Provides information on additional privacy protections Amazon Lex should use with the bot's data. *
*/ private DataPrivacy dataPrivacy; /** ** 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. *
*/ private Integer idleSessionTTLInSeconds; /** ** The type of the bot to be updated. *
*/ private String botType; /** ** The list of bot members in the network associated with the update action. *
*/ private java.util.List* The unique identifier of the bot to update. This identifier is returned by the CreateBot operation. *
* * @param botId * The unique identifier of the bot to update. This identifier is returned by the CreateBot operation. */ public void setBotId(String botId) { this.botId = botId; } /** ** The unique identifier of the bot to update. This identifier is returned by the CreateBot operation. *
* * @return The unique identifier of the bot to update. This identifier is returned by the CreateBot operation. */ public String getBotId() { return this.botId; } /** ** The unique identifier of the bot to update. This identifier is returned by the CreateBot operation. *
* * @param botId * The unique identifier of the bot to update. This identifier is returned by the CreateBot operation. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBotRequest withBotId(String botId) { setBotId(botId); return this; } /** ** The new name of the bot. The name must be unique in the account that creates the bot. *
* * @param botName * The new name of the bot. The name must be unique in the account that creates the bot. */ public void setBotName(String botName) { this.botName = botName; } /** ** The new name of the bot. The name must be unique in the account that creates the bot. *
* * @return The new name of the bot. The name must be unique in the account that creates the bot. */ public String getBotName() { return this.botName; } /** ** The new name of the bot. The name must be unique in the account that creates the bot. *
* * @param botName * The new name of the bot. The name must be unique in the account that creates the bot. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBotRequest withBotName(String botName) { setBotName(botName); return this; } /** ** A description of the bot. *
* * @param description * A description of the bot. */ public void setDescription(String description) { this.description = description; } /** ** A description of the bot. *
* * @return A description of the bot. */ public String getDescription() { return this.description; } /** ** A description of the bot. *
* * @param description * A description of the bot. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBotRequest withDescription(String description) { setDescription(description); return this; } /** ** The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot. *
* * @param roleArn * The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot. *
* * @return The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot. */ public String getRoleArn() { return this.roleArn; } /** ** The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot. *
* * @param roleArn * The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBotRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** Provides information on additional privacy protections Amazon Lex should use with the bot's data. *
* * @param dataPrivacy * Provides information on additional privacy protections Amazon Lex should use with the bot's data. */ public void setDataPrivacy(DataPrivacy dataPrivacy) { this.dataPrivacy = dataPrivacy; } /** ** Provides information on additional privacy protections Amazon Lex should use with the bot's data. *
* * @return Provides information on additional privacy protections Amazon Lex should use with the bot's data. */ public DataPrivacy getDataPrivacy() { return this.dataPrivacy; } /** ** Provides information on additional privacy protections Amazon Lex should use with the bot's data. *
* * @param dataPrivacy * Provides information on additional privacy protections Amazon Lex should use with the bot's data. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBotRequest withDataPrivacy(DataPrivacy dataPrivacy) { setDataPrivacy(dataPrivacy); 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. *
* * @param 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. */ public void setIdleSessionTTLInSeconds(Integer idleSessionTTLInSeconds) { this.idleSessionTTLInSeconds = 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. *
* * @return 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. */ public Integer getIdleSessionTTLInSeconds() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBotRequest withIdleSessionTTLInSeconds(Integer idleSessionTTLInSeconds) { setIdleSessionTTLInSeconds(idleSessionTTLInSeconds); return this; } /** *
* The type of the bot to be updated. *
* * @param botType * The type of the bot to be updated. * @see BotType */ public void setBotType(String botType) { this.botType = botType; } /** ** The type of the bot to be updated. *
* * @return The type of the bot to be updated. * @see BotType */ public String getBotType() { return this.botType; } /** ** The type of the bot to be updated. *
* * @param botType * The type of the bot to be updated. * @return Returns a reference to this object so that method calls can be chained together. * @see BotType */ public UpdateBotRequest withBotType(String botType) { setBotType(botType); return this; } /** ** The type of the bot to be updated. *
* * @param botType * The type of the bot to be updated. * @return Returns a reference to this object so that method calls can be chained together. * @see BotType */ public UpdateBotRequest withBotType(BotType botType) { this.botType = botType.toString(); return this; } /** ** The list of bot members in the network associated with the update action. *
* * @return The list of bot members in the network associated with the update action. */ public java.util.List* The list of bot members in the network associated with the update action. *
* * @param botMembers * The list of bot members in the network associated with the update action. */ public void setBotMembers(java.util.Collection* The list of bot members in the network associated with the update action. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setBotMembers(java.util.Collection)} or {@link #withBotMembers(java.util.Collection)} if you want to * override the existing values. *
* * @param botMembers * The list of bot members in the network associated with the update action. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBotRequest withBotMembers(BotMember... botMembers) { if (this.botMembers == null) { setBotMembers(new java.util.ArrayList* The list of bot members in the network associated with the update action. *
* * @param botMembers * The list of bot members in the network associated with the update action. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBotRequest withBotMembers(java.util.Collection