7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/Instance.h>
11#include <aws/rekognition/model/LabelAlias.h>
12#include <aws/rekognition/model/LabelCategory.h>
13#include <aws/rekognition/model/Parent.h>
24namespace Rekognition {
36 AWS_REKOGNITION_API
Label() =
default;
47 template <
typename NameT = Aws::String>
49 m_nameHasBeenSet =
true;
50 m_name = std::forward<NameT>(value);
52 template <
typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
66 m_confidenceHasBeenSet =
true;
84 template <
typename InstancesT = Aws::Vector<Instance>>
86 m_instancesHasBeenSet =
true;
87 m_instances = std::forward<InstancesT>(value);
89 template <
typename InstancesT = Aws::Vector<Instance>>
94 template <
typename InstancesT = Instance>
96 m_instancesHasBeenSet =
true;
97 m_instances.emplace_back(std::forward<InstancesT>(value));
108 template <
typename ParentsT = Aws::Vector<Parent>>
110 m_parentsHasBeenSet =
true;
111 m_parents = std::forward<ParentsT>(value);
113 template <
typename ParentsT = Aws::Vector<Parent>>
118 template <
typename ParentsT = Parent>
120 m_parentsHasBeenSet =
true;
121 m_parents.emplace_back(std::forward<ParentsT>(value));
132 template <
typename AliasesT = Aws::Vector<LabelAlias>>
134 m_aliasesHasBeenSet =
true;
135 m_aliases = std::forward<AliasesT>(value);
137 template <
typename AliasesT = Aws::Vector<LabelAlias>>
142 template <
typename AliasesT = LabelAlias>
144 m_aliasesHasBeenSet =
true;
145 m_aliases.emplace_back(std::forward<AliasesT>(value));
156 template <
typename CategoriesT = Aws::Vector<LabelCategory>>
158 m_categoriesHasBeenSet =
true;
159 m_categories = std::forward<CategoriesT>(value);
161 template <
typename CategoriesT = Aws::Vector<LabelCategory>>
166 template <
typename CategoriesT = LabelCategory>
168 m_categoriesHasBeenSet =
true;
169 m_categories.emplace_back(std::forward<CategoriesT>(value));
176 double m_confidence{0.0};
185 bool m_nameHasBeenSet =
false;
186 bool m_confidenceHasBeenSet =
false;
187 bool m_instancesHasBeenSet =
false;
188 bool m_parentsHasBeenSet =
false;
189 bool m_aliasesHasBeenSet =
false;
190 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