/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies a Kinesis data source in the Glue Data Catalog.See
* Also:
AWS
* API Reference
The name of the data source.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the data source.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the data source.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the data source.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the data source.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the data source.
*/ inline CatalogKinesisSource& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the data source.
*/ inline CatalogKinesisSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the data source.
*/ inline CatalogKinesisSource& WithName(const char* value) { SetName(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 CatalogKinesisSource& 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 CatalogKinesisSource& WithDetectSchema(bool value) { SetDetectSchema(value); return *this;} /** *The name of the table in the database to read from.
*/ inline const Aws::String& GetTable() const{ return m_table; } /** *The name of the table in the database to read from.
*/ inline bool TableHasBeenSet() const { return m_tableHasBeenSet; } /** *The name of the table in the database to read from.
*/ inline void SetTable(const Aws::String& value) { m_tableHasBeenSet = true; m_table = value; } /** *The name of the table in the database to read from.
*/ inline void SetTable(Aws::String&& value) { m_tableHasBeenSet = true; m_table = std::move(value); } /** *The name of the table in the database to read from.
*/ inline void SetTable(const char* value) { m_tableHasBeenSet = true; m_table.assign(value); } /** *The name of the table in the database to read from.
*/ inline CatalogKinesisSource& WithTable(const Aws::String& value) { SetTable(value); return *this;} /** *The name of the table in the database to read from.
*/ inline CatalogKinesisSource& WithTable(Aws::String&& value) { SetTable(std::move(value)); return *this;} /** *The name of the table in the database to read from.
*/ inline CatalogKinesisSource& WithTable(const char* value) { SetTable(value); return *this;} /** *The name of the database to read from.
*/ inline const Aws::String& GetDatabase() const{ return m_database; } /** *The name of the database to read from.
*/ inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; } /** *The name of the database to read from.
*/ inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; } /** *The name of the database to read from.
*/ inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); } /** *The name of the database to read from.
*/ inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); } /** *The name of the database to read from.
*/ inline CatalogKinesisSource& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;} /** *The name of the database to read from.
*/ inline CatalogKinesisSource& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;} /** *The name of the database to read from.
*/ inline CatalogKinesisSource& WithDatabase(const char* value) { SetDatabase(value); return *this;} /** *Additional options for the Kinesis streaming data source.
*/ inline const KinesisStreamingSourceOptions& GetStreamingOptions() const{ return m_streamingOptions; } /** *Additional options for the Kinesis streaming data source.
*/ inline bool StreamingOptionsHasBeenSet() const { return m_streamingOptionsHasBeenSet; } /** *Additional options for the Kinesis streaming data source.
*/ inline void SetStreamingOptions(const KinesisStreamingSourceOptions& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = value; } /** *Additional options for the Kinesis streaming data source.
*/ inline void SetStreamingOptions(KinesisStreamingSourceOptions&& value) { m_streamingOptionsHasBeenSet = true; m_streamingOptions = std::move(value); } /** *Additional options for the Kinesis streaming data source.
*/ inline CatalogKinesisSource& WithStreamingOptions(const KinesisStreamingSourceOptions& value) { SetStreamingOptions(value); return *this;} /** *Additional options for the Kinesis streaming data source.
*/ inline CatalogKinesisSource& WithStreamingOptions(KinesisStreamingSourceOptions&& value) { SetStreamingOptions(std::move(value)); return *this;} /** *Additional options for data preview.
*/ inline const StreamingDataPreviewOptions& GetDataPreviewOptions() const{ return m_dataPreviewOptions; } /** *Additional options for data preview.
*/ inline bool DataPreviewOptionsHasBeenSet() const { return m_dataPreviewOptionsHasBeenSet; } /** *Additional options for data preview.
*/ inline void SetDataPreviewOptions(const StreamingDataPreviewOptions& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = value; } /** *Additional options for data preview.
*/ inline void SetDataPreviewOptions(StreamingDataPreviewOptions&& value) { m_dataPreviewOptionsHasBeenSet = true; m_dataPreviewOptions = std::move(value); } /** *Additional options for data preview.
*/ inline CatalogKinesisSource& WithDataPreviewOptions(const StreamingDataPreviewOptions& value) { SetDataPreviewOptions(value); return *this;} /** *Additional options for data preview.
*/ inline CatalogKinesisSource& WithDataPreviewOptions(StreamingDataPreviewOptions&& value) { SetDataPreviewOptions(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; int m_windowSize; bool m_windowSizeHasBeenSet = false; bool m_detectSchema; bool m_detectSchemaHasBeenSet = false; Aws::String m_table; bool m_tableHasBeenSet = false; Aws::String m_database; bool m_databaseHasBeenSet = false; KinesisStreamingSourceOptions m_streamingOptions; bool m_streamingOptionsHasBeenSet = false; StreamingDataPreviewOptions m_dataPreviewOptions; bool m_dataPreviewOptionsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws