AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CustomLabel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/Geometry.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Rekognition {
21namespace Model {
22
30 public:
31 AWS_REKOGNITION_API CustomLabel() = default;
32 AWS_REKOGNITION_API CustomLabel(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REKOGNITION_API CustomLabel& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 CustomLabel& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline double GetConfidence() const { return m_confidence; }
60 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
61 inline void SetConfidence(double value) {
62 m_confidenceHasBeenSet = true;
63 m_confidence = value;
64 }
65 inline CustomLabel& WithConfidence(double value) {
66 SetConfidence(value);
67 return *this;
68 }
70
72
77 inline const Geometry& GetGeometry() const { return m_geometry; }
78 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
79 template <typename GeometryT = Geometry>
80 void SetGeometry(GeometryT&& value) {
81 m_geometryHasBeenSet = true;
82 m_geometry = std::forward<GeometryT>(value);
83 }
84 template <typename GeometryT = Geometry>
85 CustomLabel& WithGeometry(GeometryT&& value) {
86 SetGeometry(std::forward<GeometryT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_name;
92
93 double m_confidence{0.0};
94
95 Geometry m_geometry;
96 bool m_nameHasBeenSet = false;
97 bool m_confidenceHasBeenSet = false;
98 bool m_geometryHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Rekognition
103} // namespace Aws
CustomLabel & WithGeometry(GeometryT &&value)
Definition CustomLabel.h:85
const Geometry & GetGeometry() const
Definition CustomLabel.h:77
CustomLabel & WithConfidence(double value)
Definition CustomLabel.h:65
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API CustomLabel & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition CustomLabel.h:40
CustomLabel & WithName(NameT &&value)
Definition CustomLabel.h:48
void SetGeometry(GeometryT &&value)
Definition CustomLabel.h:80
AWS_REKOGNITION_API CustomLabel(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API CustomLabel()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue