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

The name of the parallel data resource being updated.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the parallel data resource being updated.

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

The name of the parallel data resource being updated.

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

The name of the parallel data resource being updated.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the parallel data resource being updated.

*/ inline UpdateParallelDataResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the parallel data resource being updated.

*/ inline UpdateParallelDataResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the parallel data resource being updated.

*/ inline UpdateParallelDataResult& WithName(const char* value) { SetName(value); return *this;} /** *

The status of the parallel data resource that you are attempting to update. * Your update request is accepted only if this status is either * ACTIVE or FAILED.

*/ inline const ParallelDataStatus& GetStatus() const{ return m_status; } /** *

The status of the parallel data resource that you are attempting to update. * Your update request is accepted only if this status is either * ACTIVE or FAILED.

*/ inline void SetStatus(const ParallelDataStatus& value) { m_status = value; } /** *

The status of the parallel data resource that you are attempting to update. * Your update request is accepted only if this status is either * ACTIVE or FAILED.

*/ inline void SetStatus(ParallelDataStatus&& value) { m_status = std::move(value); } /** *

The status of the parallel data resource that you are attempting to update. * Your update request is accepted only if this status is either * ACTIVE or FAILED.

*/ inline UpdateParallelDataResult& WithStatus(const ParallelDataStatus& value) { SetStatus(value); return *this;} /** *

The status of the parallel data resource that you are attempting to update. * Your update request is accepted only if this status is either * ACTIVE or FAILED.

*/ inline UpdateParallelDataResult& WithStatus(ParallelDataStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the parallel data update attempt. When the updated parallel * data resource is ready for you to use, the status is ACTIVE.

*/ inline const ParallelDataStatus& GetLatestUpdateAttemptStatus() const{ return m_latestUpdateAttemptStatus; } /** *

The status of the parallel data update attempt. When the updated parallel * data resource is ready for you to use, the status is ACTIVE.

*/ inline void SetLatestUpdateAttemptStatus(const ParallelDataStatus& value) { m_latestUpdateAttemptStatus = value; } /** *

The status of the parallel data update attempt. When the updated parallel * data resource is ready for you to use, the status is ACTIVE.

*/ inline void SetLatestUpdateAttemptStatus(ParallelDataStatus&& value) { m_latestUpdateAttemptStatus = std::move(value); } /** *

The status of the parallel data update attempt. When the updated parallel * data resource is ready for you to use, the status is ACTIVE.

*/ inline UpdateParallelDataResult& WithLatestUpdateAttemptStatus(const ParallelDataStatus& value) { SetLatestUpdateAttemptStatus(value); return *this;} /** *

The status of the parallel data update attempt. When the updated parallel * data resource is ready for you to use, the status is ACTIVE.

*/ inline UpdateParallelDataResult& WithLatestUpdateAttemptStatus(ParallelDataStatus&& value) { SetLatestUpdateAttemptStatus(std::move(value)); return *this;} /** *

The time that the most recent update was attempted.

*/ inline const Aws::Utils::DateTime& GetLatestUpdateAttemptAt() const{ return m_latestUpdateAttemptAt; } /** *

The time that the most recent update was attempted.

*/ inline void SetLatestUpdateAttemptAt(const Aws::Utils::DateTime& value) { m_latestUpdateAttemptAt = value; } /** *

The time that the most recent update was attempted.

*/ inline void SetLatestUpdateAttemptAt(Aws::Utils::DateTime&& value) { m_latestUpdateAttemptAt = std::move(value); } /** *

The time that the most recent update was attempted.

*/ inline UpdateParallelDataResult& WithLatestUpdateAttemptAt(const Aws::Utils::DateTime& value) { SetLatestUpdateAttemptAt(value); return *this;} /** *

The time that the most recent update was attempted.

*/ inline UpdateParallelDataResult& WithLatestUpdateAttemptAt(Aws::Utils::DateTime&& value) { SetLatestUpdateAttemptAt(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 UpdateParallelDataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateParallelDataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateParallelDataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; ParallelDataStatus m_status; ParallelDataStatus m_latestUpdateAttemptStatus; Aws::Utils::DateTime m_latestUpdateAttemptAt; Aws::String m_requestId; }; } // namespace Model } // namespace Translate } // namespace Aws