AWS IoT Device SDK C++ v2: Aws::Iotshadow::ShadowState Class Reference

AWS IoT Device SDK C++ v2 1.14.0 AWS IoT Device SDK C++ v2

Public Member Functions | Public Attributes | List of all members
Aws::Iotshadow::ShadowState Class Referencefinal

`#include <ShadowState.h>`

## Public Member Functions
| ShadowState ()=default
| ShadowState (const Crt::JsonView &doc)
ShadowState & | operator= (const Crt::JsonView &doc)
void | SerializeToObject (Crt::JsonObject &doc) const

## Public Attributes
Aws::Crt::Optional< Aws::Crt::JsonObject > | Desired
Aws::Crt::Optional< Aws::Crt::JsonObject > | Reported

## Detailed Description

(Potentially partial) state of an AWS IoT thing's shadow.

## Constructor & Destructor Documentation

## ◆ ShadowState() [1/2]

Aws::Iotshadow::ShadowState::ShadowState | ( |  | ) |
| default

## ◆ ShadowState() [2/2]

Aws::Iotshadow::ShadowState::ShadowState | ( | const Crt::JsonView & | doc | ) |

## Member Function Documentation

## ◆ operator=()

ShadowState & Aws::Iotshadow::ShadowState::operator= | ( | const Crt::JsonView & | doc | ) |

## ◆ SerializeToObject()

void Aws::Iotshadow::ShadowState::SerializeToObject | ( | Crt::JsonObject & | doc | ) | const

## Member Data Documentation

## ◆ Desired

Aws::Crt::Optional<Aws::Crt::JsonObject> Aws::Iotshadow::ShadowState::Desired

The desired shadow state (from external services and devices).

## ◆ Reported

Aws::Crt::Optional<Aws::Crt::JsonObject> Aws::Iotshadow::ShadowState::Reported

The (last) reported shadow state from the device.

The documentation for this class was generated from the following files:

- shadow/include/aws/iotshadow/ShadowState.h
- shadow/source/ShadowState.cpp