AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CustomLabel.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rekognition/model/Geometry.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Rekognition
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_REKOGNITION_API CustomLabel() = default;
37 AWS_REKOGNITION_API CustomLabel(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REKOGNITION_API CustomLabel& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 CustomLabel& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
59 inline double GetConfidence() const { return m_confidence; }
60 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
61 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
62 inline CustomLabel& WithConfidence(double value) { SetConfidence(value); return *this;}
64
66
71 inline const Geometry& GetGeometry() const { return m_geometry; }
72 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
73 template<typename GeometryT = Geometry>
74 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
75 template<typename GeometryT = Geometry>
76 CustomLabel& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
78 private:
79
80 Aws::String m_name;
81 bool m_nameHasBeenSet = false;
82
83 double m_confidence{0.0};
84 bool m_confidenceHasBeenSet = false;
85
86 Geometry m_geometry;
87 bool m_geometryHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Rekognition
92} // namespace Aws
CustomLabel & WithGeometry(GeometryT &&value)
Definition CustomLabel.h:76
const Geometry & GetGeometry() const
Definition CustomLabel.h:71
CustomLabel & WithConfidence(double value)
Definition CustomLabel.h:62
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:46
CustomLabel & WithName(NameT &&value)
Definition CustomLabel.h:51
void SetGeometry(GeometryT &&value)
Definition CustomLabel.h:74
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