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-gamelift/source/model/TargetTrackingConfiguration.cpp

62 lines
1.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/gamelift/model/TargetTrackingConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace GameLift
{
namespace Model
{
TargetTrackingConfiguration::TargetTrackingConfiguration() :
m_targetValue(0.0),
m_targetValueHasBeenSet(false)
{
}
TargetTrackingConfiguration::TargetTrackingConfiguration(JsonView jsonValue) :
m_targetValue(0.0),
m_targetValueHasBeenSet(false)
{
*this = jsonValue;
}
TargetTrackingConfiguration& TargetTrackingConfiguration::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("TargetValue"))
{
m_targetValue = jsonValue.GetDouble("TargetValue");
m_targetValueHasBeenSet = true;
}
return *this;
}
JsonValue TargetTrackingConfiguration::Jsonize() const
{
JsonValue payload;
if(m_targetValueHasBeenSet)
{
payload.WithDouble("TargetValue", m_targetValue);
}
return payload;
}
} // namespace Model
} // namespace GameLift
} // namespace Aws