/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A custom label detected in an image by a call to
* DetectCustomLabels.See Also:
AWS
* API Reference
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