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

Provides information about a single type of unsafe content found in an image * or video. Each type of moderated content has a label within a hierarchical * taxonomy. For more information, see Detecting Unsafe Content in the Amazon * Rekognition Developer Guide.

See Also:

AWS * API Reference

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

Specifies the confidence that Amazon Rekognition has that the label has been * correctly identified.

If you don't specify the MinConfidence * parameter in the call to DetectModerationLabels, the operation * returns labels with a confidence value greater than or equal to 50 percent.

*/ inline double GetConfidence() const{ return m_confidence; } /** *

Specifies the confidence that Amazon Rekognition has that the label has been * correctly identified.

If you don't specify the MinConfidence * parameter in the call to DetectModerationLabels, the operation * returns labels with a confidence value greater than or equal to 50 percent.

*/ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } /** *

Specifies the confidence that Amazon Rekognition has that the label has been * correctly identified.

If you don't specify the MinConfidence * parameter in the call to DetectModerationLabels, the operation * returns labels with a confidence value greater than or equal to 50 percent.

*/ inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; } /** *

Specifies the confidence that Amazon Rekognition has that the label has been * correctly identified.

If you don't specify the MinConfidence * parameter in the call to DetectModerationLabels, the operation * returns labels with a confidence value greater than or equal to 50 percent.

*/ inline ModerationLabel& WithConfidence(double value) { SetConfidence(value); return *this;} /** *

The label name for the type of unsafe content detected in the image.

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

The label name for the type of unsafe content detected in the image.

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

The label name for the type of unsafe content detected in the image.

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

The label name for the type of unsafe content detected in the image.

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

The label name for the type of unsafe content detected in the image.

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

The label name for the type of unsafe content detected in the image.

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

The label name for the type of unsafe content detected in the image.

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

The label name for the type of unsafe content detected in the image.

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

The name for the parent label. Labels at the top level of the hierarchy have * the parent label "".

*/ inline const Aws::String& GetParentName() const{ return m_parentName; } /** *

The name for the parent label. Labels at the top level of the hierarchy have * the parent label "".

*/ inline bool ParentNameHasBeenSet() const { return m_parentNameHasBeenSet; } /** *

The name for the parent label. Labels at the top level of the hierarchy have * the parent label "".

*/ inline void SetParentName(const Aws::String& value) { m_parentNameHasBeenSet = true; m_parentName = value; } /** *

The name for the parent label. Labels at the top level of the hierarchy have * the parent label "".

*/ inline void SetParentName(Aws::String&& value) { m_parentNameHasBeenSet = true; m_parentName = std::move(value); } /** *

The name for the parent label. Labels at the top level of the hierarchy have * the parent label "".

*/ inline void SetParentName(const char* value) { m_parentNameHasBeenSet = true; m_parentName.assign(value); } /** *

The name for the parent label. Labels at the top level of the hierarchy have * the parent label "".

*/ inline ModerationLabel& WithParentName(const Aws::String& value) { SetParentName(value); return *this;} /** *

The name for the parent label. Labels at the top level of the hierarchy have * the parent label "".

*/ inline ModerationLabel& WithParentName(Aws::String&& value) { SetParentName(std::move(value)); return *this;} /** *

The name for the parent label. Labels at the top level of the hierarchy have * the parent label "".

*/ inline ModerationLabel& WithParentName(const char* value) { SetParentName(value); return *this;} private: double m_confidence; bool m_confidenceHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_parentName; bool m_parentNameHasBeenSet; }; } // namespace Model } // namespace Rekognition } // namespace Aws