/* * 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 BatchUpdateCustomVocabularyItemRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The identifier of the bot associated with this custom vocabulary *
*/ private String botId; /** ** The identifier of the version of the bot associated with this custom vocabulary. *
*/ private String botVersion; /** ** The identifier of the language and locale where this custom vocabulary is used. The string must match one of the * supported locales. For more information, see Supported Languages . *
*/ private String localeId; /** ** A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can optionally * contain a displayAs and/or a weight. *
*/ private java.util.List* The identifier of the bot associated with this custom vocabulary *
* * @param botId * The identifier of the bot associated with this custom vocabulary */ public void setBotId(String botId) { this.botId = botId; } /** ** The identifier of the bot associated with this custom vocabulary *
* * @return The identifier of the bot associated with this custom vocabulary */ public String getBotId() { return this.botId; } /** ** The identifier of the bot associated with this custom vocabulary *
* * @param botId * The identifier of the bot associated with this custom vocabulary * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateCustomVocabularyItemRequest withBotId(String botId) { setBotId(botId); return this; } /** ** The identifier of the version of the bot associated with this custom vocabulary. *
* * @param botVersion * The identifier of the version of the bot associated with this custom vocabulary. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** ** The identifier of the version of the bot associated with this custom vocabulary. *
* * @return The identifier of the version of the bot associated with this custom vocabulary. */ public String getBotVersion() { return this.botVersion; } /** ** The identifier of the version of the bot associated with this custom vocabulary. *
* * @param botVersion * The identifier of the version of the bot associated with this custom vocabulary. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateCustomVocabularyItemRequest withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** ** The identifier of the language and locale where this custom vocabulary is used. The string must match one of the * supported locales. For more information, see Supported Languages . *
* * @param localeId * The identifier of the language and locale where this custom vocabulary is used. The string must match one * of the supported locales. For more information, see Supported Languages . */ public void setLocaleId(String localeId) { this.localeId = localeId; } /** ** The identifier of the language and locale where this custom vocabulary is used. The string must match one of the * supported locales. For more information, see Supported Languages . *
* * @return The identifier of the language and locale where this custom vocabulary is used. The string must match one * of the supported locales. For more information, see Supported Languages . */ public String getLocaleId() { return this.localeId; } /** ** The identifier of the language and locale where this custom vocabulary is used. The string must match one of the * supported locales. For more information, see Supported Languages . *
* * @param localeId * The identifier of the language and locale where this custom vocabulary is used. The string must match one * of the supported locales. For more information, see Supported Languages . * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateCustomVocabularyItemRequest withLocaleId(String localeId) { setLocaleId(localeId); return this; } /** ** A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can optionally * contain a displayAs and/or a weight. *
* * @return A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can * optionally contain a displayAs and/or a weight. */ public java.util.List* A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can optionally * contain a displayAs and/or a weight. *
* * @param customVocabularyItemList * A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can optionally * contain a displayAs and/or a weight. */ public void setCustomVocabularyItemList(java.util.Collection* A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can optionally * contain a displayAs and/or a weight. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCustomVocabularyItemList(java.util.Collection)} or * {@link #withCustomVocabularyItemList(java.util.Collection)} if you want to override the existing values. *
* * @param customVocabularyItemList * A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can optionally * contain a displayAs and/or a weight. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateCustomVocabularyItemRequest withCustomVocabularyItemList(CustomVocabularyItem... customVocabularyItemList) { if (this.customVocabularyItemList == null) { setCustomVocabularyItemList(new java.util.ArrayList* A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can optionally * contain a displayAs and/or a weight. *
* * @param customVocabularyItemList * A list of custom vocabulary items with updated fields. Each entry must contain a phrase and can optionally * contain a displayAs and/or a weight. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateCustomVocabularyItemRequest withCustomVocabularyItemList(java.util.Collection