#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 Iotshadow { /** * Response payload to an UpdateShadow request. * */ class AWS_IOTSHADOW_API UpdateShadowResponse final { public: UpdateShadowResponse() = default; UpdateShadowResponse(const Crt::JsonView &doc); UpdateShadowResponse &operator=(const Crt::JsonView &doc); void SerializeToObject(Crt::JsonObject &doc) const; /** * Updated device shadow state. * */ Aws::Crt::Optional State; /** * An opaque token used to correlate requests and responses. Present only if a client token was used in the * request. * */ Aws::Crt::Optional ClientToken; /** * The current version of the document for the device's shadow shared in AWS IoT. It is increased by one * over the previous version of the document. * */ Aws::Crt::Optional Version; /** * Contains the timestamps for each attribute in the desired and reported sections so that you can determine * when the state was updated. * */ Aws::Crt::Optional Metadata; /** * The time the response was generated by AWS IoT. * */ Aws::Crt::Optional Timestamp; private: static void LoadFromObject(UpdateShadowResponse &obj, const Crt::JsonView &doc); }; } // namespace Iotshadow } // namespace Aws