/** * 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 Pipes { namespace Model { /** *

The parameters for using a Amazon SQS stream as a source.

See * Also:

AWS * API Reference

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

The maximum number of records to include in each batch.

*/ inline int GetBatchSize() const{ return m_batchSize; } /** *

The maximum number of records to include in each batch.

*/ inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; } /** *

The maximum number of records to include in each batch.

*/ inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; } /** *

The maximum number of records to include in each batch.

*/ inline PipeSourceSqsQueueParameters& WithBatchSize(int value) { SetBatchSize(value); return *this;} /** *

The maximum length of a time to wait for events.

*/ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** *

The maximum length of a time to wait for events.

*/ inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; } /** *

The maximum length of a time to wait for events.

*/ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; } /** *

The maximum length of a time to wait for events.

*/ inline PipeSourceSqsQueueParameters& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} private: int m_batchSize; bool m_batchSizeHasBeenSet = false; int m_maximumBatchingWindowInSeconds; bool m_maximumBatchingWindowInSecondsHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws