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

Specifies an Apache Kafka data store.

See Also:

AWS * API Reference

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

The name of the data store.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the data store.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the data store.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the data store.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the data store.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the data store.

*/ inline DirectKafkaSource& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the data store.

*/ inline DirectKafkaSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the data store.

*/ inline DirectKafkaSource& WithName(const char* value) { SetName(value); return *this;} /** *

Specifies the streaming options.

*/ inline const KafkaStreamingSourceOptions& GetStreamingOptions() const{ return m_streamingOptions; } /** *

Specifies the streaming options.

*/ inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; } /** *

Specifies the streaming options.

*/ inline void SetStreamingOptions(const KafkaStreamingSourceOptions& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = value; } /** *

Specifies the streaming options.

*/ inline void SetStreamingOptions(KafkaStreamingSourceOptions&& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = std::move(value); } /** *

Specifies the streaming options.

*/ inline DirectKafkaSource& WithStreamingOptions(const KafkaStreamingSourceOptions& value) { SetStreamingOptions(value); return *this;} /** *

Specifies the streaming options.

*/ inline DirectKafkaSource& WithStreamingOptions(KafkaStreamingSourceOptions&& value) { SetStreamingOptions(std::move(value)); return *this;} /** *

The amount of time to spend processing each micro batch.

*/ inline int GetWindowSize() const{ return m_windowSize; } /** *

The amount of time to spend processing each micro batch.

*/ inline bool WindowSizeHasBeenSet() const { return m_windowSizeHasBeenSet; } /** *

The amount of time to spend processing each micro batch.

*/ inline void SetWindowSize(int value) { m_windowSizeHasBeenSet = true; m_windowSize = value; } /** *

The amount of time to spend processing each micro batch.

*/ inline DirectKafkaSource& WithWindowSize(int value) { SetWindowSize(value); return *this;} /** *

Whether to automatically determine the schema from the incoming data.

*/ inline bool GetDetectSchema() const{ return m_detectSchema; } /** *

Whether to automatically determine the schema from the incoming data.

*/ inline bool DetectSchemaHasBeenSet() const { return m_detectSchemaHasBeenSet; } /** *

Whether to automatically determine the schema from the incoming data.

*/ inline void SetDetectSchema(bool value) { m_detectSchemaHasBeenSet = true; m_detectSchema = value; } /** *

Whether to automatically determine the schema from the incoming data.

*/ inline DirectKafkaSource& WithDetectSchema(bool value) { SetDetectSchema(value); return *this;} /** *

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

*/ inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const{ return m_dataPreviewOptions; } /** *

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

*/ inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; } /** *

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

*/ inline void SetDataPreviewOptions(const StreamingDataPreviewOptions& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = value; } /** *

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

*/ inline void SetDataPreviewOptions(StreamingDataPreviewOptions&& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = std::move(value); } /** *

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

*/ inline DirectKafkaSource& WithDataPreviewOptions(const StreamingDataPreviewOptions& value) { SetDataPreviewOptions(value); return *this;} /** *

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

*/ inline DirectKafkaSource& WithDataPreviewOptions(StreamingDataPreviewOptions&& value) { SetDataPreviewOptions(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; KafkaStreamingSourceOptions m_streamingOptions; bool m_streamingOptionsHasBeenSet = false; int m_windowSize; bool m_windowSizeHasBeenSet = false; bool m_detectSchema; bool m_detectSchemaHasBeenSet = false; StreamingDataPreviewOptions m_dataPreviewOptions; bool m_dataPreviewOptionsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws