This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codepipeline/source/model/PipelineMetadata.cpp

88 lines
1.6 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codepipeline/model/PipelineMetadata.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace CodePipeline
{
namespace Model
{
PipelineMetadata::PipelineMetadata() :
m_pipelineArnHasBeenSet(false),
m_createdHasBeenSet(false),
m_updatedHasBeenSet(false)
{
}
PipelineMetadata::PipelineMetadata(JsonView jsonValue) :
m_pipelineArnHasBeenSet(false),
m_createdHasBeenSet(false),
m_updatedHasBeenSet(false)
{
*this = jsonValue;
}
PipelineMetadata& PipelineMetadata::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("pipelineArn"))
{
m_pipelineArn = jsonValue.GetString("pipelineArn");
m_pipelineArnHasBeenSet = true;
}
if(jsonValue.ValueExists("created"))
{
m_created = jsonValue.GetDouble("created");
m_createdHasBeenSet = true;
}
if(jsonValue.ValueExists("updated"))
{
m_updated = jsonValue.GetDouble("updated");
m_updatedHasBeenSet = true;
}
return *this;
}
JsonValue PipelineMetadata::Jsonize() const
{
JsonValue payload;
if(m_pipelineArnHasBeenSet)
{
payload.WithString("pipelineArn", m_pipelineArn);
}
if(m_createdHasBeenSet)
{
payload.WithDouble("created", m_created.SecondsWithMSPrecision());
}
if(m_updatedHasBeenSet)
{
payload.WithDouble("updated", m_updated.SecondsWithMSPrecision());
}
return payload;
}
} // namespace Model
} // namespace CodePipeline
} // namespace Aws