/** * 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 { RowInfo::RowInfo() : m_rowsIngested(0), m_rowsIngestedHasBeenSet(false), m_rowsDropped(0), m_rowsDroppedHasBeenSet(false), m_totalRowsInDataset(0), m_totalRowsInDatasetHasBeenSet(false) { } RowInfo::RowInfo(JsonView jsonValue) : m_rowsIngested(0), m_rowsIngestedHasBeenSet(false), m_rowsDropped(0), m_rowsDroppedHasBeenSet(false), m_totalRowsInDataset(0), m_totalRowsInDatasetHasBeenSet(false) { *this = jsonValue; } RowInfo& RowInfo::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("RowsIngested")) { m_rowsIngested = jsonValue.GetInt64("RowsIngested"); m_rowsIngestedHasBeenSet = true; } if(jsonValue.ValueExists("RowsDropped")) { m_rowsDropped = jsonValue.GetInt64("RowsDropped"); m_rowsDroppedHasBeenSet = true; } if(jsonValue.ValueExists("TotalRowsInDataset")) { m_totalRowsInDataset = jsonValue.GetInt64("TotalRowsInDataset"); m_totalRowsInDatasetHasBeenSet = true; } return *this; } JsonValue RowInfo::Jsonize() const { JsonValue payload; if(m_rowsIngestedHasBeenSet) { payload.WithInt64("RowsIngested", m_rowsIngested); } if(m_rowsDroppedHasBeenSet) { payload.WithInt64("RowsDropped", m_rowsDropped); } if(m_totalRowsInDatasetHasBeenSet) { payload.WithInt64("TotalRowsInDataset", m_totalRowsInDataset); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws