All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.translate.model.StartTextTranslationJobRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Translate module holds the client classes that are used for communicating with Amazon Translate Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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 StartTextTranslationJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the batch translation job to be performed. *

*/ private String jobName; /** *

* Specifies the format and location of the input documents for the translation job. *

*/ private InputDataConfig inputDataConfig; /** *

* Specifies the S3 folder to which your job output will be saved. *

*/ private OutputDataConfig outputDataConfig; /** *

* The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate * read access to your input data. For more information, see Identity and access * management . *

*/ private String dataAccessRoleArn; /** *

* The language code of the input language. Specify the language if all input documents share the same language. If * you don't know the language of the source files, or your input documents contains different source languages, * select auto. Amazon Translate auto detects the source language for each input document. For a list * of supported language codes, see Supported languages. *

*/ private String sourceLanguageCode; /** *

* The target languages of the translation job. Enter up to 10 language codes. Each input file is translated into * each target language. *

*

* Each language code is 2 or 5 characters long. For a list of language codes, see Supported languages. *

*/ private java.util.List targetLanguageCodes; /** *

* The name of a custom terminology resource to add to the translation job. This resource lists examples source * terms and the desired translation for each term. *

*

* This parameter accepts only one custom terminology resource. *

*

* If you specify multiple target languages for the job, translate uses the designated terminology for each * requested target language that has an entry for the source term in the terminology file. *

*

* For a list of available custom terminology resources, use the ListTerminologies operation. *

*

* For more information, see Custom terminology. *

*/ private java.util.List terminologyNames; /** *

* The name of a parallel data resource to add to the translation job. This resource consists of examples that show * how you want segments of text to be translated. If you specify multiple target languages for the job, the * parallel data file must include translations for all the target languages. *

*

* When you add parallel data to a translation job, you create an Active Custom Translation job. *

*

* This parameter accepts only one parallel data resource. *

* *

* Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. For more * information, see Amazon Translate pricing. *

*
*

* For a list of available parallel data resources, use the ListParallelData operation. *

*

* For more information, see Customizing * your translations with parallel data. *

*/ private java.util.List parallelDataNames; /** *

* A unique identifier for the request. This token is generated for you when using the Amazon Translate SDK. *

*/ private String clientToken; /** *

* Settings to configure your translation output. You can configure the following options: *

*
    *
  • *

    * Brevity: not supported. *

    *
  • *
  • *

    * Formality: sets the formality level of the output text. *

    *
  • *
  • *

    * Profanity: masks profane words and phrases in your translation output. *

    *
  • *
*/ private TranslationSettings settings; /** *

* The name of the batch translation job to be performed. *

* * @param jobName * The name of the batch translation job to be performed. */ public void setJobName(String jobName) { this.jobName = jobName; } /** *

* The name of the batch translation job to be performed. *

* * @return The name of the batch translation job to be performed. */ public String getJobName() { return this.jobName; } /** *

* The name of the batch translation job to be performed. *

* * @param jobName * The name of the batch translation job to be performed. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withJobName(String jobName) { setJobName(jobName); return this; } /** *

* Specifies the format and location of the input documents for the translation job. *

* * @param inputDataConfig * Specifies the format and location of the input documents for the translation job. */ public void setInputDataConfig(InputDataConfig inputDataConfig) { this.inputDataConfig = inputDataConfig; } /** *

* Specifies the format and location of the input documents for the translation job. *

* * @return Specifies the format and location of the input documents for the translation job. */ public InputDataConfig getInputDataConfig() { return this.inputDataConfig; } /** *

* Specifies the format and location of the input documents for the translation job. *

* * @param inputDataConfig * Specifies the format and location of the input documents for the translation job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withInputDataConfig(InputDataConfig inputDataConfig) { setInputDataConfig(inputDataConfig); return this; } /** *

* Specifies the S3 folder to which your job output will be saved. *

* * @param outputDataConfig * Specifies the S3 folder to which your job output will be saved. */ public void setOutputDataConfig(OutputDataConfig outputDataConfig) { this.outputDataConfig = outputDataConfig; } /** *

* Specifies the S3 folder to which your job output will be saved. *

* * @return Specifies the S3 folder to which your job output will be saved. */ public OutputDataConfig getOutputDataConfig() { return this.outputDataConfig; } /** *

* Specifies the S3 folder to which your job output will be saved. *

* * @param outputDataConfig * Specifies the S3 folder to which your job output will be saved. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withOutputDataConfig(OutputDataConfig outputDataConfig) { setOutputDataConfig(outputDataConfig); return this; } /** *

* The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate * read access to your input data. For more information, see Identity and access * management . *

* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon * Translate read access to your input data. For more information, see Identity and * access management . */ public void setDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; } /** *

* The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate * read access to your input data. For more information, see Identity and access * management . *

* * @return The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon * Translate read access to your input data. For more information, see Identity and * access management . */ public String getDataAccessRoleArn() { return this.dataAccessRoleArn; } /** *

* The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate * read access to your input data. For more information, see Identity and access * management . *

* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon * Translate read access to your input data. For more information, see Identity and * access management . * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withDataAccessRoleArn(String dataAccessRoleArn) { setDataAccessRoleArn(dataAccessRoleArn); return this; } /** *

* The language code of the input language. Specify the language if all input documents share the same language. If * you don't know the language of the source files, or your input documents contains different source languages, * select auto. Amazon Translate auto detects the source language for each input document. For a list * of supported language codes, see Supported languages. *

* * @param sourceLanguageCode * The language code of the input language. Specify the language if all input documents share the same * language. If you don't know the language of the source files, or your input documents contains different * source languages, select auto. Amazon Translate auto detects the source language for each * input document. For a list of supported language codes, see Supported languages. */ public void setSourceLanguageCode(String sourceLanguageCode) { this.sourceLanguageCode = sourceLanguageCode; } /** *

* The language code of the input language. Specify the language if all input documents share the same language. If * you don't know the language of the source files, or your input documents contains different source languages, * select auto. Amazon Translate auto detects the source language for each input document. For a list * of supported language codes, see Supported languages. *

* * @return The language code of the input language. Specify the language if all input documents share the same * language. If you don't know the language of the source files, or your input documents contains different * source languages, select auto. Amazon Translate auto detects the source language for each * input document. For a list of supported language codes, see Supported languages. */ public String getSourceLanguageCode() { return this.sourceLanguageCode; } /** *

* The language code of the input language. Specify the language if all input documents share the same language. If * you don't know the language of the source files, or your input documents contains different source languages, * select auto. Amazon Translate auto detects the source language for each input document. For a list * of supported language codes, see Supported languages. *

* * @param sourceLanguageCode * The language code of the input language. Specify the language if all input documents share the same * language. If you don't know the language of the source files, or your input documents contains different * source languages, select auto. Amazon Translate auto detects the source language for each * input document. For a list of supported language codes, see Supported languages. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withSourceLanguageCode(String sourceLanguageCode) { setSourceLanguageCode(sourceLanguageCode); return this; } /** *

* The target languages of the translation job. Enter up to 10 language codes. Each input file is translated into * each target language. *

*

* Each language code is 2 or 5 characters long. For a list of language codes, see Supported languages. *

* * @return The target languages of the translation job. Enter up to 10 language codes. Each input file is translated * into each target language.

*

* Each language code is 2 or 5 characters long. For a list of language codes, see Supported languages. */ public java.util.List getTargetLanguageCodes() { return targetLanguageCodes; } /** *

* The target languages of the translation job. Enter up to 10 language codes. Each input file is translated into * each target language. *

*

* Each language code is 2 or 5 characters long. For a list of language codes, see Supported languages. *

* * @param targetLanguageCodes * The target languages of the translation job. Enter up to 10 language codes. Each input file is translated * into each target language.

*

* Each language code is 2 or 5 characters long. For a list of language codes, see Supported languages. */ public void setTargetLanguageCodes(java.util.Collection targetLanguageCodes) { if (targetLanguageCodes == null) { this.targetLanguageCodes = null; return; } this.targetLanguageCodes = new java.util.ArrayList(targetLanguageCodes); } /** *

* The target languages of the translation job. Enter up to 10 language codes. Each input file is translated into * each target language. *

*

* Each language code is 2 or 5 characters long. For a list of language codes, see Supported languages. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTargetLanguageCodes(java.util.Collection)} or {@link #withTargetLanguageCodes(java.util.Collection)} * if you want to override the existing values. *

* * @param targetLanguageCodes * The target languages of the translation job. Enter up to 10 language codes. Each input file is translated * into each target language.

*

* Each language code is 2 or 5 characters long. For a list of language codes, see Supported languages. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withTargetLanguageCodes(String... targetLanguageCodes) { if (this.targetLanguageCodes == null) { setTargetLanguageCodes(new java.util.ArrayList(targetLanguageCodes.length)); } for (String ele : targetLanguageCodes) { this.targetLanguageCodes.add(ele); } return this; } /** *

* The target languages of the translation job. Enter up to 10 language codes. Each input file is translated into * each target language. *

*

* Each language code is 2 or 5 characters long. For a list of language codes, see Supported languages. *

* * @param targetLanguageCodes * The target languages of the translation job. Enter up to 10 language codes. Each input file is translated * into each target language.

*

* Each language code is 2 or 5 characters long. For a list of language codes, see Supported languages. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withTargetLanguageCodes(java.util.Collection targetLanguageCodes) { setTargetLanguageCodes(targetLanguageCodes); return this; } /** *

* The name of a custom terminology resource to add to the translation job. This resource lists examples source * terms and the desired translation for each term. *

*

* This parameter accepts only one custom terminology resource. *

*

* If you specify multiple target languages for the job, translate uses the designated terminology for each * requested target language that has an entry for the source term in the terminology file. *

*

* For a list of available custom terminology resources, use the ListTerminologies operation. *

*

* For more information, see Custom terminology. *

* * @return The name of a custom terminology resource to add to the translation job. This resource lists examples * source terms and the desired translation for each term.

*

* This parameter accepts only one custom terminology resource. *

*

* If you specify multiple target languages for the job, translate uses the designated terminology for each * requested target language that has an entry for the source term in the terminology file. *

*

* For a list of available custom terminology resources, use the ListTerminologies operation. *

*

* For more information, see Custom * terminology. */ public java.util.List getTerminologyNames() { return terminologyNames; } /** *

* The name of a custom terminology resource to add to the translation job. This resource lists examples source * terms and the desired translation for each term. *

*

* This parameter accepts only one custom terminology resource. *

*

* If you specify multiple target languages for the job, translate uses the designated terminology for each * requested target language that has an entry for the source term in the terminology file. *

*

* For a list of available custom terminology resources, use the ListTerminologies operation. *

*

* For more information, see Custom terminology. *

* * @param terminologyNames * The name of a custom terminology resource to add to the translation job. This resource lists examples * source terms and the desired translation for each term.

*

* This parameter accepts only one custom terminology resource. *

*

* If you specify multiple target languages for the job, translate uses the designated terminology for each * requested target language that has an entry for the source term in the terminology file. *

*

* For a list of available custom terminology resources, use the ListTerminologies operation. *

*

* For more information, see Custom terminology. */ public void setTerminologyNames(java.util.Collection terminologyNames) { if (terminologyNames == null) { this.terminologyNames = null; return; } this.terminologyNames = new java.util.ArrayList(terminologyNames); } /** *

* The name of a custom terminology resource to add to the translation job. This resource lists examples source * terms and the desired translation for each term. *

*

* This parameter accepts only one custom terminology resource. *

*

* If you specify multiple target languages for the job, translate uses the designated terminology for each * requested target language that has an entry for the source term in the terminology file. *

*

* For a list of available custom terminology resources, use the ListTerminologies operation. *

*

* For more information, see Custom terminology. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTerminologyNames(java.util.Collection)} or {@link #withTerminologyNames(java.util.Collection)} if you * want to override the existing values. *

* * @param terminologyNames * The name of a custom terminology resource to add to the translation job. This resource lists examples * source terms and the desired translation for each term.

*

* This parameter accepts only one custom terminology resource. *

*

* If you specify multiple target languages for the job, translate uses the designated terminology for each * requested target language that has an entry for the source term in the terminology file. *

*

* For a list of available custom terminology resources, use the ListTerminologies operation. *

*

* For more information, see Custom terminology. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withTerminologyNames(String... terminologyNames) { if (this.terminologyNames == null) { setTerminologyNames(new java.util.ArrayList(terminologyNames.length)); } for (String ele : terminologyNames) { this.terminologyNames.add(ele); } return this; } /** *

* The name of a custom terminology resource to add to the translation job. This resource lists examples source * terms and the desired translation for each term. *

*

* This parameter accepts only one custom terminology resource. *

*

* If you specify multiple target languages for the job, translate uses the designated terminology for each * requested target language that has an entry for the source term in the terminology file. *

*

* For a list of available custom terminology resources, use the ListTerminologies operation. *

*

* For more information, see Custom terminology. *

* * @param terminologyNames * The name of a custom terminology resource to add to the translation job. This resource lists examples * source terms and the desired translation for each term.

*

* This parameter accepts only one custom terminology resource. *

*

* If you specify multiple target languages for the job, translate uses the designated terminology for each * requested target language that has an entry for the source term in the terminology file. *

*

* For a list of available custom terminology resources, use the ListTerminologies operation. *

*

* For more information, see Custom terminology. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withTerminologyNames(java.util.Collection terminologyNames) { setTerminologyNames(terminologyNames); return this; } /** *

* The name of a parallel data resource to add to the translation job. This resource consists of examples that show * how you want segments of text to be translated. If you specify multiple target languages for the job, the * parallel data file must include translations for all the target languages. *

*

* When you add parallel data to a translation job, you create an Active Custom Translation job. *

*

* This parameter accepts only one parallel data resource. *

* *

* Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. For more * information, see Amazon Translate pricing. *

*
*

* For a list of available parallel data resources, use the ListParallelData operation. *

*

* For more information, see Customizing * your translations with parallel data. *

* * @return The name of a parallel data resource to add to the translation job. This resource consists of examples * that show how you want segments of text to be translated. If you specify multiple target languages for * the job, the parallel data file must include translations for all the target languages.

*

* When you add parallel data to a translation job, you create an Active Custom Translation job. *

*

* This parameter accepts only one parallel data resource. *

* *

* Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. * For more information, see Amazon Translate * pricing. *

*
*

* For a list of available parallel data resources, use the ListParallelData operation. *

*

* For more information, see * Customizing your translations with parallel data. */ public java.util.List getParallelDataNames() { return parallelDataNames; } /** *

* The name of a parallel data resource to add to the translation job. This resource consists of examples that show * how you want segments of text to be translated. If you specify multiple target languages for the job, the * parallel data file must include translations for all the target languages. *

*

* When you add parallel data to a translation job, you create an Active Custom Translation job. *

*

* This parameter accepts only one parallel data resource. *

* *

* Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. For more * information, see Amazon Translate pricing. *

*
*

* For a list of available parallel data resources, use the ListParallelData operation. *

*

* For more information, see Customizing * your translations with parallel data. *

* * @param parallelDataNames * The name of a parallel data resource to add to the translation job. This resource consists of examples * that show how you want segments of text to be translated. If you specify multiple target languages for the * job, the parallel data file must include translations for all the target languages.

*

* When you add parallel data to a translation job, you create an Active Custom Translation job. *

*

* This parameter accepts only one parallel data resource. *

* *

* Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. * For more information, see Amazon Translate pricing. *

*
*

* For a list of available parallel data resources, use the ListParallelData operation. *

*

* For more information, see * Customizing your translations with parallel data. */ public void setParallelDataNames(java.util.Collection parallelDataNames) { if (parallelDataNames == null) { this.parallelDataNames = null; return; } this.parallelDataNames = new java.util.ArrayList(parallelDataNames); } /** *

* The name of a parallel data resource to add to the translation job. This resource consists of examples that show * how you want segments of text to be translated. If you specify multiple target languages for the job, the * parallel data file must include translations for all the target languages. *

*

* When you add parallel data to a translation job, you create an Active Custom Translation job. *

*

* This parameter accepts only one parallel data resource. *

* *

* Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. For more * information, see Amazon Translate pricing. *

*
*

* For a list of available parallel data resources, use the ListParallelData operation. *

*

* For more information, see Customizing * your translations with parallel data. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setParallelDataNames(java.util.Collection)} or {@link #withParallelDataNames(java.util.Collection)} if * you want to override the existing values. *

* * @param parallelDataNames * The name of a parallel data resource to add to the translation job. This resource consists of examples * that show how you want segments of text to be translated. If you specify multiple target languages for the * job, the parallel data file must include translations for all the target languages.

*

* When you add parallel data to a translation job, you create an Active Custom Translation job. *

*

* This parameter accepts only one parallel data resource. *

* *

* Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. * For more information, see Amazon Translate pricing. *

*
*

* For a list of available parallel data resources, use the ListParallelData operation. *

*

* For more information, see * Customizing your translations with parallel data. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withParallelDataNames(String... parallelDataNames) { if (this.parallelDataNames == null) { setParallelDataNames(new java.util.ArrayList(parallelDataNames.length)); } for (String ele : parallelDataNames) { this.parallelDataNames.add(ele); } return this; } /** *

* The name of a parallel data resource to add to the translation job. This resource consists of examples that show * how you want segments of text to be translated. If you specify multiple target languages for the job, the * parallel data file must include translations for all the target languages. *

*

* When you add parallel data to a translation job, you create an Active Custom Translation job. *

*

* This parameter accepts only one parallel data resource. *

* *

* Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. For more * information, see Amazon Translate pricing. *

*
*

* For a list of available parallel data resources, use the ListParallelData operation. *

*

* For more information, see Customizing * your translations with parallel data. *

* * @param parallelDataNames * The name of a parallel data resource to add to the translation job. This resource consists of examples * that show how you want segments of text to be translated. If you specify multiple target languages for the * job, the parallel data file must include translations for all the target languages.

*

* When you add parallel data to a translation job, you create an Active Custom Translation job. *

*

* This parameter accepts only one parallel data resource. *

* *

* Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. * For more information, see Amazon Translate pricing. *

*
*

* For a list of available parallel data resources, use the ListParallelData operation. *

*

* For more information, see * Customizing your translations with parallel data. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withParallelDataNames(java.util.Collection parallelDataNames) { setParallelDataNames(parallelDataNames); return this; } /** *

* A unique identifier for the request. This token is generated for you when using the Amazon Translate SDK. *

* * @param clientToken * A unique identifier for the request. This token is generated for you when using the Amazon Translate SDK. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* A unique identifier for the request. This token is generated for you when using the Amazon Translate SDK. *

* * @return A unique identifier for the request. This token is generated for you when using the Amazon Translate SDK. */ public String getClientToken() { return this.clientToken; } /** *

* A unique identifier for the request. This token is generated for you when using the Amazon Translate SDK. *

* * @param clientToken * A unique identifier for the request. This token is generated for you when using the Amazon Translate SDK. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* Settings to configure your translation output. You can configure the following options: *

*
    *
  • *

    * Brevity: not supported. *

    *
  • *
  • *

    * Formality: sets the formality level of the output text. *

    *
  • *
  • *

    * Profanity: masks profane words and phrases in your translation output. *

    *
  • *
* * @param settings * Settings to configure your translation output. You can configure the following options:

*
    *
  • *

    * Brevity: not supported. *

    *
  • *
  • *

    * Formality: sets the formality level of the output text. *

    *
  • *
  • *

    * Profanity: masks profane words and phrases in your translation output. *

    *
  • */ public void setSettings(TranslationSettings settings) { this.settings = settings; } /** *

    * Settings to configure your translation output. You can configure the following options: *

    *
      *
    • *

      * Brevity: not supported. *

      *
    • *
    • *

      * Formality: sets the formality level of the output text. *

      *
    • *
    • *

      * Profanity: masks profane words and phrases in your translation output. *

      *
    • *
    * * @return Settings to configure your translation output. You can configure the following options:

    *
      *
    • *

      * Brevity: not supported. *

      *
    • *
    • *

      * Formality: sets the formality level of the output text. *

      *
    • *
    • *

      * Profanity: masks profane words and phrases in your translation output. *

      *
    • */ public TranslationSettings getSettings() { return this.settings; } /** *

      * Settings to configure your translation output. You can configure the following options: *

      *
        *
      • *

        * Brevity: not supported. *

        *
      • *
      • *

        * Formality: sets the formality level of the output text. *

        *
      • *
      • *

        * Profanity: masks profane words and phrases in your translation output. *

        *
      • *
      * * @param settings * Settings to configure your translation output. You can configure the following options:

      *
        *
      • *

        * Brevity: not supported. *

        *
      • *
      • *

        * Formality: sets the formality level of the output text. *

        *
      • *
      • *

        * Profanity: masks profane words and phrases in your translation output. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public StartTextTranslationJobRequest withSettings(TranslationSettings settings) { setSettings(settings); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getJobName() != null) sb.append("JobName: ").append(getJobName()).append(","); if (getInputDataConfig() != null) sb.append("InputDataConfig: ").append(getInputDataConfig()).append(","); if (getOutputDataConfig() != null) sb.append("OutputDataConfig: ").append(getOutputDataConfig()).append(","); if (getDataAccessRoleArn() != null) sb.append("DataAccessRoleArn: ").append(getDataAccessRoleArn()).append(","); if (getSourceLanguageCode() != null) sb.append("SourceLanguageCode: ").append(getSourceLanguageCode()).append(","); if (getTargetLanguageCodes() != null) sb.append("TargetLanguageCodes: ").append(getTargetLanguageCodes()).append(","); if (getTerminologyNames() != null) sb.append("TerminologyNames: ").append(getTerminologyNames()).append(","); if (getParallelDataNames() != null) sb.append("ParallelDataNames: ").append(getParallelDataNames()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getSettings() != null) sb.append("Settings: ").append(getSettings()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartTextTranslationJobRequest == false) return false; StartTextTranslationJobRequest other = (StartTextTranslationJobRequest) obj; if (other.getJobName() == null ^ this.getJobName() == null) return false; if (other.getJobName() != null && other.getJobName().equals(this.getJobName()) == false) return false; if (other.getInputDataConfig() == null ^ this.getInputDataConfig() == null) return false; if (other.getInputDataConfig() != null && other.getInputDataConfig().equals(this.getInputDataConfig()) == false) return false; if (other.getOutputDataConfig() == null ^ this.getOutputDataConfig() == null) return false; if (other.getOutputDataConfig() != null && other.getOutputDataConfig().equals(this.getOutputDataConfig()) == false) return false; if (other.getDataAccessRoleArn() == null ^ this.getDataAccessRoleArn() == null) return false; if (other.getDataAccessRoleArn() != null && other.getDataAccessRoleArn().equals(this.getDataAccessRoleArn()) == false) return false; if (other.getSourceLanguageCode() == null ^ this.getSourceLanguageCode() == null) return false; if (other.getSourceLanguageCode() != null && other.getSourceLanguageCode().equals(this.getSourceLanguageCode()) == false) return false; if (other.getTargetLanguageCodes() == null ^ this.getTargetLanguageCodes() == null) return false; if (other.getTargetLanguageCodes() != null && other.getTargetLanguageCodes().equals(this.getTargetLanguageCodes()) == false) return false; if (other.getTerminologyNames() == null ^ this.getTerminologyNames() == null) return false; if (other.getTerminologyNames() != null && other.getTerminologyNames().equals(this.getTerminologyNames()) == false) return false; if (other.getParallelDataNames() == null ^ this.getParallelDataNames() == null) return false; if (other.getParallelDataNames() != null && other.getParallelDataNames().equals(this.getParallelDataNames()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getSettings() == null ^ this.getSettings() == null) return false; if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode()); hashCode = prime * hashCode + ((getInputDataConfig() == null) ? 0 : getInputDataConfig().hashCode()); hashCode = prime * hashCode + ((getOutputDataConfig() == null) ? 0 : getOutputDataConfig().hashCode()); hashCode = prime * hashCode + ((getDataAccessRoleArn() == null) ? 0 : getDataAccessRoleArn().hashCode()); hashCode = prime * hashCode + ((getSourceLanguageCode() == null) ? 0 : getSourceLanguageCode().hashCode()); hashCode = prime * hashCode + ((getTargetLanguageCodes() == null) ? 0 : getTargetLanguageCodes().hashCode()); hashCode = prime * hashCode + ((getTerminologyNames() == null) ? 0 : getTerminologyNames().hashCode()); hashCode = prime * hashCode + ((getParallelDataNames() == null) ? 0 : getParallelDataNames().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); return hashCode; } @Override public StartTextTranslationJobRequest clone() { return (StartTextTranslationJobRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy