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-synthetics/source/model/CanaryLastRun.cpp

75 lines
1.3 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/synthetics/model/CanaryLastRun.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Synthetics
{
namespace Model
{
CanaryLastRun::CanaryLastRun() :
m_canaryNameHasBeenSet(false),
m_lastRunHasBeenSet(false)
{
}
CanaryLastRun::CanaryLastRun(JsonView jsonValue) :
m_canaryNameHasBeenSet(false),
m_lastRunHasBeenSet(false)
{
*this = jsonValue;
}
CanaryLastRun& CanaryLastRun::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("CanaryName"))
{
m_canaryName = jsonValue.GetString("CanaryName");
m_canaryNameHasBeenSet = true;
}
if(jsonValue.ValueExists("LastRun"))
{
m_lastRun = jsonValue.GetObject("LastRun");
m_lastRunHasBeenSet = true;
}
return *this;
}
JsonValue CanaryLastRun::Jsonize() const
{
JsonValue payload;
if(m_canaryNameHasBeenSet)
{
payload.WithString("CanaryName", m_canaryName);
}
if(m_lastRunHasBeenSet)
{
payload.WithObject("LastRun", m_lastRun.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Synthetics
} // namespace Aws