/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Rekognition { namespace Model { /** */ class DetectModerationLabelsRequest : public RekognitionRequest { public: AWS_REKOGNITION_API DetectModerationLabelsRequest(); // 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 "DetectModerationLabels"; } AWS_REKOGNITION_API Aws::String SerializePayload() const override; AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The input image as base64-encoded bytes or an S3 object. If you use the AWS * CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is * not supported.

If you are using an AWS SDK to call Amazon Rekognition, * you might not need to base64-encode image bytes passed using the * Bytes field. For more information, see Images in the Amazon * Rekognition developer guide.

*/ inline const Image& GetImage() const{ return m_image; } /** *

The input image as base64-encoded bytes or an S3 object. If you use the AWS * CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is * not supported.

If you are using an AWS SDK to call Amazon Rekognition, * you might not need to base64-encode image bytes passed using the * Bytes field. For more information, see Images in the Amazon * Rekognition developer guide.

*/ inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } /** *

The input image as base64-encoded bytes or an S3 object. If you use the AWS * CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is * not supported.

If you are using an AWS SDK to call Amazon Rekognition, * you might not need to base64-encode image bytes passed using the * Bytes field. For more information, see Images in the Amazon * Rekognition developer guide.

*/ inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; } /** *

The input image as base64-encoded bytes or an S3 object. If you use the AWS * CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is * not supported.

If you are using an AWS SDK to call Amazon Rekognition, * you might not need to base64-encode image bytes passed using the * Bytes field. For more information, see Images in the Amazon * Rekognition developer guide.

*/ inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } /** *

The input image as base64-encoded bytes or an S3 object. If you use the AWS * CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is * not supported.

If you are using an AWS SDK to call Amazon Rekognition, * you might not need to base64-encode image bytes passed using the * Bytes field. For more information, see Images in the Amazon * Rekognition developer guide.

*/ inline DetectModerationLabelsRequest& WithImage(const Image& value) { SetImage(value); return *this;} /** *

The input image as base64-encoded bytes or an S3 object. If you use the AWS * CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is * not supported.

If you are using an AWS SDK to call Amazon Rekognition, * you might not need to base64-encode image bytes passed using the * Bytes field. For more information, see Images in the Amazon * Rekognition developer guide.

*/ inline DetectModerationLabelsRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;} /** *

Specifies the minimum confidence level for the labels to return. Amazon * Rekognition doesn't return any labels with a confidence level lower than this * specified value.

If you don't specify MinConfidence, the * operation returns labels with confidence values greater than or equal to 50 * percent.

*/ inline double GetMinConfidence() const{ return m_minConfidence; } /** *

Specifies the minimum confidence level for the labels to return. Amazon * Rekognition doesn't return any labels with a confidence level lower than this * specified value.

If you don't specify MinConfidence, the * operation returns labels with confidence values greater than or equal to 50 * percent.

*/ inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; } /** *

Specifies the minimum confidence level for the labels to return. Amazon * Rekognition doesn't return any labels with a confidence level lower than this * specified value.

If you don't specify MinConfidence, the * operation returns labels with confidence values greater than or equal to 50 * percent.

*/ inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; } /** *

Specifies the minimum confidence level for the labels to return. Amazon * Rekognition doesn't return any labels with a confidence level lower than this * specified value.

If you don't specify MinConfidence, the * operation returns labels with confidence values greater than or equal to 50 * percent.

*/ inline DetectModerationLabelsRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;} /** *

Sets up the configuration for human evaluation, including the FlowDefinition * the image will be sent to.

*/ inline const HumanLoopConfig& GetHumanLoopConfig() const{ return m_humanLoopConfig; } /** *

Sets up the configuration for human evaluation, including the FlowDefinition * the image will be sent to.

*/ inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; } /** *

Sets up the configuration for human evaluation, including the FlowDefinition * the image will be sent to.

*/ inline void SetHumanLoopConfig(const HumanLoopConfig& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = value; } /** *

Sets up the configuration for human evaluation, including the FlowDefinition * the image will be sent to.

*/ inline void SetHumanLoopConfig(HumanLoopConfig&& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = std::move(value); } /** *

Sets up the configuration for human evaluation, including the FlowDefinition * the image will be sent to.

*/ inline DetectModerationLabelsRequest& WithHumanLoopConfig(const HumanLoopConfig& value) { SetHumanLoopConfig(value); return *this;} /** *

Sets up the configuration for human evaluation, including the FlowDefinition * the image will be sent to.

*/ inline DetectModerationLabelsRequest& WithHumanLoopConfig(HumanLoopConfig&& value) { SetHumanLoopConfig(std::move(value)); return *this;} private: Image m_image; bool m_imageHasBeenSet = false; double m_minConfidence; bool m_minConfidenceHasBeenSet = false; HumanLoopConfig m_humanLoopConfig; bool m_humanLoopConfigHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws