/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include #include using namespace Aws::PinpointSMSVoice::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; GetConfigurationSetEventDestinationsResult::GetConfigurationSetEventDestinationsResult() { } GetConfigurationSetEventDestinationsResult::GetConfigurationSetEventDestinationsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } GetConfigurationSetEventDestinationsResult& GetConfigurationSetEventDestinationsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("EventDestinations")) { Aws::Utils::Array eventDestinationsJsonList = jsonValue.GetArray("EventDestinations"); for(unsigned eventDestinationsIndex = 0; eventDestinationsIndex < eventDestinationsJsonList.GetLength(); ++eventDestinationsIndex) { m_eventDestinations.push_back(eventDestinationsJsonList[eventDestinationsIndex].AsObject()); } } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }