#pragma once /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated */ #include #include #include #include #include #include namespace Aws { namespace Iotjobs { /** * Data about a job execution. * */ class AWS_IOTJOBS_API JobExecutionData final { public: JobExecutionData() = default; JobExecutionData(const Crt::JsonView &doc); JobExecutionData &operator=(const Crt::JsonView &doc); void SerializeToObject(Crt::JsonObject &doc) const; /** * The unique identifier you assigned to this job when it was created. * */ Aws::Crt::Optional JobId; /** * The content of the job document. * */ Aws::Crt::Optional JobDocument; /** * The status of the job execution. Can be one of: QUEUED, IN_PROGRESS, FAILED, SUCCEEDED, CANCELED, * TIMED_OUT, REJECTED, or REMOVED. * */ Aws::Crt::Optional Status; /** * The version of the job execution. Job execution versions are incremented each time they are updated by a * device. * */ Aws::Crt::Optional VersionNumber; /** * The time when the job execution was enqueued. * */ Aws::Crt::Optional QueuedAt; /** * The name of the thing that is executing the job. * */ Aws::Crt::Optional ThingName; /** * A number that identifies a job execution on a device. It can be used later in commands that return or * update job execution information. * */ Aws::Crt::Optional ExecutionNumber; /** * A collection of name-value pairs that describe the status of the job execution. * */ Aws::Crt::Optional> StatusDetails; /** * The time when the job execution started. * */ Aws::Crt::Optional LastUpdatedAt; /** * The time when the job execution started. * */ Aws::Crt::Optional StartedAt; private: static void LoadFromObject(JobExecutionData &obj, const Crt::JsonView &doc); }; } // namespace Iotjobs } // namespace Aws