/** * 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 CloudWatchEvents { namespace Model { SageMakerPipelineParameters::SageMakerPipelineParameters() : m_pipelineParameterListHasBeenSet(false) { } SageMakerPipelineParameters::SageMakerPipelineParameters(JsonView jsonValue) : m_pipelineParameterListHasBeenSet(false) { *this = jsonValue; } SageMakerPipelineParameters& SageMakerPipelineParameters::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("PipelineParameterList")) { Aws::Utils::Array pipelineParameterListJsonList = jsonValue.GetArray("PipelineParameterList"); for(unsigned pipelineParameterListIndex = 0; pipelineParameterListIndex < pipelineParameterListJsonList.GetLength(); ++pipelineParameterListIndex) { m_pipelineParameterList.push_back(pipelineParameterListJsonList[pipelineParameterListIndex].AsObject()); } m_pipelineParameterListHasBeenSet = true; } return *this; } JsonValue SageMakerPipelineParameters::Jsonize() const { JsonValue payload; if(m_pipelineParameterListHasBeenSet) { Aws::Utils::Array pipelineParameterListJsonList(m_pipelineParameterList.size()); for(unsigned pipelineParameterListIndex = 0; pipelineParameterListIndex < pipelineParameterListJsonList.GetLength(); ++pipelineParameterListIndex) { pipelineParameterListJsonList[pipelineParameterListIndex].AsObject(m_pipelineParameterList[pipelineParameterListIndex].Jsonize()); } payload.WithArray("PipelineParameterList", std::move(pipelineParameterListJsonList)); } return payload; } } // namespace Model } // namespace CloudWatchEvents } // namespace Aws