/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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