/** * 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 { GrowthRateComputation::GrowthRateComputation() : m_computationIdHasBeenSet(false), m_nameHasBeenSet(false), m_timeHasBeenSet(false), m_valueHasBeenSet(false), m_periodSize(0), m_periodSizeHasBeenSet(false) { } GrowthRateComputation::GrowthRateComputation(JsonView jsonValue) : m_computationIdHasBeenSet(false), m_nameHasBeenSet(false), m_timeHasBeenSet(false), m_valueHasBeenSet(false), m_periodSize(0), m_periodSizeHasBeenSet(false) { *this = jsonValue; } GrowthRateComputation& GrowthRateComputation::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ComputationId")) { m_computationId = jsonValue.GetString("ComputationId"); m_computationIdHasBeenSet = true; } if(jsonValue.ValueExists("Name")) { m_name = jsonValue.GetString("Name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("Time")) { m_time = jsonValue.GetObject("Time"); m_timeHasBeenSet = true; } if(jsonValue.ValueExists("Value")) { m_value = jsonValue.GetObject("Value"); m_valueHasBeenSet = true; } if(jsonValue.ValueExists("PeriodSize")) { m_periodSize = jsonValue.GetInteger("PeriodSize"); m_periodSizeHasBeenSet = true; } return *this; } JsonValue GrowthRateComputation::Jsonize() const { JsonValue payload; if(m_computationIdHasBeenSet) { payload.WithString("ComputationId", m_computationId); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_timeHasBeenSet) { payload.WithObject("Time", m_time.Jsonize()); } if(m_valueHasBeenSet) { payload.WithObject("Value", m_value.Jsonize()); } if(m_periodSizeHasBeenSet) { payload.WithInteger("PeriodSize", m_periodSize); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws