/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Structure containing details about the detected label, including the name,
* detected instances, parent labels, and level of confidence.
* See Also:
AWS
* API Reference
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.
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.
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.
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.
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.
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.
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.
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.
The parent labels for a label. The response includes all ancestor labels.
*/ inline const Aws::VectorThe 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::VectorThe parent labels for a label. The response includes all ancestor labels.
*/ inline void SetParents(Aws::VectorThe parent labels for a label. The response includes all ancestor labels.
*/ inline Label& WithParents(const Aws::VectorThe parent labels for a label. The response includes all ancestor labels.
*/ inline Label& WithParents(Aws::VectorThe 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::VectorA 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::VectorA list of potential aliases for a given label.
*/ inline void SetAliases(Aws::VectorA list of potential aliases for a given label.
*/ inline Label& WithAliases(const Aws::VectorA list of potential aliases for a given label.
*/ inline Label& WithAliases(Aws::VectorA 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::VectorA 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::VectorA list of the categories associated with a given label.
*/ inline void SetCategories(Aws::VectorA list of the categories associated with a given label.
*/ inline Label& WithCategories(const Aws::VectorA list of the categories associated with a given label.
*/ inline Label& WithCategories(Aws::VectorA 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