/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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 Label { public: AWS_REKOGNITION_API Label(); AWS_REKOGNITION_API Label(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API Label& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API 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; } /** *

A list of potential aliases for a given label.

*/ inline const Aws::Vector& GetAliases() const{ return m_aliases; } /** *

A list of potential aliases for a given label.

*/ inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; } /** *

A list of potential aliases for a given label.

*/ inline void SetAliases(const Aws::Vector& value) { m_aliasesHasBeenSet = true; m_aliases = value; } /** *

A list of potential aliases for a given label.

*/ inline void SetAliases(Aws::Vector&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); } /** *

A list of potential aliases for a given label.

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

A list of potential aliases for a given label.

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

A list of potential aliases for a given label.

*/ inline Label& AddAliases(const LabelAlias& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(value); return *this; } /** *

A list of potential aliases for a given label.

*/ inline Label& AddAliases(LabelAlias&& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(std::move(value)); return *this; } /** *

A list of the categories associated with a given label.

*/ inline const Aws::Vector& GetCategories() const{ return m_categories; } /** *

A list of the categories associated with a given label.

*/ inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; } /** *

A list of the categories associated with a given label.

*/ inline void SetCategories(const Aws::Vector& value) { m_categoriesHasBeenSet = true; m_categories = value; } /** *

A list of the categories associated with a given label.

*/ inline void SetCategories(Aws::Vector&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); } /** *

A list of the categories associated with a given label.

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

A list of the categories associated with a given label.

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

A list of the categories associated with a given label.

*/ inline Label& AddCategories(const LabelCategory& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; } /** *

A list of the categories associated with a given label.

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