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

A custom label detected in an image by a call to * DetectCustomLabels.

See Also:

AWS * API Reference

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

The name of the custom label.

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

The name of the custom label.

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

The name of the custom label.

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

The name of the custom label.

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

The name of the custom label.

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

The name of the custom label.

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

The name of the custom label.

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

The name of the custom label.

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

The confidence that the model has in the detection of the custom label. The * range is 0-100. A higher value indicates a higher confidence.

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

The confidence that the model has in the detection of the custom label. The * range is 0-100. A higher value indicates a higher confidence.

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

The confidence that the model has in the detection of the custom label. The * range is 0-100. A higher value indicates a higher confidence.

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

The confidence that the model has in the detection of the custom label. The * range is 0-100. A higher value indicates a higher confidence.

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

The location of the detected object on the image that corresponds to the * custom label. Includes an axis aligned coarse bounding box surrounding the * object and a finer grain polygon for more accurate spatial information.

*/ inline const Geometry& GetGeometry() const{ return m_geometry; } /** *

The location of the detected object on the image that corresponds to the * custom label. Includes an axis aligned coarse bounding box surrounding the * object and a finer grain polygon for more accurate spatial information.

*/ inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; } /** *

The location of the detected object on the image that corresponds to the * custom label. Includes an axis aligned coarse bounding box surrounding the * object and a finer grain polygon for more accurate spatial information.

*/ inline void SetGeometry(const Geometry& value) { m_geometryHasBeenSet = true; m_geometry = value; } /** *

The location of the detected object on the image that corresponds to the * custom label. Includes an axis aligned coarse bounding box surrounding the * object and a finer grain polygon for more accurate spatial information.

*/ inline void SetGeometry(Geometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); } /** *

The location of the detected object on the image that corresponds to the * custom label. Includes an axis aligned coarse bounding box surrounding the * object and a finer grain polygon for more accurate spatial information.

*/ inline CustomLabel& WithGeometry(const Geometry& value) { SetGeometry(value); return *this;} /** *

The location of the detected object on the image that corresponds to the * custom label. Includes an axis aligned coarse bounding box surrounding the * object and a finer grain polygon for more accurate spatial information.

*/ inline CustomLabel& WithGeometry(Geometry&& value) { SetGeometry(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; Geometry m_geometry; bool m_geometryHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws