AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EquipmentDetection.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/BoundingBox.h>
9#include <aws/rekognition/model/CoversBodyPart.h>
10#include <aws/rekognition/model/ProtectiveEquipmentType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Rekognition {
22namespace Model {
23
32 public:
33 AWS_REKOGNITION_API EquipmentDetection() = default;
34 AWS_REKOGNITION_API EquipmentDetection(Aws::Utils::Json::JsonView jsonValue);
36 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
43 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
44 template <typename BoundingBoxT = BoundingBox>
45 void SetBoundingBox(BoundingBoxT&& value) {
46 m_boundingBoxHasBeenSet = true;
47 m_boundingBox = std::forward<BoundingBoxT>(value);
48 }
49 template <typename BoundingBoxT = BoundingBox>
50 EquipmentDetection& WithBoundingBox(BoundingBoxT&& value) {
51 SetBoundingBox(std::forward<BoundingBoxT>(value));
52 return *this;
53 }
55
57
61 inline double GetConfidence() const { return m_confidence; }
62 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
63 inline void SetConfidence(double value) {
64 m_confidenceHasBeenSet = true;
65 m_confidence = value;
66 }
67 inline EquipmentDetection& WithConfidence(double value) {
68 SetConfidence(value);
69 return *this;
70 }
72
74
77 inline ProtectiveEquipmentType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(ProtectiveEquipmentType value) {
80 m_typeHasBeenSet = true;
81 m_type = value;
82 }
84 SetType(value);
85 return *this;
86 }
88
90
93 inline const CoversBodyPart& GetCoversBodyPart() const { return m_coversBodyPart; }
94 inline bool CoversBodyPartHasBeenSet() const { return m_coversBodyPartHasBeenSet; }
95 template <typename CoversBodyPartT = CoversBodyPart>
96 void SetCoversBodyPart(CoversBodyPartT&& value) {
97 m_coversBodyPartHasBeenSet = true;
98 m_coversBodyPart = std::forward<CoversBodyPartT>(value);
99 }
100 template <typename CoversBodyPartT = CoversBodyPart>
101 EquipmentDetection& WithCoversBodyPart(CoversBodyPartT&& value) {
102 SetCoversBodyPart(std::forward<CoversBodyPartT>(value));
103 return *this;
104 }
106 private:
107 BoundingBox m_boundingBox;
108
109 double m_confidence{0.0};
110
112
113 CoversBodyPart m_coversBodyPart;
114 bool m_boundingBoxHasBeenSet = false;
115 bool m_confidenceHasBeenSet = false;
116 bool m_typeHasBeenSet = false;
117 bool m_coversBodyPartHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Rekognition
122} // namespace Aws
void SetType(ProtectiveEquipmentType value)
AWS_REKOGNITION_API EquipmentDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
EquipmentDetection & WithType(ProtectiveEquipmentType value)
EquipmentDetection & WithConfidence(double value)
EquipmentDetection & WithCoversBodyPart(CoversBodyPartT &&value)
EquipmentDetection & WithBoundingBox(BoundingBoxT &&value)
AWS_REKOGNITION_API EquipmentDetection(Aws::Utils::Json::JsonView jsonValue)
const CoversBodyPart & GetCoversBodyPart() const
void SetCoversBodyPart(CoversBodyPartT &&value)
ProtectiveEquipmentType GetType() const
AWS_REKOGNITION_API EquipmentDetection()=default
Aws::Utils::Json::JsonValue JsonValue