/** * 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 KinesisAnalyticsV2 { namespace Model { /** */ class DiscoverInputSchemaRequest : public KinesisAnalyticsV2Request { public: AWS_KINESISANALYTICSV2_API DiscoverInputSchemaRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DiscoverInputSchema"; } AWS_KINESISANALYTICSV2_API Aws::String SerializePayload() const override; AWS_KINESISANALYTICSV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the streaming source.

*/ inline const Aws::String& GetResourceARN() const{ return m_resourceARN; } /** *

The Amazon Resource Name (ARN) of the streaming source.

*/ inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the streaming source.

*/ inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; } /** *

The Amazon Resource Name (ARN) of the streaming source.

*/ inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the streaming source.

*/ inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the streaming source.

*/ inline DiscoverInputSchemaRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the streaming source.

*/ inline DiscoverInputSchemaRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the streaming source.

*/ inline DiscoverInputSchemaRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;} /** *

The ARN of the role that is used to access the streaming source.

*/ inline const Aws::String& GetServiceExecutionRole() const{ return m_serviceExecutionRole; } /** *

The ARN of the role that is used to access the streaming source.

*/ inline bool ServiceExecutionRoleHasBeenSet() const { return m_serviceExecutionRoleHasBeenSet; } /** *

The ARN of the role that is used to access the streaming source.

*/ inline void SetServiceExecutionRole(const Aws::String& value) { m_serviceExecutionRoleHasBeenSet = true; m_serviceExecutionRole = value; } /** *

The ARN of the role that is used to access the streaming source.

*/ inline void SetServiceExecutionRole(Aws::String&& value) { m_serviceExecutionRoleHasBeenSet = true; m_serviceExecutionRole = std::move(value); } /** *

The ARN of the role that is used to access the streaming source.

*/ inline void SetServiceExecutionRole(const char* value) { m_serviceExecutionRoleHasBeenSet = true; m_serviceExecutionRole.assign(value); } /** *

The ARN of the role that is used to access the streaming source.

*/ inline DiscoverInputSchemaRequest& WithServiceExecutionRole(const Aws::String& value) { SetServiceExecutionRole(value); return *this;} /** *

The ARN of the role that is used to access the streaming source.

*/ inline DiscoverInputSchemaRequest& WithServiceExecutionRole(Aws::String&& value) { SetServiceExecutionRole(std::move(value)); return *this;} /** *

The ARN of the role that is used to access the streaming source.

*/ inline DiscoverInputSchemaRequest& WithServiceExecutionRole(const char* value) { SetServiceExecutionRole(value); return *this;} /** *

The point at which you want Kinesis Data Analytics to start reading records * from the specified streaming source discovery purposes.

*/ inline const InputStartingPositionConfiguration& GetInputStartingPositionConfiguration() const{ return m_inputStartingPositionConfiguration; } /** *

The point at which you want Kinesis Data Analytics to start reading records * from the specified streaming source discovery purposes.

*/ inline bool InputStartingPositionConfigurationHasBeenSet() const { return m_inputStartingPositionConfigurationHasBeenSet; } /** *

The point at which you want Kinesis Data Analytics to start reading records * from the specified streaming source discovery purposes.

*/ inline void SetInputStartingPositionConfiguration(const InputStartingPositionConfiguration& value) { m_inputStartingPositionConfigurationHasBeenSet = true; m_inputStartingPositionConfiguration = value; } /** *

The point at which you want Kinesis Data Analytics to start reading records * from the specified streaming source discovery purposes.

*/ inline void SetInputStartingPositionConfiguration(InputStartingPositionConfiguration&& value) { m_inputStartingPositionConfigurationHasBeenSet = true; m_inputStartingPositionConfiguration = std::move(value); } /** *

The point at which you want Kinesis Data Analytics to start reading records * from the specified streaming source discovery purposes.

*/ inline DiscoverInputSchemaRequest& WithInputStartingPositionConfiguration(const InputStartingPositionConfiguration& value) { SetInputStartingPositionConfiguration(value); return *this;} /** *

The point at which you want Kinesis Data Analytics to start reading records * from the specified streaming source discovery purposes.

*/ inline DiscoverInputSchemaRequest& WithInputStartingPositionConfiguration(InputStartingPositionConfiguration&& value) { SetInputStartingPositionConfiguration(std::move(value)); return *this;} /** *

Specify this parameter to discover a schema from data in an Amazon S3 * object.

*/ inline const S3Configuration& GetS3Configuration() const{ return m_s3Configuration; } /** *

Specify this parameter to discover a schema from data in an Amazon S3 * object.

*/ inline bool S3ConfigurationHasBeenSet() const { return m_s3ConfigurationHasBeenSet; } /** *

Specify this parameter to discover a schema from data in an Amazon S3 * object.

*/ inline void SetS3Configuration(const S3Configuration& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = value; } /** *

Specify this parameter to discover a schema from data in an Amazon S3 * object.

*/ inline void SetS3Configuration(S3Configuration&& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = std::move(value); } /** *

Specify this parameter to discover a schema from data in an Amazon S3 * object.

*/ inline DiscoverInputSchemaRequest& WithS3Configuration(const S3Configuration& value) { SetS3Configuration(value); return *this;} /** *

Specify this parameter to discover a schema from data in an Amazon S3 * object.

*/ inline DiscoverInputSchemaRequest& WithS3Configuration(S3Configuration&& value) { SetS3Configuration(std::move(value)); return *this;} /** *

The InputProcessingConfiguration to use to preprocess the records * before discovering the schema of the records.

*/ inline const InputProcessingConfiguration& GetInputProcessingConfiguration() const{ return m_inputProcessingConfiguration; } /** *

The InputProcessingConfiguration to use to preprocess the records * before discovering the schema of the records.

*/ inline bool InputProcessingConfigurationHasBeenSet() const { return m_inputProcessingConfigurationHasBeenSet; } /** *

The InputProcessingConfiguration to use to preprocess the records * before discovering the schema of the records.

*/ inline void SetInputProcessingConfiguration(const InputProcessingConfiguration& value) { m_inputProcessingConfigurationHasBeenSet = true; m_inputProcessingConfiguration = value; } /** *

The InputProcessingConfiguration to use to preprocess the records * before discovering the schema of the records.

*/ inline void SetInputProcessingConfiguration(InputProcessingConfiguration&& value) { m_inputProcessingConfigurationHasBeenSet = true; m_inputProcessingConfiguration = std::move(value); } /** *

The InputProcessingConfiguration to use to preprocess the records * before discovering the schema of the records.

*/ inline DiscoverInputSchemaRequest& WithInputProcessingConfiguration(const InputProcessingConfiguration& value) { SetInputProcessingConfiguration(value); return *this;} /** *

The InputProcessingConfiguration to use to preprocess the records * before discovering the schema of the records.

*/ inline DiscoverInputSchemaRequest& WithInputProcessingConfiguration(InputProcessingConfiguration&& value) { SetInputProcessingConfiguration(std::move(value)); return *this;} private: Aws::String m_resourceARN; bool m_resourceARNHasBeenSet = false; Aws::String m_serviceExecutionRole; bool m_serviceExecutionRoleHasBeenSet = false; InputStartingPositionConfiguration m_inputStartingPositionConfiguration; bool m_inputStartingPositionConfigurationHasBeenSet = false; S3Configuration m_s3Configuration; bool m_s3ConfigurationHasBeenSet = false; InputProcessingConfiguration m_inputProcessingConfiguration; bool m_inputProcessingConfigurationHasBeenSet = false; }; } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws