/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Translate { namespace Model { /** */ class AWS_TRANSLATE_API StartTextTranslationJobRequest : public TranslateRequest { public: StartTextTranslationJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartTextTranslationJob"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the batch translation job to be performed.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The name of the batch translation job to be performed.

*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *

The name of the batch translation job to be performed.

*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *

The name of the batch translation job to be performed.

*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *

The name of the batch translation job to be performed.

*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *

The name of the batch translation job to be performed.

*/ inline StartTextTranslationJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The name of the batch translation job to be performed.

*/ inline StartTextTranslationJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

The name of the batch translation job to be performed.

*/ inline StartTextTranslationJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

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

*/ inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; } /** *

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

*/ inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; } /** *

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

*/ inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; } /** *

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

*/ inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); } /** *

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

*/ inline StartTextTranslationJobRequest& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;} /** *

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

*/ inline StartTextTranslationJobRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;} /** *

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

*/ inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; } /** *

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

*/ inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; } /** *

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

*/ inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; } /** *

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

*/ inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); } /** *

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

*/ inline StartTextTranslationJobRequest& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;} /** *

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

*/ inline StartTextTranslationJobRequest& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); 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 * nformation, see identity-and-access-management.

*/ inline const Aws::String& GetDataAccessRoleArn() const{ return m_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 * nformation, see identity-and-access-management.

*/ inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; } /** *

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 * nformation, see identity-and-access-management.

*/ 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 grants Amazon Translate read access to your input data. For more * nformation, see identity-and-access-management.

*/ 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 grants Amazon Translate read access to your input data. For more * nformation, see identity-and-access-management.

*/ 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 grants Amazon Translate read access to your input data. For more * nformation, see identity-and-access-management.

*/ inline StartTextTranslationJobRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); 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 * nformation, see identity-and-access-management.

*/ inline StartTextTranslationJobRequest& 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 grants Amazon Translate read access to your input data. For more * nformation, see identity-and-access-management.

*/ inline StartTextTranslationJobRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;} /** *

The language code of the input language. For a list of language codes, see * what-is-languages.

Amazon Translate does not automatically detect * a source language during batch translation jobs.

*/ inline const Aws::String& GetSourceLanguageCode() const{ return m_sourceLanguageCode; } /** *

The language code of the input language. For a list of language codes, see * what-is-languages.

Amazon Translate does not automatically detect * a source language during batch translation jobs.

*/ inline bool SourceLanguageCodeHasBeenSet() const { return m_sourceLanguageCodeHasBeenSet; } /** *

The language code of the input language. For a list of language codes, see * what-is-languages.

Amazon Translate does not automatically detect * a source language during batch translation jobs.

*/ inline void SetSourceLanguageCode(const Aws::String& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = value; } /** *

The language code of the input language. For a list of language codes, see * what-is-languages.

Amazon Translate does not automatically detect * a source language during batch translation jobs.

*/ inline void SetSourceLanguageCode(Aws::String&& value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode = std::move(value); } /** *

The language code of the input language. For a list of language codes, see * what-is-languages.

Amazon Translate does not automatically detect * a source language during batch translation jobs.

*/ inline void SetSourceLanguageCode(const char* value) { m_sourceLanguageCodeHasBeenSet = true; m_sourceLanguageCode.assign(value); } /** *

The language code of the input language. For a list of language codes, see * what-is-languages.

Amazon Translate does not automatically detect * a source language during batch translation jobs.

*/ inline StartTextTranslationJobRequest& WithSourceLanguageCode(const Aws::String& value) { SetSourceLanguageCode(value); return *this;} /** *

The language code of the input language. For a list of language codes, see * what-is-languages.

Amazon Translate does not automatically detect * a source language during batch translation jobs.

*/ inline StartTextTranslationJobRequest& WithSourceLanguageCode(Aws::String&& value) { SetSourceLanguageCode(std::move(value)); return *this;} /** *

The language code of the input language. For a list of language codes, see * what-is-languages.

Amazon Translate does not automatically detect * a source language during batch translation jobs.

*/ inline StartTextTranslationJobRequest& WithSourceLanguageCode(const char* value) { SetSourceLanguageCode(value); return *this;} /** *

The language code of the output language.

*/ inline const Aws::Vector& GetTargetLanguageCodes() const{ return m_targetLanguageCodes; } /** *

The language code of the output language.

*/ inline bool TargetLanguageCodesHasBeenSet() const { return m_targetLanguageCodesHasBeenSet; } /** *

The language code of the output language.

*/ inline void SetTargetLanguageCodes(const Aws::Vector& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = value; } /** *

The language code of the output language.

*/ inline void SetTargetLanguageCodes(Aws::Vector&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes = std::move(value); } /** *

The language code of the output language.

*/ inline StartTextTranslationJobRequest& WithTargetLanguageCodes(const Aws::Vector& value) { SetTargetLanguageCodes(value); return *this;} /** *

The language code of the output language.

*/ inline StartTextTranslationJobRequest& WithTargetLanguageCodes(Aws::Vector&& value) { SetTargetLanguageCodes(std::move(value)); return *this;} /** *

The language code of the output language.

*/ inline StartTextTranslationJobRequest& AddTargetLanguageCodes(const Aws::String& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; } /** *

The language code of the output language.

*/ inline StartTextTranslationJobRequest& AddTargetLanguageCodes(Aws::String&& value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(std::move(value)); return *this; } /** *

The language code of the output language.

*/ inline StartTextTranslationJobRequest& AddTargetLanguageCodes(const char* value) { m_targetLanguageCodesHasBeenSet = true; m_targetLanguageCodes.push_back(value); return *this; } /** *

The name of the terminology to use in the batch translation job. For a list * of available terminologies, use the ListTerminologies operation.

*/ inline const Aws::Vector& GetTerminologyNames() const{ return m_terminologyNames; } /** *

The name of the terminology to use in the batch translation job. For a list * of available terminologies, use the ListTerminologies operation.

*/ inline bool TerminologyNamesHasBeenSet() const { return m_terminologyNamesHasBeenSet; } /** *

The name of the terminology to use in the batch translation job. For a list * of available terminologies, use the ListTerminologies operation.

*/ inline void SetTerminologyNames(const Aws::Vector& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = value; } /** *

The name of the terminology to use in the batch translation job. For a list * of available terminologies, use the ListTerminologies operation.

*/ inline void SetTerminologyNames(Aws::Vector&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames = std::move(value); } /** *

The name of the terminology to use in the batch translation job. For a list * of available terminologies, use the ListTerminologies operation.

*/ inline StartTextTranslationJobRequest& WithTerminologyNames(const Aws::Vector& value) { SetTerminologyNames(value); return *this;} /** *

The name of the terminology to use in the batch translation job. For a list * of available terminologies, use the ListTerminologies operation.

*/ inline StartTextTranslationJobRequest& WithTerminologyNames(Aws::Vector&& value) { SetTerminologyNames(std::move(value)); return *this;} /** *

The name of the terminology to use in the batch translation job. For a list * of available terminologies, use the ListTerminologies operation.

*/ inline StartTextTranslationJobRequest& AddTerminologyNames(const Aws::String& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; } /** *

The name of the terminology to use in the batch translation job. For a list * of available terminologies, use the ListTerminologies operation.

*/ inline StartTextTranslationJobRequest& AddTerminologyNames(Aws::String&& value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(std::move(value)); return *this; } /** *

The name of the terminology to use in the batch translation job. For a list * of available terminologies, use the ListTerminologies operation.

*/ inline StartTextTranslationJobRequest& AddTerminologyNames(const char* value) { m_terminologyNamesHasBeenSet = true; m_terminologyNames.push_back(value); return *this; } /** *

The client token of the EC2 instance calling the request. This token is * auto-generated when using the Amazon Translate SDK. Otherwise, use the DescribeInstances * EC2 operation to retreive an instance's client token. For more information, see * Client * Tokens in the EC2 User Guide.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client token of the EC2 instance calling the request. This token is * auto-generated when using the Amazon Translate SDK. Otherwise, use the DescribeInstances * EC2 operation to retreive an instance's client token. For more information, see * Client * Tokens in the EC2 User Guide.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client token of the EC2 instance calling the request. This token is * auto-generated when using the Amazon Translate SDK. Otherwise, use the DescribeInstances * EC2 operation to retreive an instance's client token. For more information, see * Client * Tokens in the EC2 User Guide.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client token of the EC2 instance calling the request. This token is * auto-generated when using the Amazon Translate SDK. Otherwise, use the DescribeInstances * EC2 operation to retreive an instance's client token. For more information, see * Client * Tokens in the EC2 User Guide.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client token of the EC2 instance calling the request. This token is * auto-generated when using the Amazon Translate SDK. Otherwise, use the DescribeInstances * EC2 operation to retreive an instance's client token. For more information, see * Client * Tokens in the EC2 User Guide.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client token of the EC2 instance calling the request. This token is * auto-generated when using the Amazon Translate SDK. Otherwise, use the DescribeInstances * EC2 operation to retreive an instance's client token. For more information, see * Client * Tokens in the EC2 User Guide.

*/ inline StartTextTranslationJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client token of the EC2 instance calling the request. This token is * auto-generated when using the Amazon Translate SDK. Otherwise, use the DescribeInstances * EC2 operation to retreive an instance's client token. For more information, see * Client * Tokens in the EC2 User Guide.

*/ inline StartTextTranslationJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client token of the EC2 instance calling the request. This token is * auto-generated when using the Amazon Translate SDK. Otherwise, use the DescribeInstances * EC2 operation to retreive an instance's client token. For more information, see * Client * Tokens in the EC2 User Guide.

*/ inline StartTextTranslationJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_jobName; bool m_jobNameHasBeenSet; InputDataConfig m_inputDataConfig; bool m_inputDataConfigHasBeenSet; OutputDataConfig m_outputDataConfig; bool m_outputDataConfigHasBeenSet; Aws::String m_dataAccessRoleArn; bool m_dataAccessRoleArnHasBeenSet; Aws::String m_sourceLanguageCode; bool m_sourceLanguageCodeHasBeenSet; Aws::Vector m_targetLanguageCodes; bool m_targetLanguageCodesHasBeenSet; Aws::Vector m_terminologyNames; bool m_terminologyNamesHasBeenSet; Aws::String m_clientToken; bool m_clientTokenHasBeenSet; }; } // namespace Model } // namespace Translate } // namespace Aws