/** * 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 QuickSight { namespace Model { DataPathValue::DataPathValue() : m_fieldIdHasBeenSet(false), m_fieldValueHasBeenSet(false) { } DataPathValue::DataPathValue(JsonView jsonValue) : m_fieldIdHasBeenSet(false), m_fieldValueHasBeenSet(false) { *this = jsonValue; } DataPathValue& DataPathValue::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("FieldId")) { m_fieldId = jsonValue.GetString("FieldId"); m_fieldIdHasBeenSet = true; } if(jsonValue.ValueExists("FieldValue")) { m_fieldValue = jsonValue.GetString("FieldValue"); m_fieldValueHasBeenSet = true; } return *this; } JsonValue DataPathValue::Jsonize() const { JsonValue payload; if(m_fieldIdHasBeenSet) { payload.WithString("FieldId", m_fieldId); } if(m_fieldValueHasBeenSet) { payload.WithString("FieldValue", m_fieldValue); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws