/** * 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 { /** *

Specifies options related to data preview for viewing a sample of your * data.

See Also:

AWS * API Reference

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

The polling time in milliseconds.

*/ inline long long GetPollingTime() const{ return m_pollingTime; } /** *

The polling time in milliseconds.

*/ inline bool PollingTimeHasBeenSet() const { return m_pollingTimeHasBeenSet; } /** *

The polling time in milliseconds.

*/ inline void SetPollingTime(long long value) { m_pollingTimeHasBeenSet = true; m_pollingTime = value; } /** *

The polling time in milliseconds.

*/ inline StreamingDataPreviewOptions& WithPollingTime(long long value) { SetPollingTime(value); return *this;} /** *

The limit to the number of records polled.

*/ inline long long GetRecordPollingLimit() const{ return m_recordPollingLimit; } /** *

The limit to the number of records polled.

*/ inline bool RecordPollingLimitHasBeenSet() const { return m_recordPollingLimitHasBeenSet; } /** *

The limit to the number of records polled.

*/ inline void SetRecordPollingLimit(long long value) { m_recordPollingLimitHasBeenSet = true; m_recordPollingLimit = value; } /** *

The limit to the number of records polled.

*/ inline StreamingDataPreviewOptions& WithRecordPollingLimit(long long value) { SetRecordPollingLimit(value); return *this;} private: long long m_pollingTime; bool m_pollingTimeHasBeenSet = false; long long m_recordPollingLimit; bool m_recordPollingLimitHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws