/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { class UpdateJobStatusResult { public: AWS_S3CONTROL_API UpdateJobStatusResult(); AWS_S3CONTROL_API UpdateJobStatusResult(const Aws::AmazonWebServiceResult& result); AWS_S3CONTROL_API UpdateJobStatusResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID for the job whose status was updated.

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

The ID for the job whose status was updated.

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

The ID for the job whose status was updated.

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

The ID for the job whose status was updated.

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

The ID for the job whose status was updated.

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

The ID for the job whose status was updated.

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

The ID for the job whose status was updated.

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

The current status for the specified job.

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

The current status for the specified job.

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

The current status for the specified job.

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

The current status for the specified job.

*/ inline UpdateJobStatusResult& WithStatus(const JobStatus& value) { SetStatus(value); return *this;} /** *

The current status for the specified job.

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

The reason that the specified job's status was updated.

*/ inline const Aws::String& GetStatusUpdateReason() const{ return m_statusUpdateReason; } /** *

The reason that the specified job's status was updated.

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

The reason that the specified job's status was updated.

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

The reason that the specified job's status was updated.

*/ inline void SetStatusUpdateReason(const char* value) { m_statusUpdateReason.assign(value); } /** *

The reason that the specified job's status was updated.

*/ inline UpdateJobStatusResult& WithStatusUpdateReason(const Aws::String& value) { SetStatusUpdateReason(value); return *this;} /** *

The reason that the specified job's status was updated.

*/ inline UpdateJobStatusResult& WithStatusUpdateReason(Aws::String&& value) { SetStatusUpdateReason(std::move(value)); return *this;} /** *

The reason that the specified job's status was updated.

*/ inline UpdateJobStatusResult& WithStatusUpdateReason(const char* value) { SetStatusUpdateReason(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 UpdateJobStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateJobStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateJobStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_jobId; JobStatus m_status; Aws::String m_statusUpdateReason; Aws::String m_requestId; }; } // namespace Model } // namespace S3Control } // namespace Aws