AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline Label& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline Label& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline Label& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline double GetConfidence() const{ return m_confidence; }
66 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
67 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
68 inline Label& WithConfidence(double value) { SetConfidence(value); return *this;}
70
72
78 inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
79 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
80 inline void SetInstances(const Aws::Vector<Instance>& value) { m_instancesHasBeenSet = true; m_instances = value; }
81 inline void SetInstances(Aws::Vector<Instance>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
82 inline Label& WithInstances(const Aws::Vector<Instance>& value) { SetInstances(value); return *this;}
83 inline Label& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
84 inline Label& AddInstances(const Instance& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
85 inline Label& AddInstances(Instance&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
87
89
92 inline const Aws::Vector<Parent>& GetParents() const{ return m_parents; }
93 inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; }
94 inline void SetParents(const Aws::Vector<Parent>& value) { m_parentsHasBeenSet = true; m_parents = value; }
95 inline void SetParents(Aws::Vector<Parent>&& value) { m_parentsHasBeenSet = true; m_parents = std::move(value); }
96 inline Label& WithParents(const Aws::Vector<Parent>& value) { SetParents(value); return *this;}
97 inline Label& WithParents(Aws::Vector<Parent>&& value) { SetParents(std::move(value)); return *this;}
98 inline Label& AddParents(const Parent& value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; }
99 inline Label& AddParents(Parent&& value) { m_parentsHasBeenSet = true; m_parents.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::Vector<LabelAlias>& GetAliases() const{ return m_aliases; }
107 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
108 inline void SetAliases(const Aws::Vector<LabelAlias>& value) { m_aliasesHasBeenSet = true; m_aliases = value; }
109 inline void SetAliases(Aws::Vector<LabelAlias>&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); }
110 inline Label& WithAliases(const Aws::Vector<LabelAlias>& value) { SetAliases(value); return *this;}
111 inline Label& WithAliases(Aws::Vector<LabelAlias>&& value) { SetAliases(std::move(value)); return *this;}
112 inline Label& AddAliases(const LabelAlias& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(value); return *this; }
113 inline Label& AddAliases(LabelAlias&& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(std::move(value)); return *this; }
115
117
120 inline const Aws::Vector<LabelCategory>& GetCategories() const{ return m_categories; }
121 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
122 inline void SetCategories(const Aws::Vector<LabelCategory>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
123 inline void SetCategories(Aws::Vector<LabelCategory>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
124 inline Label& WithCategories(const Aws::Vector<LabelCategory>& value) { SetCategories(value); return *this;}
125 inline Label& WithCategories(Aws::Vector<LabelCategory>&& value) { SetCategories(std::move(value)); return *this;}
126 inline Label& AddCategories(const LabelCategory& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
127 inline Label& AddCategories(LabelCategory&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
129 private:
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 double m_confidence;
135 bool m_confidenceHasBeenSet = false;
136
137 Aws::Vector<Instance> m_instances;
138 bool m_instancesHasBeenSet = false;
139
140 Aws::Vector<Parent> m_parents;
141 bool m_parentsHasBeenSet = false;
142
143 Aws::Vector<LabelAlias> m_aliases;
144 bool m_aliasesHasBeenSet = false;
145
146 Aws::Vector<LabelCategory> m_categories;
147 bool m_categoriesHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Rekognition
152} // namespace Aws
void SetInstances(Aws::Vector< Instance > &&value)
Definition Label.h:81
void SetParents(Aws::Vector< Parent > &&value)
Definition Label.h:95
const Aws::String & GetName() const
Definition Label.h:51
bool NameHasBeenSet() const
Definition Label.h:52
bool CategoriesHasBeenSet() const
Definition Label.h:121
Label & WithInstances(const Aws::Vector< Instance > &value)
Definition Label.h:82
void SetConfidence(double value)
Definition Label.h:67
void SetInstances(const Aws::Vector< Instance > &value)
Definition Label.h:80
AWS_REKOGNITION_API Label(Aws::Utils::Json::JsonView jsonValue)
Label & WithName(const Aws::String &value)
Definition Label.h:56
void SetName(const char *value)
Definition Label.h:55
void SetName(const Aws::String &value)
Definition Label.h:53
AWS_REKOGNITION_API Label()
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Instance > & GetInstances() const
Definition Label.h:78
Label & WithParents(Aws::Vector< Parent > &&value)
Definition Label.h:97
Label & AddParents(const Parent &value)
Definition Label.h:98
Label & WithConfidence(double value)
Definition Label.h:68
const Aws::Vector< LabelCategory > & GetCategories() const
Definition Label.h:120
void SetCategories(Aws::Vector< LabelCategory > &&value)
Definition Label.h:123
void SetParents(const Aws::Vector< Parent > &value)
Definition Label.h:94
Label & AddInstances(Instance &&value)
Definition Label.h:85
void SetName(Aws::String &&value)
Definition Label.h:54
Label & AddAliases(LabelAlias &&value)
Definition Label.h:113
bool ConfidenceHasBeenSet() const
Definition Label.h:66
Label & WithCategories(const Aws::Vector< LabelCategory > &value)
Definition Label.h:124
bool InstancesHasBeenSet() const
Definition Label.h:79
void SetAliases(const Aws::Vector< LabelAlias > &value)
Definition Label.h:108
AWS_REKOGNITION_API Label & operator=(Aws::Utils::Json::JsonView jsonValue)
Label & WithParents(const Aws::Vector< Parent > &value)
Definition Label.h:96
Label & WithCategories(Aws::Vector< LabelCategory > &&value)
Definition Label.h:125
Label & WithAliases(Aws::Vector< LabelAlias > &&value)
Definition Label.h:111
void SetAliases(Aws::Vector< LabelAlias > &&value)
Definition Label.h:109
bool ParentsHasBeenSet() const
Definition Label.h:93
Label & WithName(Aws::String &&value)
Definition Label.h:57
Label & AddParents(Parent &&value)
Definition Label.h:99
double GetConfidence() const
Definition Label.h:65
Label & AddCategories(const LabelCategory &value)
Definition Label.h:126
Label & WithName(const char *value)
Definition Label.h:58
Label & AddAliases(const LabelAlias &value)
Definition Label.h:112
Label & AddCategories(LabelCategory &&value)
Definition Label.h:127
void SetCategories(const Aws::Vector< LabelCategory > &value)
Definition Label.h:122
bool AliasesHasBeenSet() const
Definition Label.h:107
Label & WithAliases(const Aws::Vector< LabelAlias > &value)
Definition Label.h:110
const Aws::Vector< Parent > & GetParents() const
Definition Label.h:92
Label & AddInstances(const Instance &value)
Definition Label.h:84
Label & WithInstances(Aws::Vector< Instance > &&value)
Definition Label.h:83
const Aws::Vector< LabelAlias > & GetAliases() const
Definition Label.h:106
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue