/** * 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 DataPipeline { namespace Model { ParameterValue::ParameterValue() : m_idHasBeenSet(false), m_stringValueHasBeenSet(false) { } ParameterValue::ParameterValue(JsonView jsonValue) : m_idHasBeenSet(false), m_stringValueHasBeenSet(false) { *this = jsonValue; } ParameterValue& ParameterValue::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("stringValue")) { m_stringValue = jsonValue.GetString("stringValue"); m_stringValueHasBeenSet = true; } return *this; } JsonValue ParameterValue::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_stringValueHasBeenSet) { payload.WithString("stringValue", m_stringValue); } return payload; } } // namespace Model } // namespace DataPipeline } // namespace Aws