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-chime/source/model/TerminationHealth.cpp

74 lines
1.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/TerminationHealth.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Chime
{
namespace Model
{
TerminationHealth::TerminationHealth() :
m_timestampHasBeenSet(false),
m_sourceHasBeenSet(false)
{
}
TerminationHealth::TerminationHealth(JsonView jsonValue) :
m_timestampHasBeenSet(false),
m_sourceHasBeenSet(false)
{
*this = jsonValue;
}
TerminationHealth& TerminationHealth::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Timestamp"))
{
m_timestamp = jsonValue.GetString("Timestamp");
m_timestampHasBeenSet = true;
}
if(jsonValue.ValueExists("Source"))
{
m_source = jsonValue.GetString("Source");
m_sourceHasBeenSet = true;
}
return *this;
}
JsonValue TerminationHealth::Jsonize() const
{
JsonValue payload;
if(m_timestampHasBeenSet)
{
payload.WithString("Timestamp", m_timestamp.ToGmtString(DateFormat::ISO_8601));
}
if(m_sourceHasBeenSet)
{
payload.WithString("Source", m_source);
}
return payload;
}
} // namespace Model
} // namespace Chime
} // namespace Aws