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

Structure containing details about the detected label, including the name, * detected instances, parent labels, and level of confidence.

*

See Also:

AWS * API Reference

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

The name (label) of the object or scene.

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

The name (label) of the object or scene.

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

The name (label) of the object or scene.

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

The name (label) of the object or scene.

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

The name (label) of the object or scene.

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

The name (label) of the object or scene.

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

The name (label) of the object or scene.

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

The name (label) of the object or scene.

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

Level of confidence.

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

Level of confidence.

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

Level of confidence.

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

Level of confidence.

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

If Label represents an object, Instances contains * the bounding boxes for each instance of the detected object. Bounding boxes are * returned for common object labels such as people, cars, furniture, apparel or * pets.

*/ inline const Aws::Vector& GetInstances() const{ return m_instances; } /** *

If Label represents an object, Instances contains * the bounding boxes for each instance of the detected object. Bounding boxes are * returned for common object labels such as people, cars, furniture, apparel or * pets.

*/ inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; } /** *

If Label represents an object, Instances contains * the bounding boxes for each instance of the detected object. Bounding boxes are * returned for common object labels such as people, cars, furniture, apparel or * pets.

*/ inline void SetInstances(const Aws::Vector& value) { m_instancesHasBeenSet = true; m_instances = value; } /** *

If Label represents an object, Instances contains * the bounding boxes for each instance of the detected object. Bounding boxes are * returned for common object labels such as people, cars, furniture, apparel or * pets.

*/ inline void SetInstances(Aws::Vector&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); } /** *

If Label represents an object, Instances contains * the bounding boxes for each instance of the detected object. Bounding boxes are * returned for common object labels such as people, cars, furniture, apparel or * pets.

*/ inline Label& WithInstances(const Aws::Vector& value) { SetInstances(value); return *this;} /** *

If Label represents an object, Instances contains * the bounding boxes for each instance of the detected object. Bounding boxes are * returned for common object labels such as people, cars, furniture, apparel or * pets.

*/ inline Label& WithInstances(Aws::Vector&& value) { SetInstances(std::move(value)); return *this;} /** *

If Label represents an object, Instances contains * the bounding boxes for each instance of the detected object. Bounding boxes are * returned for common object labels such as people, cars, furniture, apparel or * pets.

*/ inline Label& AddInstances(const Instance& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; } /** *

If Label represents an object, Instances contains * the bounding boxes for each instance of the detected object. Bounding boxes are * returned for common object labels such as people, cars, furniture, apparel or * pets.

*/ inline Label& AddInstances(Instance&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; } /** *

The parent labels for a label. The response includes all ancestor labels.

*/ inline const Aws::Vector& GetParents() const{ return m_parents; } /** *

The parent labels for a label. The response includes all ancestor labels.

*/ inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; } /** *

The parent labels for a label. The response includes all ancestor labels.

*/ inline void SetParents(const Aws::Vector& value) { m_parentsHasBeenSet = true; m_parents = value; } /** *

The parent labels for a label. The response includes all ancestor labels.

*/ inline void SetParents(Aws::Vector&& value) { m_parentsHasBeenSet = true; m_parents = std::move(value); } /** *

The parent labels for a label. The response includes all ancestor labels.

*/ inline Label& WithParents(const Aws::Vector& value) { SetParents(value); return *this;} /** *

The parent labels for a label. The response includes all ancestor labels.

*/ inline Label& WithParents(Aws::Vector&& value) { SetParents(std::move(value)); return *this;} /** *

The parent labels for a label. The response includes all ancestor labels.

*/ inline Label& AddParents(const Parent& value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; } /** *

The parent labels for a label. The response includes all ancestor labels.

*/ inline Label& AddParents(Parent&& value) { m_parentsHasBeenSet = true; m_parents.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet; double m_confidence; bool m_confidenceHasBeenSet; Aws::Vector m_instances; bool m_instancesHasBeenSet; Aws::Vector m_parents; bool m_parentsHasBeenSet; }; } // namespace Model } // namespace Rekognition } // namespace Aws