/** * 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::Amplify::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; CreateDeploymentResult::CreateDeploymentResult() { } CreateDeploymentResult::CreateDeploymentResult(const Aws::AmazonWebServiceResult& result) { *this = result; } CreateDeploymentResult& CreateDeploymentResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("jobId")) { m_jobId = jsonValue.GetString("jobId"); } if(jsonValue.ValueExists("fileUploadUrls")) { Aws::Map fileUploadUrlsJsonMap = jsonValue.GetObject("fileUploadUrls").GetAllObjects(); for(auto& fileUploadUrlsItem : fileUploadUrlsJsonMap) { m_fileUploadUrls[fileUploadUrlsItem.first] = fileUploadUrlsItem.second.AsString(); } } if(jsonValue.ValueExists("zipUploadUrl")) { m_zipUploadUrl = jsonValue.GetString("zipUploadUrl"); } return *this; }