/** * 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 FraudDetector { namespace Model { EventVariableSummary::EventVariableSummary() : m_nameHasBeenSet(false), m_valueHasBeenSet(false), m_sourceHasBeenSet(false) { } EventVariableSummary::EventVariableSummary(JsonView jsonValue) : m_nameHasBeenSet(false), m_valueHasBeenSet(false), m_sourceHasBeenSet(false) { *this = jsonValue; } EventVariableSummary& EventVariableSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("value")) { m_value = jsonValue.GetString("value"); m_valueHasBeenSet = true; } if(jsonValue.ValueExists("source")) { m_source = jsonValue.GetString("source"); m_sourceHasBeenSet = true; } return *this; } JsonValue EventVariableSummary::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_valueHasBeenSet) { payload.WithString("value", m_value); } if(m_sourceHasBeenSet) { payload.WithString("source", m_source); } return payload; } } // namespace Model } // namespace FraudDetector } // namespace Aws