/* * 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.translate.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 ImportTerminologyRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the custom terminology being imported. *
*/ private String name; /** ** The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is * supported. In this case, the imported terminology will overwrite an existing terminology of the same name. *
*/ private String mergeStrategy; /** ** The description of the custom terminology being imported. *
*/ private String description; /** ** The terminology data for the custom terminology being imported. *
*/ private TerminologyData terminologyData; /** ** The encryption key for the custom terminology being imported. *
*/ private EncryptionKey encryptionKey; /** ** Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag * key for the resource must be unique. For more information, see Tagging your resources. *
*/ private java.util.List* The name of the custom terminology being imported. *
* * @param name * The name of the custom terminology being imported. */ public void setName(String name) { this.name = name; } /** ** The name of the custom terminology being imported. *
* * @return The name of the custom terminology being imported. */ public String getName() { return this.name; } /** ** The name of the custom terminology being imported. *
* * @param name * The name of the custom terminology being imported. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportTerminologyRequest withName(String name) { setName(name); return this; } /** ** The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is * supported. In this case, the imported terminology will overwrite an existing terminology of the same name. *
* * @param mergeStrategy * The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy * is supported. In this case, the imported terminology will overwrite an existing terminology of the same * name. * @see MergeStrategy */ public void setMergeStrategy(String mergeStrategy) { this.mergeStrategy = mergeStrategy; } /** ** The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is * supported. In this case, the imported terminology will overwrite an existing terminology of the same name. *
* * @return The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy * is supported. In this case, the imported terminology will overwrite an existing terminology of the same * name. * @see MergeStrategy */ public String getMergeStrategy() { return this.mergeStrategy; } /** ** The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is * supported. In this case, the imported terminology will overwrite an existing terminology of the same name. *
* * @param mergeStrategy * The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy * is supported. In this case, the imported terminology will overwrite an existing terminology of the same * name. * @return Returns a reference to this object so that method calls can be chained together. * @see MergeStrategy */ public ImportTerminologyRequest withMergeStrategy(String mergeStrategy) { setMergeStrategy(mergeStrategy); return this; } /** ** The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is * supported. In this case, the imported terminology will overwrite an existing terminology of the same name. *
* * @param mergeStrategy * The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy * is supported. In this case, the imported terminology will overwrite an existing terminology of the same * name. * @return Returns a reference to this object so that method calls can be chained together. * @see MergeStrategy */ public ImportTerminologyRequest withMergeStrategy(MergeStrategy mergeStrategy) { this.mergeStrategy = mergeStrategy.toString(); return this; } /** ** The description of the custom terminology being imported. *
* * @param description * The description of the custom terminology being imported. */ public void setDescription(String description) { this.description = description; } /** ** The description of the custom terminology being imported. *
* * @return The description of the custom terminology being imported. */ public String getDescription() { return this.description; } /** ** The description of the custom terminology being imported. *
* * @param description * The description of the custom terminology being imported. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportTerminologyRequest withDescription(String description) { setDescription(description); return this; } /** ** The terminology data for the custom terminology being imported. *
* * @param terminologyData * The terminology data for the custom terminology being imported. */ public void setTerminologyData(TerminologyData terminologyData) { this.terminologyData = terminologyData; } /** ** The terminology data for the custom terminology being imported. *
* * @return The terminology data for the custom terminology being imported. */ public TerminologyData getTerminologyData() { return this.terminologyData; } /** ** The terminology data for the custom terminology being imported. *
* * @param terminologyData * The terminology data for the custom terminology being imported. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportTerminologyRequest withTerminologyData(TerminologyData terminologyData) { setTerminologyData(terminologyData); return this; } /** ** The encryption key for the custom terminology being imported. *
* * @param encryptionKey * The encryption key for the custom terminology being imported. */ public void setEncryptionKey(EncryptionKey encryptionKey) { this.encryptionKey = encryptionKey; } /** ** The encryption key for the custom terminology being imported. *
* * @return The encryption key for the custom terminology being imported. */ public EncryptionKey getEncryptionKey() { return this.encryptionKey; } /** ** The encryption key for the custom terminology being imported. *
* * @param encryptionKey * The encryption key for the custom terminology being imported. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportTerminologyRequest withEncryptionKey(EncryptionKey encryptionKey) { setEncryptionKey(encryptionKey); return this; } /** ** Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag * key for the resource must be unique. For more information, see Tagging your resources. *
* * @return Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. * Each tag key for the resource must be unique. For more information, see Tagging your resources. */ public java.util.List* Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag * key for the resource must be unique. For more information, see Tagging your resources. *
* * @param tags * Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each * tag key for the resource must be unique. For more information, see Tagging your resources. */ public void setTags(java.util.Collection* Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag * key for the resource must be unique. For more information, see Tagging your resources. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each * tag key for the resource must be unique. For more information, see Tagging your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportTerminologyRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag * key for the resource must be unique. For more information, see Tagging your resources. *
* * @param tags * Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each * tag key for the resource must be unique. For more information, see Tagging your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportTerminologyRequest withTags(java.util.Collection