/** * 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 Glue { namespace Model { EventBatchingCondition::EventBatchingCondition() : m_batchSize(0), m_batchSizeHasBeenSet(false), m_batchWindow(0), m_batchWindowHasBeenSet(false) { } EventBatchingCondition::EventBatchingCondition(JsonView jsonValue) : m_batchSize(0), m_batchSizeHasBeenSet(false), m_batchWindow(0), m_batchWindowHasBeenSet(false) { *this = jsonValue; } EventBatchingCondition& EventBatchingCondition::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("BatchSize")) { m_batchSize = jsonValue.GetInteger("BatchSize"); m_batchSizeHasBeenSet = true; } if(jsonValue.ValueExists("BatchWindow")) { m_batchWindow = jsonValue.GetInteger("BatchWindow"); m_batchWindowHasBeenSet = true; } return *this; } JsonValue EventBatchingCondition::Jsonize() const { JsonValue payload; if(m_batchSizeHasBeenSet) { payload.WithInteger("BatchSize", m_batchSize); } if(m_batchWindowHasBeenSet) { payload.WithInteger("BatchWindow", m_batchWindow); } return payload; } } // namespace Model } // namespace Glue } // namespace Aws