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

For a SQL-based Kinesis Data Analytics application, describes the application * output configuration, which includes the in-application stream name and the * destination where the stream data is written. The destination can be a Kinesis * data stream or a Kinesis Data Firehose delivery stream.

See * Also:

AWS * API Reference

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

A unique identifier for the output configuration.

*/ inline const Aws::String& GetOutputId() const{ return m_outputId; } /** *

A unique identifier for the output configuration.

*/ inline bool OutputIdHasBeenSet() const { return m_outputIdHasBeenSet; } /** *

A unique identifier for the output configuration.

*/ inline void SetOutputId(const Aws::String& value) { m_outputIdHasBeenSet = true; m_outputId = value; } /** *

A unique identifier for the output configuration.

*/ inline void SetOutputId(Aws::String&& value) { m_outputIdHasBeenSet = true; m_outputId = std::move(value); } /** *

A unique identifier for the output configuration.

*/ inline void SetOutputId(const char* value) { m_outputIdHasBeenSet = true; m_outputId.assign(value); } /** *

A unique identifier for the output configuration.

*/ inline OutputDescription& WithOutputId(const Aws::String& value) { SetOutputId(value); return *this;} /** *

A unique identifier for the output configuration.

*/ inline OutputDescription& WithOutputId(Aws::String&& value) { SetOutputId(std::move(value)); return *this;} /** *

A unique identifier for the output configuration.

*/ inline OutputDescription& WithOutputId(const char* value) { SetOutputId(value); return *this;} /** *

The name of the in-application stream that is configured as output.

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

The name of the in-application stream that is configured as output.

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

The name of the in-application stream that is configured as output.

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

The name of the in-application stream that is configured as output.

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

The name of the in-application stream that is configured as output.

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

The name of the in-application stream that is configured as output.

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

The name of the in-application stream that is configured as output.

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

The name of the in-application stream that is configured as output.

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

Describes the Kinesis data stream that is configured as the destination where * output is written.

*/ inline const KinesisStreamsOutputDescription& GetKinesisStreamsOutputDescription() const{ return m_kinesisStreamsOutputDescription; } /** *

Describes the Kinesis data stream that is configured as the destination where * output is written.

*/ inline bool KinesisStreamsOutputDescriptionHasBeenSet() const { return m_kinesisStreamsOutputDescriptionHasBeenSet; } /** *

Describes the Kinesis data stream that is configured as the destination where * output is written.

*/ inline void SetKinesisStreamsOutputDescription(const KinesisStreamsOutputDescription& value) { m_kinesisStreamsOutputDescriptionHasBeenSet = true; m_kinesisStreamsOutputDescription = value; } /** *

Describes the Kinesis data stream that is configured as the destination where * output is written.

*/ inline void SetKinesisStreamsOutputDescription(KinesisStreamsOutputDescription&& value) { m_kinesisStreamsOutputDescriptionHasBeenSet = true; m_kinesisStreamsOutputDescription = std::move(value); } /** *

Describes the Kinesis data stream that is configured as the destination where * output is written.

*/ inline OutputDescription& WithKinesisStreamsOutputDescription(const KinesisStreamsOutputDescription& value) { SetKinesisStreamsOutputDescription(value); return *this;} /** *

Describes the Kinesis data stream that is configured as the destination where * output is written.

*/ inline OutputDescription& WithKinesisStreamsOutputDescription(KinesisStreamsOutputDescription&& value) { SetKinesisStreamsOutputDescription(std::move(value)); return *this;} /** *

Describes the Kinesis Data Firehose delivery stream that is configured as the * destination where output is written.

*/ inline const KinesisFirehoseOutputDescription& GetKinesisFirehoseOutputDescription() const{ return m_kinesisFirehoseOutputDescription; } /** *

Describes the Kinesis Data Firehose delivery stream that is configured as the * destination where output is written.

*/ inline bool KinesisFirehoseOutputDescriptionHasBeenSet() const { return m_kinesisFirehoseOutputDescriptionHasBeenSet; } /** *

Describes the Kinesis Data Firehose delivery stream that is configured as the * destination where output is written.

*/ inline void SetKinesisFirehoseOutputDescription(const KinesisFirehoseOutputDescription& value) { m_kinesisFirehoseOutputDescriptionHasBeenSet = true; m_kinesisFirehoseOutputDescription = value; } /** *

Describes the Kinesis Data Firehose delivery stream that is configured as the * destination where output is written.

*/ inline void SetKinesisFirehoseOutputDescription(KinesisFirehoseOutputDescription&& value) { m_kinesisFirehoseOutputDescriptionHasBeenSet = true; m_kinesisFirehoseOutputDescription = std::move(value); } /** *

Describes the Kinesis Data Firehose delivery stream that is configured as the * destination where output is written.

*/ inline OutputDescription& WithKinesisFirehoseOutputDescription(const KinesisFirehoseOutputDescription& value) { SetKinesisFirehoseOutputDescription(value); return *this;} /** *

Describes the Kinesis Data Firehose delivery stream that is configured as the * destination where output is written.

*/ inline OutputDescription& WithKinesisFirehoseOutputDescription(KinesisFirehoseOutputDescription&& value) { SetKinesisFirehoseOutputDescription(std::move(value)); return *this;} /** *

Describes the Lambda function that is configured as the destination where * output is written.

*/ inline const LambdaOutputDescription& GetLambdaOutputDescription() const{ return m_lambdaOutputDescription; } /** *

Describes the Lambda function that is configured as the destination where * output is written.

*/ inline bool LambdaOutputDescriptionHasBeenSet() const { return m_lambdaOutputDescriptionHasBeenSet; } /** *

Describes the Lambda function that is configured as the destination where * output is written.

*/ inline void SetLambdaOutputDescription(const LambdaOutputDescription& value) { m_lambdaOutputDescriptionHasBeenSet = true; m_lambdaOutputDescription = value; } /** *

Describes the Lambda function that is configured as the destination where * output is written.

*/ inline void SetLambdaOutputDescription(LambdaOutputDescription&& value) { m_lambdaOutputDescriptionHasBeenSet = true; m_lambdaOutputDescription = std::move(value); } /** *

Describes the Lambda function that is configured as the destination where * output is written.

*/ inline OutputDescription& WithLambdaOutputDescription(const LambdaOutputDescription& value) { SetLambdaOutputDescription(value); return *this;} /** *

Describes the Lambda function that is configured as the destination where * output is written.

*/ inline OutputDescription& WithLambdaOutputDescription(LambdaOutputDescription&& value) { SetLambdaOutputDescription(std::move(value)); return *this;} /** *

The data format used for writing data to the destination.

*/ inline const DestinationSchema& GetDestinationSchema() const{ return m_destinationSchema; } /** *

The data format used for writing data to the destination.

*/ inline bool DestinationSchemaHasBeenSet() const { return m_destinationSchemaHasBeenSet; } /** *

The data format used for writing data to the destination.

*/ inline void SetDestinationSchema(const DestinationSchema& value) { m_destinationSchemaHasBeenSet = true; m_destinationSchema = value; } /** *

The data format used for writing data to the destination.

*/ inline void SetDestinationSchema(DestinationSchema&& value) { m_destinationSchemaHasBeenSet = true; m_destinationSchema = std::move(value); } /** *

The data format used for writing data to the destination.

*/ inline OutputDescription& WithDestinationSchema(const DestinationSchema& value) { SetDestinationSchema(value); return *this;} /** *

The data format used for writing data to the destination.

*/ inline OutputDescription& WithDestinationSchema(DestinationSchema&& value) { SetDestinationSchema(std::move(value)); return *this;} private: Aws::String m_outputId; bool m_outputIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; KinesisStreamsOutputDescription m_kinesisStreamsOutputDescription; bool m_kinesisStreamsOutputDescriptionHasBeenSet = false; KinesisFirehoseOutputDescription m_kinesisFirehoseOutputDescription; bool m_kinesisFirehoseOutputDescriptionHasBeenSet = false; LambdaOutputDescription m_lambdaOutputDescription; bool m_lambdaOutputDescriptionHasBeenSet = false; DestinationSchema m_destinationSchema; bool m_destinationSchemaHasBeenSet = false; }; } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws