/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about a translation job.See Also:
AWS
* API Reference
The ID of the translation job.
*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *The ID of the translation job.
*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *The ID of the translation job.
*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *The ID of the translation job.
*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *The ID of the translation job.
*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *The ID of the translation job.
*/ inline TextTranslationJobProperties& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *The ID of the translation job.
*/ inline TextTranslationJobProperties& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *The ID of the translation job.
*/ inline TextTranslationJobProperties& WithJobId(const char* value) { SetJobId(value); return *this;} /** *The user-defined name of the translation job.
*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *The user-defined name of the translation job.
*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *The user-defined name of the translation job.
*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *The user-defined name of the translation job.
*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *The user-defined name of the translation job.
*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *The user-defined name of the translation job.
*/ inline TextTranslationJobProperties& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *The user-defined name of the translation job.
*/ inline TextTranslationJobProperties& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *The user-defined name of the translation job.
*/ inline TextTranslationJobProperties& WithJobName(const char* value) { SetJobName(value); return *this;} /** *The status of the translation job.
*/ inline const JobStatus& GetJobStatus() const{ return m_jobStatus; } /** *The status of the translation job.
*/ inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; } /** *The status of the translation job.
*/ inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; } /** *The status of the translation job.
*/ inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); } /** *The status of the translation job.
*/ inline TextTranslationJobProperties& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;} /** *The status of the translation job.
*/ inline TextTranslationJobProperties& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;} /** *The number of documents successfully and unsuccessfully processed during the * translation job.
*/ inline const JobDetails& GetJobDetails() const{ return m_jobDetails; } /** *The number of documents successfully and unsuccessfully processed during the * translation job.
*/ inline bool JobDetailsHasBeenSet() const { return m_jobDetailsHasBeenSet; } /** *The number of documents successfully and unsuccessfully processed during the * translation job.
*/ inline void SetJobDetails(const JobDetails& value) { m_jobDetailsHasBeenSet = true; m_jobDetails = value; } /** *The number of documents successfully and unsuccessfully processed during the * translation job.
*/ inline void SetJobDetails(JobDetails&& value) { m_jobDetailsHasBeenSet = true; m_jobDetails = std::move(value); } /** *The number of documents successfully and unsuccessfully processed during the * translation job.
*/ inline TextTranslationJobProperties& WithJobDetails(const JobDetails& value) { SetJobDetails(value); return *this;} /** *The number of documents successfully and unsuccessfully processed during the * translation job.
*/ inline TextTranslationJobProperties& WithJobDetails(JobDetails&& value) { SetJobDetails(std::move(value)); return *this;} /** *The language code of the language of the source text. The language must be a * language supported by Amazon Translate.
*/ inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; } /** *The language code of the language of the source text. The language must be a * language supported by Amazon Translate.
*/ inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; } /** *The language code of the language of the source text. The language must be a * language supported by Amazon Translate.
*/ inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; } /** *The language code of the language of the source text. The language must be a * language supported by Amazon Translate.
*/ inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); } /** *The language code of the language of the source text. The language must be a * language supported by Amazon Translate.
*/ inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); } /** *The language code of the language of the source text. The language must be a * language supported by Amazon Translate.
*/ inline TextTranslationJobProperties& WithSourceLanguageCode(const Aws::String& value) { SetSourceLanguageCode(value); return *this;} /** *The language code of the language of the source text. The language must be a * language supported by Amazon Translate.
*/ inline TextTranslationJobProperties& WithSourceLanguageCode(Aws::String&& value) { SetSourceLanguageCode(std::move(value)); return *this;} /** *The language code of the language of the source text. The language must be a * language supported by Amazon Translate.
*/ inline TextTranslationJobProperties& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;} /** *The language code of the language of the target text. The language must be a * language supported by Amazon Translate.
*/ inline const Aws::VectorThe language code of the language of the target text. The language must be a * language supported by Amazon Translate.
*/ inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; } /** *The language code of the language of the target text. The language must be a * language supported by Amazon Translate.
*/ inline void SetTargetLanguageCodes(const Aws::VectorThe language code of the language of the target text. The language must be a * language supported by Amazon Translate.
*/ inline void SetTargetLanguageCodes(Aws::VectorThe language code of the language of the target text. The language must be a * language supported by Amazon Translate.
*/ inline TextTranslationJobProperties& WithTargetLanguageCodes(const Aws::VectorThe language code of the language of the target text. The language must be a * language supported by Amazon Translate.
*/ inline TextTranslationJobProperties& WithTargetLanguageCodes(Aws::VectorThe language code of the language of the target text. The language must be a * language supported by Amazon Translate.
*/ inline TextTranslationJobProperties& AddTargetLanguageCodes(const Aws::String& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; } /** *The language code of the language of the target text. The language must be a * language supported by Amazon Translate.
*/ inline TextTranslationJobProperties& AddTargetLanguageCodes(Aws::String&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(std::move(value)); return *this; } /** *The language code of the language of the target text. The language must be a * language supported by Amazon Translate.
*/ inline TextTranslationJobProperties& AddTargetLanguageCodes(const char* value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; } /** *A list containing the names of the terminologies applied to a translation * job. Only one terminology can be applied per StartTextTranslationJob * request at this time.
*/ inline const Aws::VectorA list containing the names of the terminologies applied to a translation * job. Only one terminology can be applied per StartTextTranslationJob * request at this time.
*/ inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; } /** *A list containing the names of the terminologies applied to a translation * job. Only one terminology can be applied per StartTextTranslationJob * request at this time.
*/ inline void SetTerminologyNames(const Aws::VectorA list containing the names of the terminologies applied to a translation * job. Only one terminology can be applied per StartTextTranslationJob * request at this time.
*/ inline void SetTerminologyNames(Aws::VectorA list containing the names of the terminologies applied to a translation * job. Only one terminology can be applied per StartTextTranslationJob * request at this time.
*/ inline TextTranslationJobProperties& WithTerminologyNames(const Aws::VectorA list containing the names of the terminologies applied to a translation * job. Only one terminology can be applied per StartTextTranslationJob * request at this time.
*/ inline TextTranslationJobProperties& WithTerminologyNames(Aws::VectorA list containing the names of the terminologies applied to a translation * job. Only one terminology can be applied per StartTextTranslationJob * request at this time.
*/ inline TextTranslationJobProperties& AddTerminologyNames(const Aws::String& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; } /** *A list containing the names of the terminologies applied to a translation * job. Only one terminology can be applied per StartTextTranslationJob * request at this time.
*/ inline TextTranslationJobProperties& AddTerminologyNames(Aws::String&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(std::move(value)); return *this; } /** *A list containing the names of the terminologies applied to a translation * job. Only one terminology can be applied per StartTextTranslationJob * request at this time.
*/ inline TextTranslationJobProperties& AddTerminologyNames(const char* value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; } /** *A list containing the names of the parallel data resources applied to the * translation job.
*/ inline const Aws::VectorA list containing the names of the parallel data resources applied to the * translation job.
*/ inline bool ParallelDataNamesHasBeenSet() const { return m_parallelDataNamesHasBeenSet; } /** *A list containing the names of the parallel data resources applied to the * translation job.
*/ inline void SetParallelDataNames(const Aws::VectorA list containing the names of the parallel data resources applied to the * translation job.
*/ inline void SetParallelDataNames(Aws::VectorA list containing the names of the parallel data resources applied to the * translation job.
*/ inline TextTranslationJobProperties& WithParallelDataNames(const Aws::VectorA list containing the names of the parallel data resources applied to the * translation job.
*/ inline TextTranslationJobProperties& WithParallelDataNames(Aws::VectorA list containing the names of the parallel data resources applied to the * translation job.
*/ inline TextTranslationJobProperties& AddParallelDataNames(const Aws::String& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.push_back(value); return *this; } /** *A list containing the names of the parallel data resources applied to the * translation job.
*/ inline TextTranslationJobProperties& AddParallelDataNames(Aws::String&& value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.push_back(std::move(value)); return *this; } /** *A list containing the names of the parallel data resources applied to the * translation job.
*/ inline TextTranslationJobProperties& AddParallelDataNames(const char* value) { m_parallelDataNamesHasBeenSet = true; m_parallelDataNames.push_back(value); return *this; } /** *An explanation of any errors that may have occurred during the translation * job.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *An explanation of any errors that may have occurred during the translation * job.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *An explanation of any errors that may have occurred during the translation * job.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *An explanation of any errors that may have occurred during the translation * job.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *An explanation of any errors that may have occurred during the translation * job.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *An explanation of any errors that may have occurred during the translation * job.
*/ inline TextTranslationJobProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *An explanation of any errors that may have occurred during the translation * job.
*/ inline TextTranslationJobProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *An explanation of any errors that may have occurred during the translation * job.
*/ inline TextTranslationJobProperties& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The time at which the translation job was submitted.
*/ inline const Aws::Utils::DateTime& GetSubmittedTime() const{ return m_submittedTime; } /** *The time at which the translation job was submitted.
*/ inline bool SubmittedTimeHasBeenSet() const { return m_submittedTimeHasBeenSet; } /** *The time at which the translation job was submitted.
*/ inline void SetSubmittedTime(const Aws::Utils::DateTime& value) { m_submittedTimeHasBeenSet = true; m_submittedTime = value; } /** *The time at which the translation job was submitted.
*/ inline void SetSubmittedTime(Aws::Utils::DateTime&& value) { m_submittedTimeHasBeenSet = true; m_submittedTime = std::move(value); } /** *The time at which the translation job was submitted.
*/ inline TextTranslationJobProperties& WithSubmittedTime(const Aws::Utils::DateTime& value) { SetSubmittedTime(value); return *this;} /** *The time at which the translation job was submitted.
*/ inline TextTranslationJobProperties& WithSubmittedTime(Aws::Utils::DateTime&& value) { SetSubmittedTime(std::move(value)); return *this;} /** *The time at which the translation job ended.
*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *The time at which the translation job ended.
*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *The time at which the translation job ended.
*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *The time at which the translation job ended.
*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *The time at which the translation job ended.
*/ inline TextTranslationJobProperties& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The time at which the translation job ended.
*/ inline TextTranslationJobProperties& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *The input configuration properties that were specified when the job was * requested.
*/ inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; } /** *The input configuration properties that were specified when the job was * requested.
*/ inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; } /** *The input configuration properties that were specified when the job was * requested.
*/ inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; } /** *The input configuration properties that were specified when the job was * requested.
*/ inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); } /** *The input configuration properties that were specified when the job was * requested.
*/ inline TextTranslationJobProperties& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;} /** *The input configuration properties that were specified when the job was * requested.
*/ inline TextTranslationJobProperties& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;} /** *The output configuration properties that were specified when the job was * requested.
*/ inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; } /** *The output configuration properties that were specified when the job was * requested.
*/ inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; } /** *The output configuration properties that were specified when the job was * requested.
*/ inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; } /** *The output configuration properties that were specified when the job was * requested.
*/ inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); } /** *The output configuration properties that were specified when the job was * requested.
*/ inline TextTranslationJobProperties& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;} /** *The output configuration properties that were specified when the job was * requested.
*/ inline TextTranslationJobProperties& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) * role that granted Amazon Translate read access to the job's input data.
*/ inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; } /** *The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) * role that granted Amazon Translate read access to the job's input data.
*/ inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) * role that granted Amazon Translate read access to the job's input data.
*/ inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; } /** *The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) * role that granted Amazon Translate read access to the job's input data.
*/ inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); } /** *The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) * role that granted Amazon Translate read access to the job's input data.
*/ inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); } /** *The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) * role that granted Amazon Translate read access to the job's input data.
*/ inline TextTranslationJobProperties& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;} /** *The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) * role that granted Amazon Translate read access to the job's input data.
*/ inline TextTranslationJobProperties& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) * role that granted Amazon Translate read access to the job's input data.
*/ inline TextTranslationJobProperties& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;} /** *Settings that modify the translation output.
*/ inline const TranslationSettings& GetSettings() const{ return m_settings; } /** *Settings that modify the translation output.
*/ inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; } /** *Settings that modify the translation output.
*/ inline void SetSettings(const TranslationSettings& value) { m_settingsHasBeenSet = true; m_settings = value; } /** *Settings that modify the translation output.
*/ inline void SetSettings(TranslationSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); } /** *Settings that modify the translation output.
*/ inline TextTranslationJobProperties& WithSettings(const TranslationSettings& value) { SetSettings(value); return *this;} /** *Settings that modify the translation output.
*/ inline TextTranslationJobProperties& WithSettings(TranslationSettings&& value) { SetSettings(std::move(value)); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::String m_jobName; bool m_jobNameHasBeenSet = false; JobStatus m_jobStatus; bool m_jobStatusHasBeenSet = false; JobDetails m_jobDetails; bool m_jobDetailsHasBeenSet = false; Aws::String m_sourceLanguageCode; bool m_sourceLanguageCodeHasBeenSet = false; Aws::Vector