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

The data format is not valid. Kinesis Data Analytics cannot detect the schema * for the given streaming source.

See Also:

AWS * API Reference

*/ class UnableToDetectSchemaException { public: AWS_KINESISANALYTICSV2_API UnableToDetectSchemaException(); AWS_KINESISANALYTICSV2_API UnableToDetectSchemaException(Aws::Utils::Json::JsonView jsonValue); AWS_KINESISANALYTICSV2_API UnableToDetectSchemaException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KINESISANALYTICSV2_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline UnableToDetectSchemaException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline UnableToDetectSchemaException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline UnableToDetectSchemaException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

Raw stream data that was sampled to infer the schema.

*/ inline const Aws::Vector& GetRawInputRecords() const{ return m_rawInputRecords; } /** *

Raw stream data that was sampled to infer the schema.

*/ inline bool RawInputRecordsHasBeenSet() const { return m_rawInputRecordsHasBeenSet; } /** *

Raw stream data that was sampled to infer the schema.

*/ inline void SetRawInputRecords(const Aws::Vector& value) { m_rawInputRecordsHasBeenSet = true; m_rawInputRecords = value; } /** *

Raw stream data that was sampled to infer the schema.

*/ inline void SetRawInputRecords(Aws::Vector&& value) { m_rawInputRecordsHasBeenSet = true; m_rawInputRecords = std::move(value); } /** *

Raw stream data that was sampled to infer the schema.

*/ inline UnableToDetectSchemaException& WithRawInputRecords(const Aws::Vector& value) { SetRawInputRecords(value); return *this;} /** *

Raw stream data that was sampled to infer the schema.

*/ inline UnableToDetectSchemaException& WithRawInputRecords(Aws::Vector&& value) { SetRawInputRecords(std::move(value)); return *this;} /** *

Raw stream data that was sampled to infer the schema.

*/ inline UnableToDetectSchemaException& AddRawInputRecords(const Aws::String& value) { m_rawInputRecordsHasBeenSet = true; m_rawInputRecords.push_back(value); return *this; } /** *

Raw stream data that was sampled to infer the schema.

*/ inline UnableToDetectSchemaException& AddRawInputRecords(Aws::String&& value) { m_rawInputRecordsHasBeenSet = true; m_rawInputRecords.push_back(std::move(value)); return *this; } /** *

Raw stream data that was sampled to infer the schema.

*/ inline UnableToDetectSchemaException& AddRawInputRecords(const char* value) { m_rawInputRecordsHasBeenSet = true; m_rawInputRecords.push_back(value); return *this; } /** *

Stream data that was modified by the processor specified in the * InputProcessingConfiguration parameter.

*/ inline const Aws::Vector& GetProcessedInputRecords() const{ return m_processedInputRecords; } /** *

Stream data that was modified by the processor specified in the * InputProcessingConfiguration parameter.

*/ inline bool ProcessedInputRecordsHasBeenSet() const { return m_processedInputRecordsHasBeenSet; } /** *

Stream data that was modified by the processor specified in the * InputProcessingConfiguration parameter.

*/ inline void SetProcessedInputRecords(const Aws::Vector& value) { m_processedInputRecordsHasBeenSet = true; m_processedInputRecords = value; } /** *

Stream data that was modified by the processor specified in the * InputProcessingConfiguration parameter.

*/ inline void SetProcessedInputRecords(Aws::Vector&& value) { m_processedInputRecordsHasBeenSet = true; m_processedInputRecords = std::move(value); } /** *

Stream data that was modified by the processor specified in the * InputProcessingConfiguration parameter.

*/ inline UnableToDetectSchemaException& WithProcessedInputRecords(const Aws::Vector& value) { SetProcessedInputRecords(value); return *this;} /** *

Stream data that was modified by the processor specified in the * InputProcessingConfiguration parameter.

*/ inline UnableToDetectSchemaException& WithProcessedInputRecords(Aws::Vector&& value) { SetProcessedInputRecords(std::move(value)); return *this;} /** *

Stream data that was modified by the processor specified in the * InputProcessingConfiguration parameter.

*/ inline UnableToDetectSchemaException& AddProcessedInputRecords(const Aws::String& value) { m_processedInputRecordsHasBeenSet = true; m_processedInputRecords.push_back(value); return *this; } /** *

Stream data that was modified by the processor specified in the * InputProcessingConfiguration parameter.

*/ inline UnableToDetectSchemaException& AddProcessedInputRecords(Aws::String&& value) { m_processedInputRecordsHasBeenSet = true; m_processedInputRecords.push_back(std::move(value)); return *this; } /** *

Stream data that was modified by the processor specified in the * InputProcessingConfiguration parameter.

*/ inline UnableToDetectSchemaException& AddProcessedInputRecords(const char* value) { m_processedInputRecordsHasBeenSet = true; m_processedInputRecords.push_back(value); return *this; } private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector m_rawInputRecords; bool m_rawInputRecordsHasBeenSet = false; Aws::Vector m_processedInputRecords; bool m_processedInputRecordsHasBeenSet = false; }; } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws