AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
ProtectiveEquipmentPerson.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/BoundingBox.h>
10#include <aws/rekognition/model/ProtectiveEquipmentBodyPart.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 ProtectiveEquipmentPerson() = default;
36 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<ProtectiveEquipmentBodyPart>& GetBodyParts() const { return m_bodyParts; }
44 inline bool BodyPartsHasBeenSet() const { return m_bodyPartsHasBeenSet; }
45 template <typename BodyPartsT = Aws::Vector<ProtectiveEquipmentBodyPart>>
46 void SetBodyParts(BodyPartsT&& value) {
47 m_bodyPartsHasBeenSet = true;
48 m_bodyParts = std::forward<BodyPartsT>(value);
49 }
50 template <typename BodyPartsT = Aws::Vector<ProtectiveEquipmentBodyPart>>
52 SetBodyParts(std::forward<BodyPartsT>(value));
53 return *this;
54 }
55 template <typename BodyPartsT = ProtectiveEquipmentBodyPart>
57 m_bodyPartsHasBeenSet = true;
58 m_bodyParts.emplace_back(std::forward<BodyPartsT>(value));
59 return *this;
60 }
62
64
67 inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
68 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
69 template <typename BoundingBoxT = BoundingBox>
70 void SetBoundingBox(BoundingBoxT&& value) {
71 m_boundingBoxHasBeenSet = true;
72 m_boundingBox = std::forward<BoundingBoxT>(value);
73 }
74 template <typename BoundingBoxT = BoundingBox>
76 SetBoundingBox(std::forward<BoundingBoxT>(value));
77 return *this;
78 }
80
82
86 inline double GetConfidence() const { return m_confidence; }
87 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
88 inline void SetConfidence(double value) {
89 m_confidenceHasBeenSet = true;
90 m_confidence = value;
91 }
93 SetConfidence(value);
94 return *this;
95 }
97
99
103 inline int GetId() const { return m_id; }
104 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
105 inline void SetId(int value) {
106 m_idHasBeenSet = true;
107 m_id = value;
108 }
110 SetId(value);
111 return *this;
112 }
114 private:
116 bool m_bodyPartsHasBeenSet = false;
117
118 BoundingBox m_boundingBox;
119 bool m_boundingBoxHasBeenSet = false;
120
121 double m_confidence{0.0};
122 bool m_confidenceHasBeenSet = false;
123
124 int m_id{0};
125 bool m_idHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Rekognition
130} // namespace Aws
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ProtectiveEquipmentBodyPart > & GetBodyParts() const
ProtectiveEquipmentPerson & AddBodyParts(BodyPartsT &&value)
AWS_REKOGNITION_API ProtectiveEquipmentPerson(Aws::Utils::Json::JsonView jsonValue)
ProtectiveEquipmentPerson & WithBodyParts(BodyPartsT &&value)
ProtectiveEquipmentPerson & WithBoundingBox(BoundingBoxT &&value)
AWS_REKOGNITION_API ProtectiveEquipmentPerson & operator=(Aws::Utils::Json::JsonView jsonValue)
ProtectiveEquipmentPerson & WithConfidence(double value)
AWS_REKOGNITION_API ProtectiveEquipmentPerson()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue