/** * 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 SageMaker { namespace Model { MonitoringInput::MonitoringInput() : m_endpointInputHasBeenSet(false), m_batchTransformInputHasBeenSet(false) { } MonitoringInput::MonitoringInput(JsonView jsonValue) : m_endpointInputHasBeenSet(false), m_batchTransformInputHasBeenSet(false) { *this = jsonValue; } MonitoringInput& MonitoringInput::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("EndpointInput")) { m_endpointInput = jsonValue.GetObject("EndpointInput"); m_endpointInputHasBeenSet = true; } if(jsonValue.ValueExists("BatchTransformInput")) { m_batchTransformInput = jsonValue.GetObject("BatchTransformInput"); m_batchTransformInputHasBeenSet = true; } return *this; } JsonValue MonitoringInput::Jsonize() const { JsonValue payload; if(m_endpointInputHasBeenSet) { payload.WithObject("EndpointInput", m_endpointInput.Jsonize()); } if(m_batchTransformInputHasBeenSet) { payload.WithObject("BatchTransformInput", m_batchTransformInput.Jsonize()); } return payload; } } // namespace Model } // namespace SageMaker } // namespace Aws