/** * 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 IoT { namespace Model { StatisticalThreshold::StatisticalThreshold() : m_statisticHasBeenSet(false) { } StatisticalThreshold::StatisticalThreshold(JsonView jsonValue) : m_statisticHasBeenSet(false) { *this = jsonValue; } StatisticalThreshold& StatisticalThreshold::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("statistic")) { m_statistic = jsonValue.GetString("statistic"); m_statisticHasBeenSet = true; } return *this; } JsonValue StatisticalThreshold::Jsonize() const { JsonValue payload; if(m_statisticHasBeenSet) { payload.WithString("statistic", m_statistic); } return payload; } } // namespace Model } // namespace IoT } // namespace Aws