/* * 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 CreateBotAliasRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The alias to create. The name must be unique for the bot. *
*/ private String botAliasName; /** ** A description of the alias. Use this description to help identify the alias. *
*/ private String description; /** ** The version of the bot that this alias points to. You can use the UpdateBotAlias operation * to change the bot version associated with the alias. *
*/ private String botVersion; /** ** Maps configuration information to a specific locale. You can use this parameter to specify a specific Lambda * function to run different functions in different locales. *
*/ private java.util.Map* Specifies whether Amazon Lex logs text and audio for a conversation with the bot. When you enable conversation * logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch Logs. * Audio logs store audio input in Amazon S3. *
*/ private ConversationLogSettings conversationLogSettings; private SentimentAnalysisSettings sentimentAnalysisSettings; /** ** The unique identifier of the bot that the alias applies to. *
*/ private String botId; /** *
* 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
* UpdateBotAlias
operation to update the tags on a bot alias. To update tags, use the
* TagResource
operation.
*
* The alias to create. The name must be unique for the bot. *
* * @param botAliasName * The alias to create. The name must be unique for the bot. */ public void setBotAliasName(String botAliasName) { this.botAliasName = botAliasName; } /** ** The alias to create. The name must be unique for the bot. *
* * @return The alias to create. The name must be unique for the bot. */ public String getBotAliasName() { return this.botAliasName; } /** ** The alias to create. The name must be unique for the bot. *
* * @param botAliasName * The alias to create. The name must be unique for the bot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotAliasRequest withBotAliasName(String botAliasName) { setBotAliasName(botAliasName); return this; } /** ** A description of the alias. Use this description to help identify the alias. *
* * @param description * A description of the alias. Use this description to help identify the alias. */ public void setDescription(String description) { this.description = description; } /** ** A description of the alias. Use this description to help identify the alias. *
* * @return A description of the alias. Use this description to help identify the alias. */ public String getDescription() { return this.description; } /** ** A description of the alias. Use this description to help identify the alias. *
* * @param description * A description of the alias. Use this description to help identify the alias. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotAliasRequest withDescription(String description) { setDescription(description); return this; } /** ** The version of the bot that this alias points to. You can use the UpdateBotAlias operation * to change the bot version associated with the alias. *
* * @param botVersion * The version of the bot that this alias points to. You can use the UpdateBotAlias * operation to change the bot version associated with the alias. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** ** The version of the bot that this alias points to. You can use the UpdateBotAlias operation * to change the bot version associated with the alias. *
* * @return The version of the bot that this alias points to. You can use the UpdateBotAlias * operation to change the bot version associated with the alias. */ public String getBotVersion() { return this.botVersion; } /** ** The version of the bot that this alias points to. You can use the UpdateBotAlias operation * to change the bot version associated with the alias. *
* * @param botVersion * The version of the bot that this alias points to. You can use the UpdateBotAlias * operation to change the bot version associated with the alias. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotAliasRequest withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** ** Maps configuration information to a specific locale. You can use this parameter to specify a specific Lambda * function to run different functions in different locales. *
* * @return Maps configuration information to a specific locale. You can use this parameter to specify a specific * Lambda function to run different functions in different locales. */ public java.util.Map* Maps configuration information to a specific locale. You can use this parameter to specify a specific Lambda * function to run different functions in different locales. *
* * @param botAliasLocaleSettings * Maps configuration information to a specific locale. You can use this parameter to specify a specific * Lambda function to run different functions in different locales. */ public void setBotAliasLocaleSettings(java.util.Map* Maps configuration information to a specific locale. You can use this parameter to specify a specific Lambda * function to run different functions in different locales. *
* * @param botAliasLocaleSettings * Maps configuration information to a specific locale. You can use this parameter to specify a specific * Lambda function to run different functions in different locales. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotAliasRequest withBotAliasLocaleSettings(java.util.Map* Specifies whether Amazon Lex logs text and audio for a conversation with the bot. When you enable conversation * logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch Logs. * Audio logs store audio input in Amazon S3. *
* * @param conversationLogSettings * Specifies whether Amazon Lex logs text and audio for a conversation with the bot. When you enable * conversation logs, text logs store text input, transcripts of audio input, and associated metadata in * Amazon CloudWatch Logs. Audio logs store audio input in Amazon S3. */ public void setConversationLogSettings(ConversationLogSettings conversationLogSettings) { this.conversationLogSettings = conversationLogSettings; } /** ** Specifies whether Amazon Lex logs text and audio for a conversation with the bot. When you enable conversation * logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch Logs. * Audio logs store audio input in Amazon S3. *
* * @return Specifies whether Amazon Lex logs text and audio for a conversation with the bot. When you enable * conversation logs, text logs store text input, transcripts of audio input, and associated metadata in * Amazon CloudWatch Logs. Audio logs store audio input in Amazon S3. */ public ConversationLogSettings getConversationLogSettings() { return this.conversationLogSettings; } /** ** Specifies whether Amazon Lex logs text and audio for a conversation with the bot. When you enable conversation * logs, text logs store text input, transcripts of audio input, and associated metadata in Amazon CloudWatch Logs. * Audio logs store audio input in Amazon S3. *
* * @param conversationLogSettings * Specifies whether Amazon Lex logs text and audio for a conversation with the bot. When you enable * conversation logs, text logs store text input, transcripts of audio input, and associated metadata in * Amazon CloudWatch Logs. Audio logs store audio input in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotAliasRequest withConversationLogSettings(ConversationLogSettings conversationLogSettings) { setConversationLogSettings(conversationLogSettings); return this; } /** * @param sentimentAnalysisSettings */ public void setSentimentAnalysisSettings(SentimentAnalysisSettings sentimentAnalysisSettings) { this.sentimentAnalysisSettings = sentimentAnalysisSettings; } /** * @return */ public SentimentAnalysisSettings getSentimentAnalysisSettings() { return this.sentimentAnalysisSettings; } /** * @param sentimentAnalysisSettings * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotAliasRequest withSentimentAnalysisSettings(SentimentAnalysisSettings sentimentAnalysisSettings) { setSentimentAnalysisSettings(sentimentAnalysisSettings); return this; } /** ** The unique identifier of the bot that the alias applies to. *
* * @param botId * The unique identifier of the bot that the alias applies to. */ public void setBotId(String botId) { this.botId = botId; } /** ** The unique identifier of the bot that the alias applies to. *
* * @return The unique identifier of the bot that the alias applies to. */ public String getBotId() { return this.botId; } /** ** The unique identifier of the bot that the alias applies to. *
* * @param botId * The unique identifier of the bot that the alias applies to. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotAliasRequest withBotId(String botId) { setBotId(botId); 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
* UpdateBotAlias
operation to update the tags on a bot alias. To update tags, use the
* TagResource
operation.
*
UpdateBotAlias
operation to update the tags on a bot alias. To update tags, use the
* TagResource
operation.
*/
public java.util.Map
* 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
* UpdateBotAlias
operation to update the tags on a bot alias. To update tags, use the
* TagResource
operation.
*
UpdateBotAlias
operation to update the tags on a bot alias. To update tags, use the
* TagResource
operation.
*/
public void setTags(java.util.Map
* 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
* UpdateBotAlias
operation to update the tags on a bot alias. To update tags, use the
* TagResource
operation.
*
UpdateBotAlias
operation to update the tags on a bot alias. To update tags, use the
* TagResource
operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBotAliasRequest withTags(java.util.Map