89 lines
1.8 KiB
C++
89 lines
1.8 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/codestar/model/DescribeProjectResult.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
#include <aws/core/AmazonWebServiceResult.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/UnreferencedParam.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::CodeStar::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws;
|
|
|
|
DescribeProjectResult::DescribeProjectResult()
|
|
{
|
|
}
|
|
|
|
DescribeProjectResult::DescribeProjectResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
*this = result;
|
|
}
|
|
|
|
DescribeProjectResult& DescribeProjectResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
JsonView jsonValue = result.GetPayload().View();
|
|
if(jsonValue.ValueExists("name"))
|
|
{
|
|
m_name = jsonValue.GetString("name");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("id"))
|
|
{
|
|
m_id = jsonValue.GetString("id");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("arn"))
|
|
{
|
|
m_arn = jsonValue.GetString("arn");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("description"))
|
|
{
|
|
m_description = jsonValue.GetString("description");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("clientRequestToken"))
|
|
{
|
|
m_clientRequestToken = jsonValue.GetString("clientRequestToken");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("createdTimeStamp"))
|
|
{
|
|
m_createdTimeStamp = jsonValue.GetDouble("createdTimeStamp");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("stackId"))
|
|
{
|
|
m_stackId = jsonValue.GetString("stackId");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("projectTemplateId"))
|
|
{
|
|
m_projectTemplateId = jsonValue.GetString("projectTemplateId");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("status"))
|
|
{
|
|
m_status = jsonValue.GetObject("status");
|
|
|
|
}
|
|
|
|
|
|
|
|
return *this;
|
|
}
|