/* * 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 CreateBotVersionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The identifier of the bot to create the version for. *
*/ private String botId; /** ** A description of the version. Use the description to help identify the version in lists. *
*/ private String description; /** *
* Specifies the locales that Amazon Lex adds to this version. You can choose the Draft
version or any
* other previously published version for each locale. When you specify a source version, the locale data is copied
* from the source version to the new version.
*
* The identifier of the bot to create the version for. *
* * @param botId * The identifier of the bot to create the version for. */ public void setBotId(String botId) { this.botId = botId; } /** ** The identifier of the bot to create the version for. *
* * @return The identifier of the bot to create the version for. */ public String getBotId() { return this.botId; } /** ** The identifier of the bot to create the version for. *
* * @param botId * The identifier of the bot to create the version for. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotVersionRequest withBotId(String botId) { setBotId(botId); return this; } /** ** A description of the version. Use the description to help identify the version in lists. *
* * @param description * A description of the version. Use the description to help identify the version in lists. */ public void setDescription(String description) { this.description = description; } /** ** A description of the version. Use the description to help identify the version in lists. *
* * @return A description of the version. Use the description to help identify the version in lists. */ public String getDescription() { return this.description; } /** ** A description of the version. Use the description to help identify the version in lists. *
* * @param description * A description of the version. Use the description to help identify the version in lists. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotVersionRequest withDescription(String description) { setDescription(description); return this; } /** *
* Specifies the locales that Amazon Lex adds to this version. You can choose the Draft
version or any
* other previously published version for each locale. When you specify a source version, the locale data is copied
* from the source version to the new version.
*
Draft
version
* or any other previously published version for each locale. When you specify a source version, the locale
* data is copied from the source version to the new version.
*/
public java.util.Map
* Specifies the locales that Amazon Lex adds to this version. You can choose the Draft
version or any
* other previously published version for each locale. When you specify a source version, the locale data is copied
* from the source version to the new version.
*
Draft
version
* or any other previously published version for each locale. When you specify a source version, the locale
* data is copied from the source version to the new version.
*/
public void setBotVersionLocaleSpecification(java.util.Map
* Specifies the locales that Amazon Lex adds to this version. You can choose the Draft
version or any
* other previously published version for each locale. When you specify a source version, the locale data is copied
* from the source version to the new version.
*
Draft
version
* or any other previously published version for each locale. When you specify a source version, the locale
* data is copied from the source version to the new version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBotVersionRequest withBotVersionLocaleSpecification(java.util.Map