AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ProtectiveEquipmentBodyPart.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/BodyPart.h>
10#include <aws/rekognition/model/EquipmentDetection.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
33 public:
34 AWS_REKOGNITION_API ProtectiveEquipmentBodyPart() = default;
37 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline BodyPart GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(BodyPart value) {
46 m_nameHasBeenSet = true;
47 m_name = value;
48 }
50 SetName(value);
51 return *this;
52 }
54
56
60 inline double GetConfidence() const { return m_confidence; }
61 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
62 inline void SetConfidence(double value) {
63 m_confidenceHasBeenSet = true;
64 m_confidence = value;
65 }
67 SetConfidence(value);
68 return *this;
69 }
71
73
77 inline const Aws::Vector<EquipmentDetection>& GetEquipmentDetections() const { return m_equipmentDetections; }
78 inline bool EquipmentDetectionsHasBeenSet() const { return m_equipmentDetectionsHasBeenSet; }
79 template <typename EquipmentDetectionsT = Aws::Vector<EquipmentDetection>>
80 void SetEquipmentDetections(EquipmentDetectionsT&& value) {
81 m_equipmentDetectionsHasBeenSet = true;
82 m_equipmentDetections = std::forward<EquipmentDetectionsT>(value);
83 }
84 template <typename EquipmentDetectionsT = Aws::Vector<EquipmentDetection>>
86 SetEquipmentDetections(std::forward<EquipmentDetectionsT>(value));
87 return *this;
88 }
89 template <typename EquipmentDetectionsT = EquipmentDetection>
90 ProtectiveEquipmentBodyPart& AddEquipmentDetections(EquipmentDetectionsT&& value) {
91 m_equipmentDetectionsHasBeenSet = true;
92 m_equipmentDetections.emplace_back(std::forward<EquipmentDetectionsT>(value));
93 return *this;
94 }
96 private:
98 bool m_nameHasBeenSet = false;
99
100 double m_confidence{0.0};
101 bool m_confidenceHasBeenSet = false;
102
103 Aws::Vector<EquipmentDetection> m_equipmentDetections;
104 bool m_equipmentDetectionsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Rekognition
109} // namespace Aws
AWS_REKOGNITION_API ProtectiveEquipmentBodyPart(Aws::Utils::Json::JsonView jsonValue)
ProtectiveEquipmentBodyPart & WithConfidence(double value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
ProtectiveEquipmentBodyPart & WithName(BodyPart value)
ProtectiveEquipmentBodyPart & AddEquipmentDetections(EquipmentDetectionsT &&value)
ProtectiveEquipmentBodyPart & WithEquipmentDetections(EquipmentDetectionsT &&value)
AWS_REKOGNITION_API ProtectiveEquipmentBodyPart()=default
AWS_REKOGNITION_API ProtectiveEquipmentBodyPart & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EquipmentDetection > & GetEquipmentDetections() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue