/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Batch condition that must be met (specified number of events received or
* batch time window expired) before EventBridge event trigger fires.See
* Also:
AWS
* API Reference
Number of events that must be received from Amazon EventBridge before * EventBridge event trigger fires.
*/ inline int GetBatchSize() const{ return m_batchSize; } /** *Number of events that must be received from Amazon EventBridge before * EventBridge event trigger fires.
*/ inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; } /** *Number of events that must be received from Amazon EventBridge before * EventBridge event trigger fires.
*/ inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; } /** *Number of events that must be received from Amazon EventBridge before * EventBridge event trigger fires.
*/ inline EventBatchingCondition& WithBatchSize(int value) { SetBatchSize(value); return *this;} /** *Window of time in seconds after which EventBridge event trigger fires. Window * starts when first event is received.
*/ inline int GetBatchWindow() const{ return m_batchWindow; } /** *Window of time in seconds after which EventBridge event trigger fires. Window * starts when first event is received.
*/ inline bool BatchWindowHasBeenSet() const { return m_batchWindowHasBeenSet; } /** *Window of time in seconds after which EventBridge event trigger fires. Window * starts when first event is received.
*/ inline void SetBatchWindow(int value) { m_batchWindowHasBeenSet = true; m_batchWindow = value; } /** *Window of time in seconds after which EventBridge event trigger fires. Window * starts when first event is received.
*/ inline EventBatchingCondition& WithBatchWindow(int value) { SetBatchWindow(value); return *this;} private: int m_batchSize; bool m_batchSizeHasBeenSet = false; int m_batchWindow; bool m_batchWindowHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws