/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DataExchange { namespace Model { /** *

AWS Data Exchange Jobs are asynchronous import or export operations used to * create or copy assets. A data set owner can both import and export as they see * fit. Someone with an entitlement to a data set can only export. Jobs are deleted * 90 days after they are created.

See Also:

AWS * API Reference

*/ class JobEntry { public: AWS_DATAEXCHANGE_API JobEntry(); AWS_DATAEXCHANGE_API JobEntry(Aws::Utils::Json::JsonView jsonValue); AWS_DATAEXCHANGE_API JobEntry& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN for the job.

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

The ARN for the job.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN for the job.

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

The ARN for the job.

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

The ARN for the job.

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

The ARN for the job.

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

The ARN for the job.

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

The ARN for the job.

*/ inline JobEntry& 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 bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

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

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

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

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

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

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

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

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

Details of the operation to be performed by the job, such as export * destination details or import source details.

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

Details of the operation to be performed by the job, such as export * destination details or import source details.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

Details of the operation to be performed by the job, such as export * destination details or import source details.

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

Details of the operation to be performed by the job, such as export * destination details or import source details.

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

Details of the operation to be performed by the job, such as export * destination details or import source details.

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

Details of the operation to be performed by the job, such as export * destination details or import source details.

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

Errors for jobs.

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

Errors for jobs.

*/ inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; } /** *

Errors for jobs.

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

Errors for jobs.

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

Errors for jobs.

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

Errors for jobs.

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

Errors for jobs.

*/ inline JobEntry& AddErrors(const JobError& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; } /** *

Errors for jobs.

*/ inline JobEntry& AddErrors(JobError&& value) { m_errorsHasBeenSet = true; 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 bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the job.

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

The unique identifier for the job.

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

The unique identifier for the job.

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

The unique identifier for the job.

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

The unique identifier for the job.

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

The unique identifier for the job.

*/ inline JobEntry& 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 bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the job.

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

The state of the job.

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

The state of the job.

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

The state of the job.

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

The job type.

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

The job type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The job type.

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

The job type.

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

The job type.

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

The job type.

*/ inline JobEntry& 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 bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

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

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; 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_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

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

*/ inline JobEntry& 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 JobEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; ResponseDetails m_details; bool m_detailsHasBeenSet = false; Aws::Vector m_errors; bool m_errorsHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; State m_state; bool m_stateHasBeenSet = false; Type m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws