#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 namespace Aws { namespace Iotshadow { /** * An event generated when a shadow document was updated by a request to AWS IoT. The event payload contains * only the changes requested. * */ class AWS_IOTSHADOW_API ShadowDeltaUpdatedEvent final { public: ShadowDeltaUpdatedEvent() = default; ShadowDeltaUpdatedEvent(const Crt::JsonView &doc); ShadowDeltaUpdatedEvent &operator=(const Crt::JsonView &doc); void SerializeToObject(Crt::JsonObject &doc) const; /** * 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. * */ Aws::Crt::Optional Version; /** * The time the event was generated by AWS IoT. * */ Aws::Crt::Optional Timestamp; /** * Timestamps for the shadow properties that were updated. * */ Aws::Crt::Optional Metadata; /** * Shadow properties that were updated. * */ Aws::Crt::Optional State; private: static void LoadFromObject(ShadowDeltaUpdatedEvent &obj, const Crt::JsonView &doc); }; } // namespace Iotshadow } // namespace Aws