#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 namespace Aws { namespace Iotjobs { /** * Data about the state of a job execution. * */ class AWS_IOTJOBS_API JobExecutionState final { public: JobExecutionState() = default; JobExecutionState(const Crt::JsonView &doc); JobExecutionState &operator=(const Crt::JsonView &doc); void SerializeToObject(Crt::JsonObject &doc) const; /** * A collection of name-value pairs that describe the status of the job execution. * */ Aws::Crt::Optional> StatusDetails; /** * The version of the job execution. Job execution versions are incremented each time they are updated by a * device. * */ Aws::Crt::Optional VersionNumber; /** * 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; private: static void LoadFromObject(JobExecutionState &obj, const Crt::JsonView &doc); }; } // namespace Iotjobs } // namespace Aws