/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. * * This file is generated */ #include namespace Aws { namespace Iotjobs { void DescribeJobExecutionResponse::LoadFromObject( DescribeJobExecutionResponse &val, const Aws::Crt::JsonView &doc) { (void)val; (void)doc; if (doc.ValueExists("execution")) { val.Execution = doc.GetJsonObject("execution"); } if (doc.ValueExists("clientToken")) { val.ClientToken = doc.GetString("clientToken"); } if (doc.ValueExists("timestamp")) { val.Timestamp = doc.GetDouble("timestamp"); } } void DescribeJobExecutionResponse::SerializeToObject(Aws::Crt::JsonObject &object) const { (void)object; if (Execution) { Aws::Crt::JsonObject jsonObject; Execution->SerializeToObject(jsonObject); object.WithObject("execution", std::move(jsonObject)); } if (ClientToken) { object.WithString("clientToken", *ClientToken); } if (Timestamp) { object.WithDouble("timestamp", Timestamp->SecondsWithMSPrecision()); } } DescribeJobExecutionResponse::DescribeJobExecutionResponse(const Crt::JsonView &doc) { LoadFromObject(*this, doc); } DescribeJobExecutionResponse &DescribeJobExecutionResponse::operator=(const Crt::JsonView &doc) { *this = DescribeJobExecutionResponse(doc); return *this; } } // namespace Iotjobs } // namespace Aws