AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Label.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Rekognition
27{
28namespace Model
29{
30
38 class Label
39 {
40 public:
41 AWS_REKOGNITION_API Label() = default;
42 AWS_REKOGNITION_API Label(Aws::Utils::Json::JsonView jsonValue);
43 AWS_REKOGNITION_API Label& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
56 Label& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
63 inline double GetConfidence() const { return m_confidence; }
64 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
65 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
66 inline Label& WithConfidence(double value) { SetConfidence(value); return *this;}
68
70
76 inline const Aws::Vector<Instance>& GetInstances() const { return m_instances; }
77 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
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>>
81 Label& WithInstances(InstancesT&& value) { SetInstances(std::forward<InstancesT>(value)); return *this;}
82 template<typename InstancesT = Instance>
83 Label& AddInstances(InstancesT&& value) { m_instancesHasBeenSet = true; m_instances.emplace_back(std::forward<InstancesT>(value)); return *this; }
85
87
90 inline const Aws::Vector<Parent>& GetParents() const { return m_parents; }
91 inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; }
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>>
95 Label& WithParents(ParentsT&& value) { SetParents(std::forward<ParentsT>(value)); return *this;}
96 template<typename ParentsT = Parent>
97 Label& AddParents(ParentsT&& value) { m_parentsHasBeenSet = true; m_parents.emplace_back(std::forward<ParentsT>(value)); return *this; }
99
101
104 inline const Aws::Vector<LabelAlias>& GetAliases() const { return m_aliases; }
105 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
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>>
109 Label& WithAliases(AliasesT&& value) { SetAliases(std::forward<AliasesT>(value)); return *this;}
110 template<typename AliasesT = LabelAlias>
111 Label& AddAliases(AliasesT&& value) { m_aliasesHasBeenSet = true; m_aliases.emplace_back(std::forward<AliasesT>(value)); return *this; }
113
115
118 inline const Aws::Vector<LabelCategory>& GetCategories() const { return m_categories; }
119 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
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>>
123 Label& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
124 template<typename CategoriesT = LabelCategory>
125 Label& AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories.emplace_back(std::forward<CategoriesT>(value)); return *this; }
127 private:
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 double m_confidence{0.0};
133 bool m_confidenceHasBeenSet = false;
134
135 Aws::Vector<Instance> m_instances;
136 bool m_instancesHasBeenSet = false;
137
138 Aws::Vector<Parent> m_parents;
139 bool m_parentsHasBeenSet = false;
140
141 Aws::Vector<LabelAlias> m_aliases;
142 bool m_aliasesHasBeenSet = false;
143
144 Aws::Vector<LabelCategory> m_categories;
145 bool m_categoriesHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Rekognition
150} // namespace Aws
const Aws::String & GetName() const
Definition Label.h:51
bool NameHasBeenSet() const
Definition Label.h:52
bool CategoriesHasBeenSet() const
Definition Label.h:119
void SetConfidence(double value)
Definition Label.h:65
AWS_REKOGNITION_API Label(Aws::Utils::Json::JsonView jsonValue)
Label & AddInstances(InstancesT &&value)
Definition Label.h:83
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Instance > & GetInstances() const
Definition Label.h:76
void SetInstances(InstancesT &&value)
Definition Label.h:79
Label & WithInstances(InstancesT &&value)
Definition Label.h:81
Label & WithConfidence(double value)
Definition Label.h:66
const Aws::Vector< LabelCategory > & GetCategories() const
Definition Label.h:118
void SetAliases(AliasesT &&value)
Definition Label.h:107
void SetName(NameT &&value)
Definition Label.h:54
Label & AddAliases(AliasesT &&value)
Definition Label.h:111
void SetParents(ParentsT &&value)
Definition Label.h:93
bool ConfidenceHasBeenSet() const
Definition Label.h:64
bool InstancesHasBeenSet() const
Definition Label.h:77
AWS_REKOGNITION_API Label & operator=(Aws::Utils::Json::JsonView jsonValue)
Label & WithAliases(AliasesT &&value)
Definition Label.h:109
bool ParentsHasBeenSet() const
Definition Label.h:91
AWS_REKOGNITION_API Label()=default
Label & WithName(NameT &&value)
Definition Label.h:56
double GetConfidence() const
Definition Label.h:63
bool AliasesHasBeenSet() const
Definition Label.h:105
Label & AddCategories(CategoriesT &&value)
Definition Label.h:125
void SetCategories(CategoriesT &&value)
Definition Label.h:121
Label & WithCategories(CategoriesT &&value)
Definition Label.h:123
const Aws::Vector< Parent > & GetParents() const
Definition Label.h:90
Label & WithParents(ParentsT &&value)
Definition Label.h:95
Label & AddParents(ParentsT &&value)
Definition Label.h:97
const Aws::Vector< LabelAlias > & GetAliases() const
Definition Label.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue