AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline CustomLabel& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline CustomLabel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline CustomLabel& WithName(const char* value) { SetName(value); return *this;}
55
57
61 inline double GetConfidence() const{ return m_confidence; }
62 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
63 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
64 inline CustomLabel& WithConfidence(double value) { SetConfidence(value); return *this;}
66
68
73 inline const Geometry& GetGeometry() const{ return m_geometry; }
74 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
75 inline void SetGeometry(const Geometry& value) { m_geometryHasBeenSet = true; m_geometry = value; }
76 inline void SetGeometry(Geometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); }
77 inline CustomLabel& WithGeometry(const Geometry& value) { SetGeometry(value); return *this;}
78 inline CustomLabel& WithGeometry(Geometry&& value) { SetGeometry(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
85 double m_confidence;
86 bool m_confidenceHasBeenSet = false;
87
88 Geometry m_geometry;
89 bool m_geometryHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Rekognition
94} // namespace Aws
CustomLabel & WithGeometry(Geometry &&value)
Definition CustomLabel.h:78
void SetGeometry(Geometry &&value)
Definition CustomLabel.h:76
void SetName(Aws::String &&value)
Definition CustomLabel.h:49
const Geometry & GetGeometry() const
Definition CustomLabel.h:73
CustomLabel & WithName(const char *value)
Definition CustomLabel.h:53
AWS_REKOGNITION_API CustomLabel()
CustomLabel & WithConfidence(double value)
Definition CustomLabel.h:64
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
void SetName(const char *value)
Definition CustomLabel.h:50
void SetName(const Aws::String &value)
Definition CustomLabel.h:48
void SetGeometry(const Geometry &value)
Definition CustomLabel.h:75
CustomLabel & WithGeometry(const Geometry &value)
Definition CustomLabel.h:77
CustomLabel & WithName(const Aws::String &value)
Definition CustomLabel.h:51
AWS_REKOGNITION_API CustomLabel(Aws::Utils::Json::JsonView jsonValue)
CustomLabel & WithName(Aws::String &&value)
Definition CustomLabel.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue