This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

355 lines
16 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/kinesisanalyticsv2/KinesisAnalyticsV2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/kinesisanalyticsv2/model/InputProcessingConfiguration.h>
#include <aws/kinesisanalyticsv2/model/KinesisStreamsInput.h>
#include <aws/kinesisanalyticsv2/model/KinesisFirehoseInput.h>
#include <aws/kinesisanalyticsv2/model/InputParallelism.h>
#include <aws/kinesisanalyticsv2/model/SourceSchema.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace KinesisAnalyticsV2
{
namespace Model
{
/**
* <p>When you configure the application input for an SQL-based Amazon Kinesis Data
* Analytics application, you specify the streaming source, the in-application
* stream name that is created, and the mapping between the two. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/Input">AWS
* API Reference</a></p>
*/
class AWS_KINESISANALYTICSV2_API Input
{
public:
Input();
Input(Aws::Utils::Json::JsonView jsonValue);
Input& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name prefix to use when creating an in-application stream. Suppose that
* you specify a prefix "<code>MyInApplicationStream</code>." Kinesis Data
* Analytics then creates one or more (as per the <code>InputParallelism</code>
* count you specified) in-application streams with the names
* "<code>MyInApplicationStream_001</code>,"
* "<code>MyInApplicationStream_002</code>," and so on. </p>
*/
inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; }
/**
* <p>The name prefix to use when creating an in-application stream. Suppose that
* you specify a prefix "<code>MyInApplicationStream</code>." Kinesis Data
* Analytics then creates one or more (as per the <code>InputParallelism</code>
* count you specified) in-application streams with the names
* "<code>MyInApplicationStream_001</code>,"
* "<code>MyInApplicationStream_002</code>," and so on. </p>
*/
inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
/**
* <p>The name prefix to use when creating an in-application stream. Suppose that
* you specify a prefix "<code>MyInApplicationStream</code>." Kinesis Data
* Analytics then creates one or more (as per the <code>InputParallelism</code>
* count you specified) in-application streams with the names
* "<code>MyInApplicationStream_001</code>,"
* "<code>MyInApplicationStream_002</code>," and so on. </p>
*/
inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; }
/**
* <p>The name prefix to use when creating an in-application stream. Suppose that
* you specify a prefix "<code>MyInApplicationStream</code>." Kinesis Data
* Analytics then creates one or more (as per the <code>InputParallelism</code>
* count you specified) in-application streams with the names
* "<code>MyInApplicationStream_001</code>,"
* "<code>MyInApplicationStream_002</code>," and so on. </p>
*/
inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); }
/**
* <p>The name prefix to use when creating an in-application stream. Suppose that
* you specify a prefix "<code>MyInApplicationStream</code>." Kinesis Data
* Analytics then creates one or more (as per the <code>InputParallelism</code>
* count you specified) in-application streams with the names
* "<code>MyInApplicationStream_001</code>,"
* "<code>MyInApplicationStream_002</code>," and so on. </p>
*/
inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); }
/**
* <p>The name prefix to use when creating an in-application stream. Suppose that
* you specify a prefix "<code>MyInApplicationStream</code>." Kinesis Data
* Analytics then creates one or more (as per the <code>InputParallelism</code>
* count you specified) in-application streams with the names
* "<code>MyInApplicationStream_001</code>,"
* "<code>MyInApplicationStream_002</code>," and so on. </p>
*/
inline Input& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;}
/**
* <p>The name prefix to use when creating an in-application stream. Suppose that
* you specify a prefix "<code>MyInApplicationStream</code>." Kinesis Data
* Analytics then creates one or more (as per the <code>InputParallelism</code>
* count you specified) in-application streams with the names
* "<code>MyInApplicationStream_001</code>,"
* "<code>MyInApplicationStream_002</code>," and so on. </p>
*/
inline Input& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;}
/**
* <p>The name prefix to use when creating an in-application stream. Suppose that
* you specify a prefix "<code>MyInApplicationStream</code>." Kinesis Data
* Analytics then creates one or more (as per the <code>InputParallelism</code>
* count you specified) in-application streams with the names
* "<code>MyInApplicationStream_001</code>,"
* "<code>MyInApplicationStream_002</code>," and so on. </p>
*/
inline Input& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;}
/**
* <p>The <a>InputProcessingConfiguration</a> for the input. An input processor
* transforms records as they are received from the stream, before the
* application's SQL code executes. Currently, the only input processing
* configuration available is <a>InputLambdaProcessor</a>. </p>
*/
inline const InputProcessingConfiguration& GetInputProcessingConfiguration() const{ return m_inputProcessingConfiguration; }
/**
* <p>The <a>InputProcessingConfiguration</a> for the input. An input processor
* transforms records as they are received from the stream, before the
* application's SQL code executes. Currently, the only input processing
* configuration available is <a>InputLambdaProcessor</a>. </p>
*/
inline bool InputProcessingConfigurationHasBeenSet() const { return m_inputProcessingConfigurationHasBeenSet; }
/**
* <p>The <a>InputProcessingConfiguration</a> for the input. An input processor
* transforms records as they are received from the stream, before the
* application's SQL code executes. Currently, the only input processing
* configuration available is <a>InputLambdaProcessor</a>. </p>
*/
inline void SetInputProcessingConfiguration(const InputProcessingConfiguration& value) { m_inputProcessingConfigurationHasBeenSet = true; m_inputProcessingConfiguration = value; }
/**
* <p>The <a>InputProcessingConfiguration</a> for the input. An input processor
* transforms records as they are received from the stream, before the
* application's SQL code executes. Currently, the only input processing
* configuration available is <a>InputLambdaProcessor</a>. </p>
*/
inline void SetInputProcessingConfiguration(InputProcessingConfiguration&& value) { m_inputProcessingConfigurationHasBeenSet = true; m_inputProcessingConfiguration = std::move(value); }
/**
* <p>The <a>InputProcessingConfiguration</a> for the input. An input processor
* transforms records as they are received from the stream, before the
* application's SQL code executes. Currently, the only input processing
* configuration available is <a>InputLambdaProcessor</a>. </p>
*/
inline Input& WithInputProcessingConfiguration(const InputProcessingConfiguration& value) { SetInputProcessingConfiguration(value); return *this;}
/**
* <p>The <a>InputProcessingConfiguration</a> for the input. An input processor
* transforms records as they are received from the stream, before the
* application's SQL code executes. Currently, the only input processing
* configuration available is <a>InputLambdaProcessor</a>. </p>
*/
inline Input& WithInputProcessingConfiguration(InputProcessingConfiguration&& value) { SetInputProcessingConfiguration(std::move(value)); return *this;}
/**
* <p>If the streaming source is an Amazon Kinesis data stream, identifies the
* stream's Amazon Resource Name (ARN). </p>
*/
inline const KinesisStreamsInput& GetKinesisStreamsInput() const{ return m_kinesisStreamsInput; }
/**
* <p>If the streaming source is an Amazon Kinesis data stream, identifies the
* stream's Amazon Resource Name (ARN). </p>
*/
inline bool KinesisStreamsInputHasBeenSet() const { return m_kinesisStreamsInputHasBeenSet; }
/**
* <p>If the streaming source is an Amazon Kinesis data stream, identifies the
* stream's Amazon Resource Name (ARN). </p>
*/
inline void SetKinesisStreamsInput(const KinesisStreamsInput& value) { m_kinesisStreamsInputHasBeenSet = true; m_kinesisStreamsInput = value; }
/**
* <p>If the streaming source is an Amazon Kinesis data stream, identifies the
* stream's Amazon Resource Name (ARN). </p>
*/
inline void SetKinesisStreamsInput(KinesisStreamsInput&& value) { m_kinesisStreamsInputHasBeenSet = true; m_kinesisStreamsInput = std::move(value); }
/**
* <p>If the streaming source is an Amazon Kinesis data stream, identifies the
* stream's Amazon Resource Name (ARN). </p>
*/
inline Input& WithKinesisStreamsInput(const KinesisStreamsInput& value) { SetKinesisStreamsInput(value); return *this;}
/**
* <p>If the streaming source is an Amazon Kinesis data stream, identifies the
* stream's Amazon Resource Name (ARN). </p>
*/
inline Input& WithKinesisStreamsInput(KinesisStreamsInput&& value) { SetKinesisStreamsInput(std::move(value)); return *this;}
/**
* <p>If the streaming source is an Amazon Kinesis Data Firehose delivery stream,
* identifies the delivery stream's ARN.</p>
*/
inline const KinesisFirehoseInput& GetKinesisFirehoseInput() const{ return m_kinesisFirehoseInput; }
/**
* <p>If the streaming source is an Amazon Kinesis Data Firehose delivery stream,
* identifies the delivery stream's ARN.</p>
*/
inline bool KinesisFirehoseInputHasBeenSet() const { return m_kinesisFirehoseInputHasBeenSet; }
/**
* <p>If the streaming source is an Amazon Kinesis Data Firehose delivery stream,
* identifies the delivery stream's ARN.</p>
*/
inline void SetKinesisFirehoseInput(const KinesisFirehoseInput& value) { m_kinesisFirehoseInputHasBeenSet = true; m_kinesisFirehoseInput = value; }
/**
* <p>If the streaming source is an Amazon Kinesis Data Firehose delivery stream,
* identifies the delivery stream's ARN.</p>
*/
inline void SetKinesisFirehoseInput(KinesisFirehoseInput&& value) { m_kinesisFirehoseInputHasBeenSet = true; m_kinesisFirehoseInput = std::move(value); }
/**
* <p>If the streaming source is an Amazon Kinesis Data Firehose delivery stream,
* identifies the delivery stream's ARN.</p>
*/
inline Input& WithKinesisFirehoseInput(const KinesisFirehoseInput& value) { SetKinesisFirehoseInput(value); return *this;}
/**
* <p>If the streaming source is an Amazon Kinesis Data Firehose delivery stream,
* identifies the delivery stream's ARN.</p>
*/
inline Input& WithKinesisFirehoseInput(KinesisFirehoseInput&& value) { SetKinesisFirehoseInput(std::move(value)); return *this;}
/**
* <p>Describes the number of in-application streams to create. </p>
*/
inline const InputParallelism& GetInputParallelism() const{ return m_inputParallelism; }
/**
* <p>Describes the number of in-application streams to create. </p>
*/
inline bool InputParallelismHasBeenSet() const { return m_inputParallelismHasBeenSet; }
/**
* <p>Describes the number of in-application streams to create. </p>
*/
inline void SetInputParallelism(const InputParallelism& value) { m_inputParallelismHasBeenSet = true; m_inputParallelism = value; }
/**
* <p>Describes the number of in-application streams to create. </p>
*/
inline void SetInputParallelism(InputParallelism&& value) { m_inputParallelismHasBeenSet = true; m_inputParallelism = std::move(value); }
/**
* <p>Describes the number of in-application streams to create. </p>
*/
inline Input& WithInputParallelism(const InputParallelism& value) { SetInputParallelism(value); return *this;}
/**
* <p>Describes the number of in-application streams to create. </p>
*/
inline Input& WithInputParallelism(InputParallelism&& value) { SetInputParallelism(std::move(value)); return *this;}
/**
* <p>Describes the format of the data in the streaming source, and how each data
* element maps to corresponding columns in the in-application stream that is being
* created.</p> <p>Also used to describe the format of the reference data
* source.</p>
*/
inline const SourceSchema& GetInputSchema() const{ return m_inputSchema; }
/**
* <p>Describes the format of the data in the streaming source, and how each data
* element maps to corresponding columns in the in-application stream that is being
* created.</p> <p>Also used to describe the format of the reference data
* source.</p>
*/
inline bool InputSchemaHasBeenSet() const { return m_inputSchemaHasBeenSet; }
/**
* <p>Describes the format of the data in the streaming source, and how each data
* element maps to corresponding columns in the in-application stream that is being
* created.</p> <p>Also used to describe the format of the reference data
* source.</p>
*/
inline void SetInputSchema(const SourceSchema& value) { m_inputSchemaHasBeenSet = true; m_inputSchema = value; }
/**
* <p>Describes the format of the data in the streaming source, and how each data
* element maps to corresponding columns in the in-application stream that is being
* created.</p> <p>Also used to describe the format of the reference data
* source.</p>
*/
inline void SetInputSchema(SourceSchema&& value) { m_inputSchemaHasBeenSet = true; m_inputSchema = std::move(value); }
/**
* <p>Describes the format of the data in the streaming source, and how each data
* element maps to corresponding columns in the in-application stream that is being
* created.</p> <p>Also used to describe the format of the reference data
* source.</p>
*/
inline Input& WithInputSchema(const SourceSchema& value) { SetInputSchema(value); return *this;}
/**
* <p>Describes the format of the data in the streaming source, and how each data
* element maps to corresponding columns in the in-application stream that is being
* created.</p> <p>Also used to describe the format of the reference data
* source.</p>
*/
inline Input& WithInputSchema(SourceSchema&& value) { SetInputSchema(std::move(value)); return *this;}
private:
Aws::String m_namePrefix;
bool m_namePrefixHasBeenSet;
InputProcessingConfiguration m_inputProcessingConfiguration;
bool m_inputProcessingConfigurationHasBeenSet;
KinesisStreamsInput m_kinesisStreamsInput;
bool m_kinesisStreamsInputHasBeenSet;
KinesisFirehoseInput m_kinesisFirehoseInput;
bool m_kinesisFirehoseInputHasBeenSet;
InputParallelism m_inputParallelism;
bool m_inputParallelismHasBeenSet;
SourceSchema m_inputSchema;
bool m_inputSchemaHasBeenSet;
};
} // namespace Model
} // namespace KinesisAnalyticsV2
} // namespace Aws