7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/model/Instance.h>
11#include <aws/rekognition/model/Parent.h>
12#include <aws/rekognition/model/LabelAlias.h>
13#include <aws/rekognition/model/LabelCategory.h>
41 AWS_REKOGNITION_API
Label() =
default;
53 template<
typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
55 template<
typename NameT = Aws::String>
65 inline void SetConfidence(
double value) { m_confidenceHasBeenSet =
true; m_confidence = value; }
78 template<
typename InstancesT = Aws::Vector<Instance>>
79 void SetInstances(InstancesT&& value) { m_instancesHasBeenSet =
true; m_instances = std::forward<InstancesT>(value); }
80 template<
typename InstancesT = Aws::Vector<Instance>>
82 template<
typename InstancesT = Instance>
83 Label&
AddInstances(InstancesT&& value) { m_instancesHasBeenSet =
true; m_instances.emplace_back(std::forward<InstancesT>(value));
return *
this; }
92 template<
typename ParentsT = Aws::Vector<Parent>>
93 void SetParents(ParentsT&& value) { m_parentsHasBeenSet =
true; m_parents = std::forward<ParentsT>(value); }
94 template<
typename ParentsT = Aws::Vector<Parent>>
96 template<
typename ParentsT = Parent>
97 Label&
AddParents(ParentsT&& value) { m_parentsHasBeenSet =
true; m_parents.emplace_back(std::forward<ParentsT>(value));
return *
this; }
106 template<
typename AliasesT = Aws::Vector<LabelAlias>>
107 void SetAliases(AliasesT&& value) { m_aliasesHasBeenSet =
true; m_aliases = std::forward<AliasesT>(value); }
108 template<
typename AliasesT = Aws::Vector<LabelAlias>>
110 template<
typename AliasesT = LabelAlias>
111 Label&
AddAliases(AliasesT&& value) { m_aliasesHasBeenSet =
true; m_aliases.emplace_back(std::forward<AliasesT>(value));
return *
this; }
120 template<
typename CategoriesT = Aws::Vector<LabelCategory>>
121 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet =
true; m_categories = std::forward<CategoriesT>(value); }
122 template<
typename CategoriesT = Aws::Vector<LabelCategory>>
124 template<
typename CategoriesT = LabelCategory>
125 Label&
AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet =
true; m_categories.emplace_back(std::forward<CategoriesT>(value));
return *
this; }
130 bool m_nameHasBeenSet =
false;
132 double m_confidence{0.0};
133 bool m_confidenceHasBeenSet =
false;
136 bool m_instancesHasBeenSet =
false;
139 bool m_parentsHasBeenSet =
false;
142 bool m_aliasesHasBeenSet =
false;
145 bool m_categoriesHasBeenSet =
false;
const Aws::String & GetName() const
bool NameHasBeenSet() const
bool CategoriesHasBeenSet() const
void SetConfidence(double value)
AWS_REKOGNITION_API Label(Aws::Utils::Json::JsonView jsonValue)
Label & AddInstances(InstancesT &&value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Instance > & GetInstances() const
void SetInstances(InstancesT &&value)
Label & WithInstances(InstancesT &&value)
Label & WithConfidence(double value)
const Aws::Vector< LabelCategory > & GetCategories() const
void SetAliases(AliasesT &&value)
void SetName(NameT &&value)
Label & AddAliases(AliasesT &&value)
void SetParents(ParentsT &&value)
bool ConfidenceHasBeenSet() const
bool InstancesHasBeenSet() const
AWS_REKOGNITION_API Label & operator=(Aws::Utils::Json::JsonView jsonValue)
Label & WithAliases(AliasesT &&value)
bool ParentsHasBeenSet() const
AWS_REKOGNITION_API Label()=default
Label & WithName(NameT &&value)
double GetConfidence() const
bool AliasesHasBeenSet() const
Label & AddCategories(CategoriesT &&value)
void SetCategories(CategoriesT &&value)
Label & WithCategories(CategoriesT &&value)
const Aws::Vector< Parent > & GetParents() const
Label & WithParents(ParentsT &&value)
Label & AddParents(ParentsT &&value)
const Aws::Vector< LabelAlias > & GetAliases() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue