/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Translate { namespace Model { class StartTextTranslationJobResult { public: AWS_TRANSLATE_API StartTextTranslationJobResult(); AWS_TRANSLATE_API StartTextTranslationJobResult(const Aws::AmazonWebServiceResult& result); AWS_TRANSLATE_API StartTextTranslationJobResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier generated for the job. To get the status of a job, use this ID * with the DescribeTextTranslationJob operation.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The identifier generated for the job. To get the status of a job, use this ID * with the DescribeTextTranslationJob operation.

*/ inline void SetJobId(const Aws::String& value) { m_jobId = value; } /** *

The identifier generated for the job. To get the status of a job, use this ID * with the DescribeTextTranslationJob operation.

*/ inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); } /** *

The identifier generated for the job. To get the status of a job, use this ID * with the DescribeTextTranslationJob operation.

*/ inline void SetJobId(const char* value) { m_jobId.assign(value); } /** *

The identifier generated for the job. To get the status of a job, use this ID * with the DescribeTextTranslationJob operation.

*/ inline StartTextTranslationJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The identifier generated for the job. To get the status of a job, use this ID * with the DescribeTextTranslationJob operation.

*/ inline StartTextTranslationJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The identifier generated for the job. To get the status of a job, use this ID * with the DescribeTextTranslationJob operation.

*/ inline StartTextTranslationJobResult& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The status of the job. Possible values include:

  • * SUBMITTED - The job has been received and is queued for * processing.

  • IN_PROGRESS - Amazon Translate is * processing the job.

  • COMPLETED - The job was * successfully completed and the output is available.

  • * COMPLETED_WITH_ERROR - The job was completed with errors. The * errors can be analyzed in the job's output.

  • * FAILED - The job did not complete. To get details, use the * DescribeTextTranslationJob operation.

  • * STOP_REQUESTED - The user who started the job has requested that it * be stopped.

  • STOPPED - The job has been * stopped.

*/ inline const JobStatus& GetJobStatus() const{ return m_jobStatus; } /** *

The status of the job. Possible values include:

  • * SUBMITTED - The job has been received and is queued for * processing.

  • IN_PROGRESS - Amazon Translate is * processing the job.

  • COMPLETED - The job was * successfully completed and the output is available.

  • * COMPLETED_WITH_ERROR - The job was completed with errors. The * errors can be analyzed in the job's output.

  • * FAILED - The job did not complete. To get details, use the * DescribeTextTranslationJob operation.

  • * STOP_REQUESTED - The user who started the job has requested that it * be stopped.

  • STOPPED - The job has been * stopped.

*/ inline void SetJobStatus(const JobStatus& value) { m_jobStatus = value; } /** *

The status of the job. Possible values include:

  • * SUBMITTED - The job has been received and is queued for * processing.

  • IN_PROGRESS - Amazon Translate is * processing the job.

  • COMPLETED - The job was * successfully completed and the output is available.

  • * COMPLETED_WITH_ERROR - The job was completed with errors. The * errors can be analyzed in the job's output.

  • * FAILED - The job did not complete. To get details, use the * DescribeTextTranslationJob operation.

  • * STOP_REQUESTED - The user who started the job has requested that it * be stopped.

  • STOPPED - The job has been * stopped.

*/ inline void SetJobStatus(JobStatus&& value) { m_jobStatus = std::move(value); } /** *

The status of the job. Possible values include:

  • * SUBMITTED - The job has been received and is queued for * processing.

  • IN_PROGRESS - Amazon Translate is * processing the job.

  • COMPLETED - The job was * successfully completed and the output is available.

  • * COMPLETED_WITH_ERROR - The job was completed with errors. The * errors can be analyzed in the job's output.

  • * FAILED - The job did not complete. To get details, use the * DescribeTextTranslationJob operation.

  • * STOP_REQUESTED - The user who started the job has requested that it * be stopped.

  • STOPPED - The job has been * stopped.

*/ inline StartTextTranslationJobResult& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;} /** *

The status of the job. Possible values include:

  • * SUBMITTED - The job has been received and is queued for * processing.

  • IN_PROGRESS - Amazon Translate is * processing the job.

  • COMPLETED - The job was * successfully completed and the output is available.

  • * COMPLETED_WITH_ERROR - The job was completed with errors. The * errors can be analyzed in the job's output.

  • * FAILED - The job did not complete. To get details, use the * DescribeTextTranslationJob operation.

  • * STOP_REQUESTED - The user who started the job has requested that it * be stopped.

  • STOPPED - The job has been * stopped.

*/ inline StartTextTranslationJobResult& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline StartTextTranslationJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StartTextTranslationJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StartTextTranslationJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_jobId; JobStatus m_jobStatus; Aws::String m_requestId; }; } // namespace Model } // namespace Translate } // namespace Aws