/** * 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 #include #include #include #include #include namespace Aws { namespace Rekognition { namespace Model { /** */ class CreateStreamProcessorRequest : public RekognitionRequest { public: AWS_REKOGNITION_API CreateStreamProcessorRequest(); // 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 "CreateStreamProcessor"; } AWS_REKOGNITION_API Aws::String SerializePayload() const override; AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Kinesis video stream stream that provides the source streaming video. If you * are using the AWS CLI, the parameter name is StreamProcessorInput. * This is required for both face search and label detection stream processors.

*/ inline const StreamProcessorInput& GetInput() const{ return m_input; } /** *

Kinesis video stream stream that provides the source streaming video. If you * are using the AWS CLI, the parameter name is StreamProcessorInput. * This is required for both face search and label detection stream processors.

*/ inline bool InputHasBeenSet() const { return m_inputHasBeenSet; } /** *

Kinesis video stream stream that provides the source streaming video. If you * are using the AWS CLI, the parameter name is StreamProcessorInput. * This is required for both face search and label detection stream processors.

*/ inline void SetInput(const StreamProcessorInput& value) { m_inputHasBeenSet = true; m_input = value; } /** *

Kinesis video stream stream that provides the source streaming video. If you * are using the AWS CLI, the parameter name is StreamProcessorInput. * This is required for both face search and label detection stream processors.

*/ inline void SetInput(StreamProcessorInput&& value) { m_inputHasBeenSet = true; m_input = std::move(value); } /** *

Kinesis video stream stream that provides the source streaming video. If you * are using the AWS CLI, the parameter name is StreamProcessorInput. * This is required for both face search and label detection stream processors.

*/ inline CreateStreamProcessorRequest& WithInput(const StreamProcessorInput& value) { SetInput(value); return *this;} /** *

Kinesis video stream stream that provides the source streaming video. If you * are using the AWS CLI, the parameter name is StreamProcessorInput. * This is required for both face search and label detection stream processors.

*/ inline CreateStreamProcessorRequest& WithInput(StreamProcessorInput&& value) { SetInput(std::move(value)); return *this;} /** *

Kinesis data stream stream or Amazon S3 bucket location to which Amazon * Rekognition Video puts the analysis results. If you are using the AWS CLI, the * parameter name is StreamProcessorOutput. This must be a * S3Destination of an Amazon S3 bucket that you own for a label detection * stream processor or a Kinesis data stream ARN for a face search stream * processor.

*/ inline const StreamProcessorOutput& GetOutput() const{ return m_output; } /** *

Kinesis data stream stream or Amazon S3 bucket location to which Amazon * Rekognition Video puts the analysis results. If you are using the AWS CLI, the * parameter name is StreamProcessorOutput. This must be a * S3Destination of an Amazon S3 bucket that you own for a label detection * stream processor or a Kinesis data stream ARN for a face search stream * processor.

*/ inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; } /** *

Kinesis data stream stream or Amazon S3 bucket location to which Amazon * Rekognition Video puts the analysis results. If you are using the AWS CLI, the * parameter name is StreamProcessorOutput. This must be a * S3Destination of an Amazon S3 bucket that you own for a label detection * stream processor or a Kinesis data stream ARN for a face search stream * processor.

*/ inline void SetOutput(const StreamProcessorOutput& value) { m_outputHasBeenSet = true; m_output = value; } /** *

Kinesis data stream stream or Amazon S3 bucket location to which Amazon * Rekognition Video puts the analysis results. If you are using the AWS CLI, the * parameter name is StreamProcessorOutput. This must be a * S3Destination of an Amazon S3 bucket that you own for a label detection * stream processor or a Kinesis data stream ARN for a face search stream * processor.

*/ inline void SetOutput(StreamProcessorOutput&& value) { m_outputHasBeenSet = true; m_output = std::move(value); } /** *

Kinesis data stream stream or Amazon S3 bucket location to which Amazon * Rekognition Video puts the analysis results. If you are using the AWS CLI, the * parameter name is StreamProcessorOutput. This must be a * S3Destination of an Amazon S3 bucket that you own for a label detection * stream processor or a Kinesis data stream ARN for a face search stream * processor.

*/ inline CreateStreamProcessorRequest& WithOutput(const StreamProcessorOutput& value) { SetOutput(value); return *this;} /** *

Kinesis data stream stream or Amazon S3 bucket location to which Amazon * Rekognition Video puts the analysis results. If you are using the AWS CLI, the * parameter name is StreamProcessorOutput. This must be a * S3Destination of an Amazon S3 bucket that you own for a label detection * stream processor or a Kinesis data stream ARN for a face search stream * processor.

*/ inline CreateStreamProcessorRequest& WithOutput(StreamProcessorOutput&& value) { SetOutput(std::move(value)); return *this;} /** *

An identifier you assign to the stream processor. You can use * Name to manage the stream processor. For example, you can get the * current status of the stream processor by calling * DescribeStreamProcessor. Name is idempotent. This is * required for both face search and label detection stream processors.

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

An identifier you assign to the stream processor. You can use * Name to manage the stream processor. For example, you can get the * current status of the stream processor by calling * DescribeStreamProcessor. Name is idempotent. This is * required for both face search and label detection stream processors.

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

An identifier you assign to the stream processor. You can use * Name to manage the stream processor. For example, you can get the * current status of the stream processor by calling * DescribeStreamProcessor. Name is idempotent. This is * required for both face search and label detection stream processors.

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

An identifier you assign to the stream processor. You can use * Name to manage the stream processor. For example, you can get the * current status of the stream processor by calling * DescribeStreamProcessor. Name is idempotent. This is * required for both face search and label detection stream processors.

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

An identifier you assign to the stream processor. You can use * Name to manage the stream processor. For example, you can get the * current status of the stream processor by calling * DescribeStreamProcessor. Name is idempotent. This is * required for both face search and label detection stream processors.

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

An identifier you assign to the stream processor. You can use * Name to manage the stream processor. For example, you can get the * current status of the stream processor by calling * DescribeStreamProcessor. Name is idempotent. This is * required for both face search and label detection stream processors.

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

An identifier you assign to the stream processor. You can use * Name to manage the stream processor. For example, you can get the * current status of the stream processor by calling * DescribeStreamProcessor. Name is idempotent. This is * required for both face search and label detection stream processors.

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

An identifier you assign to the stream processor. You can use * Name to manage the stream processor. For example, you can get the * current status of the stream processor by calling * DescribeStreamProcessor. Name is idempotent. This is * required for both face search and label detection stream processors.

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

Input parameters used in a streaming video analyzed by a stream processor. * You can use FaceSearch to recognize faces in a streaming video, or * you can use ConnectedHome to detect labels.

*/ inline const StreamProcessorSettings& GetSettings() const{ return m_settings; } /** *

Input parameters used in a streaming video analyzed by a stream processor. * You can use FaceSearch to recognize faces in a streaming video, or * you can use ConnectedHome to detect labels.

*/ inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; } /** *

Input parameters used in a streaming video analyzed by a stream processor. * You can use FaceSearch to recognize faces in a streaming video, or * you can use ConnectedHome to detect labels.

*/ inline void SetSettings(const StreamProcessorSettings& value) { m_settingsHasBeenSet = true; m_settings = value; } /** *

Input parameters used in a streaming video analyzed by a stream processor. * You can use FaceSearch to recognize faces in a streaming video, or * you can use ConnectedHome to detect labels.

*/ inline void SetSettings(StreamProcessorSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); } /** *

Input parameters used in a streaming video analyzed by a stream processor. * You can use FaceSearch to recognize faces in a streaming video, or * you can use ConnectedHome to detect labels.

*/ inline CreateStreamProcessorRequest& WithSettings(const StreamProcessorSettings& value) { SetSettings(value); return *this;} /** *

Input parameters used in a streaming video analyzed by a stream processor. * You can use FaceSearch to recognize faces in a streaming video, or * you can use ConnectedHome to detect labels.

*/ inline CreateStreamProcessorRequest& WithSettings(StreamProcessorSettings&& value) { SetSettings(std::move(value)); return *this;} /** *

The Amazon Resource Number (ARN) of the IAM role that allows access to the * stream processor. The IAM role provides Rekognition read permissions for a * Kinesis stream. It also provides write permissions to an Amazon S3 bucket and * Amazon Simple Notification Service topic for a label detection stream processor. * This is required for both face search and label detection stream processors.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Number (ARN) of the IAM role that allows access to the * stream processor. The IAM role provides Rekognition read permissions for a * Kinesis stream. It also provides write permissions to an Amazon S3 bucket and * Amazon Simple Notification Service topic for a label detection stream processor. * This is required for both face search and label detection stream processors.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Number (ARN) of the IAM role that allows access to the * stream processor. The IAM role provides Rekognition read permissions for a * Kinesis stream. It also provides write permissions to an Amazon S3 bucket and * Amazon Simple Notification Service topic for a label detection stream processor. * This is required for both face search and label detection stream processors.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Number (ARN) of the IAM role that allows access to the * stream processor. The IAM role provides Rekognition read permissions for a * Kinesis stream. It also provides write permissions to an Amazon S3 bucket and * Amazon Simple Notification Service topic for a label detection stream processor. * This is required for both face search and label detection stream processors.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Number (ARN) of the IAM role that allows access to the * stream processor. The IAM role provides Rekognition read permissions for a * Kinesis stream. It also provides write permissions to an Amazon S3 bucket and * Amazon Simple Notification Service topic for a label detection stream processor. * This is required for both face search and label detection stream processors.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Number (ARN) of the IAM role that allows access to the * stream processor. The IAM role provides Rekognition read permissions for a * Kinesis stream. It also provides write permissions to an Amazon S3 bucket and * Amazon Simple Notification Service topic for a label detection stream processor. * This is required for both face search and label detection stream processors.

*/ inline CreateStreamProcessorRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Number (ARN) of the IAM role that allows access to the * stream processor. The IAM role provides Rekognition read permissions for a * Kinesis stream. It also provides write permissions to an Amazon S3 bucket and * Amazon Simple Notification Service topic for a label detection stream processor. * This is required for both face search and label detection stream processors.

*/ inline CreateStreamProcessorRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Number (ARN) of the IAM role that allows access to the * stream processor. The IAM role provides Rekognition read permissions for a * Kinesis stream. It also provides write permissions to an Amazon S3 bucket and * Amazon Simple Notification Service topic for a label detection stream processor. * This is required for both face search and label detection stream processors.

*/ inline CreateStreamProcessorRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline CreateStreamProcessorRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline CreateStreamProcessorRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline CreateStreamProcessorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline CreateStreamProcessorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline CreateStreamProcessorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline CreateStreamProcessorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline CreateStreamProcessorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline CreateStreamProcessorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A set of tags (key-value pairs) that you want to attach to the stream * processor.

*/ inline CreateStreamProcessorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } inline const StreamProcessorNotificationChannel& GetNotificationChannel() const{ return m_notificationChannel; } inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; } inline void SetNotificationChannel(const StreamProcessorNotificationChannel& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = value; } inline void SetNotificationChannel(StreamProcessorNotificationChannel&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::move(value); } inline CreateStreamProcessorRequest& WithNotificationChannel(const StreamProcessorNotificationChannel& value) { SetNotificationChannel(value); return *this;} inline CreateStreamProcessorRequest& WithNotificationChannel(StreamProcessorNotificationChannel&& value) { SetNotificationChannel(std::move(value)); return *this;} /** *

The identifier for your AWS Key Management Service key (AWS KMS key). This * is an optional parameter for label detection stream processors and should not be * used to create a face search stream processor. You can supply the Amazon * Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your * KMS key, or an alias ARN. The key is used to encrypt results and data published * to your Amazon S3 bucket, which includes image frames and hero images. Your * source images are unaffected.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The identifier for your AWS Key Management Service key (AWS KMS key). This * is an optional parameter for label detection stream processors and should not be * used to create a face search stream processor. You can supply the Amazon * Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your * KMS key, or an alias ARN. The key is used to encrypt results and data published * to your Amazon S3 bucket, which includes image frames and hero images. Your * source images are unaffected.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The identifier for your AWS Key Management Service key (AWS KMS key). This * is an optional parameter for label detection stream processors and should not be * used to create a face search stream processor. You can supply the Amazon * Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your * KMS key, or an alias ARN. The key is used to encrypt results and data published * to your Amazon S3 bucket, which includes image frames and hero images. Your * source images are unaffected.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The identifier for your AWS Key Management Service key (AWS KMS key). This * is an optional parameter for label detection stream processors and should not be * used to create a face search stream processor. You can supply the Amazon * Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your * KMS key, or an alias ARN. The key is used to encrypt results and data published * to your Amazon S3 bucket, which includes image frames and hero images. Your * source images are unaffected.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The identifier for your AWS Key Management Service key (AWS KMS key). This * is an optional parameter for label detection stream processors and should not be * used to create a face search stream processor. You can supply the Amazon * Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your * KMS key, or an alias ARN. The key is used to encrypt results and data published * to your Amazon S3 bucket, which includes image frames and hero images. Your * source images are unaffected.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The identifier for your AWS Key Management Service key (AWS KMS key). This * is an optional parameter for label detection stream processors and should not be * used to create a face search stream processor. You can supply the Amazon * Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your * KMS key, or an alias ARN. The key is used to encrypt results and data published * to your Amazon S3 bucket, which includes image frames and hero images. Your * source images are unaffected.

*/ inline CreateStreamProcessorRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The identifier for your AWS Key Management Service key (AWS KMS key). This * is an optional parameter for label detection stream processors and should not be * used to create a face search stream processor. You can supply the Amazon * Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your * KMS key, or an alias ARN. The key is used to encrypt results and data published * to your Amazon S3 bucket, which includes image frames and hero images. Your * source images are unaffected.

*/ inline CreateStreamProcessorRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The identifier for your AWS Key Management Service key (AWS KMS key). This * is an optional parameter for label detection stream processors and should not be * used to create a face search stream processor. You can supply the Amazon * Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your * KMS key, or an alias ARN. The key is used to encrypt results and data published * to your Amazon S3 bucket, which includes image frames and hero images. Your * source images are unaffected.

*/ inline CreateStreamProcessorRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

Specifies locations in the frames where Amazon Rekognition checks for * objects or people. You can specify up to 10 regions of interest, and each region * has either a polygon or a bounding box. This is an optional parameter for label * detection stream processors and should not be used to create a face search * stream processor.

*/ inline const Aws::Vector& GetRegionsOfInterest() const{ return m_regionsOfInterest; } /** *

Specifies locations in the frames where Amazon Rekognition checks for * objects or people. You can specify up to 10 regions of interest, and each region * has either a polygon or a bounding box. This is an optional parameter for label * detection stream processors and should not be used to create a face search * stream processor.

*/ inline bool RegionsOfInterestHasBeenSet() const { return m_regionsOfInterestHasBeenSet; } /** *

Specifies locations in the frames where Amazon Rekognition checks for * objects or people. You can specify up to 10 regions of interest, and each region * has either a polygon or a bounding box. This is an optional parameter for label * detection stream processors and should not be used to create a face search * stream processor.

*/ inline void SetRegionsOfInterest(const Aws::Vector& value) { m_regionsOfInterestHasBeenSet = true; m_regionsOfInterest = value; } /** *

Specifies locations in the frames where Amazon Rekognition checks for * objects or people. You can specify up to 10 regions of interest, and each region * has either a polygon or a bounding box. This is an optional parameter for label * detection stream processors and should not be used to create a face search * stream processor.

*/ inline void SetRegionsOfInterest(Aws::Vector&& value) { m_regionsOfInterestHasBeenSet = true; m_regionsOfInterest = std::move(value); } /** *

Specifies locations in the frames where Amazon Rekognition checks for * objects or people. You can specify up to 10 regions of interest, and each region * has either a polygon or a bounding box. This is an optional parameter for label * detection stream processors and should not be used to create a face search * stream processor.

*/ inline CreateStreamProcessorRequest& WithRegionsOfInterest(const Aws::Vector& value) { SetRegionsOfInterest(value); return *this;} /** *

Specifies locations in the frames where Amazon Rekognition checks for * objects or people. You can specify up to 10 regions of interest, and each region * has either a polygon or a bounding box. This is an optional parameter for label * detection stream processors and should not be used to create a face search * stream processor.

*/ inline CreateStreamProcessorRequest& WithRegionsOfInterest(Aws::Vector&& value) { SetRegionsOfInterest(std::move(value)); return *this;} /** *

Specifies locations in the frames where Amazon Rekognition checks for * objects or people. You can specify up to 10 regions of interest, and each region * has either a polygon or a bounding box. This is an optional parameter for label * detection stream processors and should not be used to create a face search * stream processor.

*/ inline CreateStreamProcessorRequest& AddRegionsOfInterest(const RegionOfInterest& value) { m_regionsOfInterestHasBeenSet = true; m_regionsOfInterest.push_back(value); return *this; } /** *

Specifies locations in the frames where Amazon Rekognition checks for * objects or people. You can specify up to 10 regions of interest, and each region * has either a polygon or a bounding box. This is an optional parameter for label * detection stream processors and should not be used to create a face search * stream processor.

*/ inline CreateStreamProcessorRequest& AddRegionsOfInterest(RegionOfInterest&& value) { m_regionsOfInterestHasBeenSet = true; m_regionsOfInterest.push_back(std::move(value)); return *this; } /** *

Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a per-stream * basis. Note that if you opt out at the account level this setting is ignored on * individual streams.

*/ inline const StreamProcessorDataSharingPreference& GetDataSharingPreference() const{ return m_dataSharingPreference; } /** *

Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a per-stream * basis. Note that if you opt out at the account level this setting is ignored on * individual streams.

*/ inline bool DataSharingPreferenceHasBeenSet() const { return m_dataSharingPreferenceHasBeenSet; } /** *

Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a per-stream * basis. Note that if you opt out at the account level this setting is ignored on * individual streams.

*/ inline void SetDataSharingPreference(const StreamProcessorDataSharingPreference& value) { m_dataSharingPreferenceHasBeenSet = true; m_dataSharingPreference = value; } /** *

Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a per-stream * basis. Note that if you opt out at the account level this setting is ignored on * individual streams.

*/ inline void SetDataSharingPreference(StreamProcessorDataSharingPreference&& value) { m_dataSharingPreferenceHasBeenSet = true; m_dataSharingPreference = std::move(value); } /** *

Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a per-stream * basis. Note that if you opt out at the account level this setting is ignored on * individual streams.

*/ inline CreateStreamProcessorRequest& WithDataSharingPreference(const StreamProcessorDataSharingPreference& value) { SetDataSharingPreference(value); return *this;} /** *

Shows whether you are sharing data with Rekognition to improve model * performance. You can choose this option at the account level or on a per-stream * basis. Note that if you opt out at the account level this setting is ignored on * individual streams.

*/ inline CreateStreamProcessorRequest& WithDataSharingPreference(StreamProcessorDataSharingPreference&& value) { SetDataSharingPreference(std::move(value)); return *this;} private: StreamProcessorInput m_input; bool m_inputHasBeenSet = false; StreamProcessorOutput m_output; bool m_outputHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; StreamProcessorSettings m_settings; bool m_settingsHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; StreamProcessorNotificationChannel m_notificationChannel; bool m_notificationChannelHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::Vector m_regionsOfInterest; bool m_regionsOfInterestHasBeenSet = false; StreamProcessorDataSharingPreference m_dataSharingPreference; bool m_dataSharingPreferenceHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws