AWS IoT Device SDK C++ v2: shadow/include/aws/iotshadow/ErrorResponse.h Source File

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

ErrorResponse.h
Go to the documentation of this file.
1#pragma once
2
3/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 * SPDX-License-Identifier: Apache-2.0.
5 *
6 * This file is generated
7 */
8
9#include <aws/crt/DateTime.h>
10
11#include <aws/iotshadow/Exports.h>
12
13#include <aws/crt/JsonObject.h>
14#include <aws/crt/StlAllocator.h>
15
16namespace Aws
17{
18 namespace Iotshadow
19 {
20
25 class AWS_IOTSHADOW_API ErrorResponse final
26 {
27 public:
28 ErrorResponse() = default;
29
30 ErrorResponse(const Crt::JsonView &doc);
31 ErrorResponse &operator=(const Crt::JsonView &doc);
32
33 void SerializeToObject(Crt::JsonObject &doc) const;
34
40 Aws::Crt::Optional<Aws::Crt::DateTime> Timestamp;
41
46 Aws::Crt::Optional<Aws::Crt::String> Message;
47
52 Aws::Crt::Optional<Aws::Crt::String> ClientToken;
53
58 Aws::Crt::Optional<int32_t> Code;
59
60 private:
61 static void LoadFromObject(ErrorResponse &obj, const Crt::JsonView &doc);
62 };
63 } // namespace Iotshadow
64} // namespace Aws
DateTime.h
JsonObject.h
StlAllocator.h
Aws::Crt::JsonObject
Definition: JsonObject.h:21
Aws::Crt::JsonView
Definition: JsonObject.h:207
Aws::Crt::Optional
Definition: Optional.h:17
Aws::Iotshadow::ErrorResponse
Definition: ErrorResponse.h:26
Aws::Iotshadow::ErrorResponse::ClientToken
Aws::Crt::Optional< Aws::Crt::String > ClientToken
Definition: ErrorResponse.h:52
Aws::Iotshadow::ErrorResponse::Message
Aws::Crt::Optional< Aws::Crt::String > Message
Definition: ErrorResponse.h:46
Aws::Iotshadow::ErrorResponse::Timestamp
Aws::Crt::Optional< Aws::Crt::DateTime > Timestamp
Definition: ErrorResponse.h:40
Aws::Iotshadow::ErrorResponse::Code
Aws::Crt::Optional< int32_t > Code
Definition: ErrorResponse.h:58
Aws::Iotshadow::ErrorResponse::ErrorResponse
ErrorResponse()=default
Aws
Definition: Api.h:17
Exports.h
AWS_IOTSHADOW_API
#define AWS_IOTSHADOW_API
Definition: Exports.h:20