/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

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

*/ class EventBatchingCondition { public: AWS_GLUE_API EventBatchingCondition(); AWS_GLUE_API EventBatchingCondition(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API EventBatchingCondition& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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