61 lines
1.4 KiB
C++
61 lines
1.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/schemas/model/DescribeCodeBindingResult.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::Schemas::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws;
|
|
|
|
DescribeCodeBindingResult::DescribeCodeBindingResult() :
|
|
m_status(CodeGenerationStatus::NOT_SET)
|
|
{
|
|
}
|
|
|
|
DescribeCodeBindingResult::DescribeCodeBindingResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
|
|
m_status(CodeGenerationStatus::NOT_SET)
|
|
{
|
|
*this = result;
|
|
}
|
|
|
|
DescribeCodeBindingResult& DescribeCodeBindingResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
JsonView jsonValue = result.GetPayload().View();
|
|
if(jsonValue.ValueExists("CreationDate"))
|
|
{
|
|
m_creationDate = jsonValue.GetString("CreationDate");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("LastModified"))
|
|
{
|
|
m_lastModified = jsonValue.GetString("LastModified");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("SchemaVersion"))
|
|
{
|
|
m_schemaVersion = jsonValue.GetString("SchemaVersion");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("Status"))
|
|
{
|
|
m_status = CodeGenerationStatusMapper::GetCodeGenerationStatusForName(jsonValue.GetString("Status"));
|
|
|
|
}
|
|
|
|
|
|
|
|
return *this;
|
|
}
|