/** * 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 #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DataExchange { namespace Model { class GetJobResult { public: AWS_DATAEXCHANGE_API GetJobResult(); AWS_DATAEXCHANGE_API GetJobResult(const Aws::AmazonWebServiceResult& result); AWS_DATAEXCHANGE_API GetJobResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN for the job.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN for the job.

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

The ARN for the job.

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

The ARN for the job.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The ARN for the job.

*/ inline GetJobResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN for the job.

*/ inline GetJobResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN for the job.

*/ inline GetJobResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The date and time that the job was created, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time that the job was created, in ISO 8601 format.

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

The date and time that the job was created, in ISO 8601 format.

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

The date and time that the job was created, in ISO 8601 format.

*/ inline GetJobResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time that the job was created, in ISO 8601 format.

*/ inline GetJobResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

Details about the job.

*/ inline const ResponseDetails& GetDetails() const{ return m_details; } /** *

Details about the job.

*/ inline void SetDetails(const ResponseDetails& value) { m_details = value; } /** *

Details about the job.

*/ inline void SetDetails(ResponseDetails&& value) { m_details = std::move(value); } /** *

Details about the job.

*/ inline GetJobResult& WithDetails(const ResponseDetails& value) { SetDetails(value); return *this;} /** *

Details about the job.

*/ inline GetJobResult& WithDetails(ResponseDetails&& value) { SetDetails(std::move(value)); return *this;} /** *

The errors associated with jobs.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

The errors associated with jobs.

*/ inline void SetErrors(const Aws::Vector& value) { m_errors = value; } /** *

The errors associated with jobs.

*/ inline void SetErrors(Aws::Vector&& value) { m_errors = std::move(value); } /** *

The errors associated with jobs.

*/ inline GetJobResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

The errors associated with jobs.

*/ inline GetJobResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

The errors associated with jobs.

*/ inline GetJobResult& AddErrors(const JobError& value) { m_errors.push_back(value); return *this; } /** *

The errors associated with jobs.

*/ inline GetJobResult& AddErrors(JobError&& value) { m_errors.push_back(std::move(value)); return *this; } /** *

The unique identifier for the job.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the job.

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

The unique identifier for the job.

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

The unique identifier for the job.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The unique identifier for the job.

*/ inline GetJobResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the job.

*/ inline GetJobResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the job.

*/ inline GetJobResult& WithId(const char* value) { SetId(value); return *this;} /** *

The state of the job.

*/ inline const State& GetState() const{ return m_state; } /** *

The state of the job.

*/ inline void SetState(const State& value) { m_state = value; } /** *

The state of the job.

*/ inline void SetState(State&& value) { m_state = std::move(value); } /** *

The state of the job.

*/ inline GetJobResult& WithState(const State& value) { SetState(value); return *this;} /** *

The state of the job.

*/ inline GetJobResult& WithState(State&& value) { SetState(std::move(value)); return *this;} /** *

The job type.

*/ inline const Type& GetType() const{ return m_type; } /** *

The job type.

*/ inline void SetType(const Type& value) { m_type = value; } /** *

The job type.

*/ inline void SetType(Type&& value) { m_type = std::move(value); } /** *

The job type.

*/ inline GetJobResult& WithType(const Type& value) { SetType(value); return *this;} /** *

The job type.

*/ inline GetJobResult& WithType(Type&& value) { SetType(std::move(value)); return *this;} /** *

The date and time that the job was last updated, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The date and time that the job was last updated, in ISO 8601 format.

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

The date and time that the job was last updated, in ISO 8601 format.

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

The date and time that the job was last updated, in ISO 8601 format.

*/ inline GetJobResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The date and time that the job was last updated, in ISO 8601 format.

*/ inline GetJobResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(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 GetJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::Utils::DateTime m_createdAt; ResponseDetails m_details; Aws::Vector m_errors; Aws::String m_id; State m_state; Type m_type; Aws::Utils::DateTime m_updatedAt; Aws::String m_requestId; }; } // namespace Model } // namespace DataExchange } // namespace Aws