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-codeguruprofiler/source/model/AgentOrchestrationConfig.cpp

62 lines
1.2 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codeguruprofiler/model/AgentOrchestrationConfig.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace CodeGuruProfiler
{
namespace Model
{
AgentOrchestrationConfig::AgentOrchestrationConfig() :
m_profilingEnabled(false),
m_profilingEnabledHasBeenSet(false)
{
}
AgentOrchestrationConfig::AgentOrchestrationConfig(JsonView jsonValue) :
m_profilingEnabled(false),
m_profilingEnabledHasBeenSet(false)
{
*this = jsonValue;
}
AgentOrchestrationConfig& AgentOrchestrationConfig::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("profilingEnabled"))
{
m_profilingEnabled = jsonValue.GetBool("profilingEnabled");
m_profilingEnabledHasBeenSet = true;
}
return *this;
}
JsonValue AgentOrchestrationConfig::Jsonize() const
{
JsonValue payload;
if(m_profilingEnabledHasBeenSet)
{
payload.WithBool("profilingEnabled", m_profilingEnabled);
}
return payload;
}
} // namespace Model
} // namespace CodeGuruProfiler
} // namespace Aws