/** * 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::CodeDeploy::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; ListDeploymentTargetsResult::ListDeploymentTargetsResult() { } ListDeploymentTargetsResult::ListDeploymentTargetsResult(const Aws::AmazonWebServiceResult& result) { *this = result; } ListDeploymentTargetsResult& ListDeploymentTargetsResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("targetIds")) { Array targetIdsJsonList = jsonValue.GetArray("targetIds"); for(unsigned targetIdsIndex = 0; targetIdsIndex < targetIdsJsonList.GetLength(); ++targetIdsIndex) { m_targetIds.push_back(targetIdsJsonList[targetIdsIndex].AsString()); } } if(jsonValue.ValueExists("nextToken")) { m_nextToken = jsonValue.GetString("nextToken"); } return *this; }