/** * 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 GlueDataBrew { namespace Model { ConditionExpression::ConditionExpression() : m_conditionHasBeenSet(false), m_valueHasBeenSet(false), m_targetColumnHasBeenSet(false) { } ConditionExpression::ConditionExpression(JsonView jsonValue) : m_conditionHasBeenSet(false), m_valueHasBeenSet(false), m_targetColumnHasBeenSet(false) { *this = jsonValue; } ConditionExpression& ConditionExpression::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Condition")) { m_condition = jsonValue.GetString("Condition"); m_conditionHasBeenSet = true; } if(jsonValue.ValueExists("Value")) { m_value = jsonValue.GetString("Value"); m_valueHasBeenSet = true; } if(jsonValue.ValueExists("TargetColumn")) { m_targetColumn = jsonValue.GetString("TargetColumn"); m_targetColumnHasBeenSet = true; } return *this; } JsonValue ConditionExpression::Jsonize() const { JsonValue payload; if(m_conditionHasBeenSet) { payload.WithString("Condition", m_condition); } if(m_valueHasBeenSet) { payload.WithString("Value", m_value); } if(m_targetColumnHasBeenSet) { payload.WithString("TargetColumn", m_targetColumn); } return payload; } } // namespace Model } // namespace GlueDataBrew } // namespace Aws