/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include using namespace Aws::IoTAnalytics::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; DescribeDatastoreResult::DescribeDatastoreResult() { } DescribeDatastoreResult::DescribeDatastoreResult(const Aws::AmazonWebServiceResult& result) { *this = result; } DescribeDatastoreResult& DescribeDatastoreResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("datastore")) { m_datastore = jsonValue.GetObject("datastore"); } if(jsonValue.ValueExists("statistics")) { m_statistics = jsonValue.GetObject("statistics"); } return *this; }