/** * 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::ConfigService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; DescribeDeliveryChannelStatusResult::DescribeDeliveryChannelStatusResult() { } DescribeDeliveryChannelStatusResult::DescribeDeliveryChannelStatusResult(const Aws::AmazonWebServiceResult& result) { *this = result; } DescribeDeliveryChannelStatusResult& DescribeDeliveryChannelStatusResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("DeliveryChannelsStatus")) { Array deliveryChannelsStatusJsonList = jsonValue.GetArray("DeliveryChannelsStatus"); for(unsigned deliveryChannelsStatusIndex = 0; deliveryChannelsStatusIndex < deliveryChannelsStatusJsonList.GetLength(); ++deliveryChannelsStatusIndex) { m_deliveryChannelsStatus.push_back(deliveryChannelsStatusJsonList[deliveryChannelsStatusIndex].AsObject()); } } return *this; }