AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProtectiveEquipmentPerson.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/model/BoundingBox.h>
10#include <aws/rekognition/model/ProtectiveEquipmentBodyPart.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_REKOGNITION_API ProtectiveEquipmentPerson() = default;
41 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<ProtectiveEquipmentBodyPart>& GetBodyParts() const { return m_bodyParts; }
50 inline bool BodyPartsHasBeenSet() const { return m_bodyPartsHasBeenSet; }
51 template<typename BodyPartsT = Aws::Vector<ProtectiveEquipmentBodyPart>>
52 void SetBodyParts(BodyPartsT&& value) { m_bodyPartsHasBeenSet = true; m_bodyParts = std::forward<BodyPartsT>(value); }
53 template<typename BodyPartsT = Aws::Vector<ProtectiveEquipmentBodyPart>>
54 ProtectiveEquipmentPerson& WithBodyParts(BodyPartsT&& value) { SetBodyParts(std::forward<BodyPartsT>(value)); return *this;}
55 template<typename BodyPartsT = ProtectiveEquipmentBodyPart>
56 ProtectiveEquipmentPerson& AddBodyParts(BodyPartsT&& value) { m_bodyPartsHasBeenSet = true; m_bodyParts.emplace_back(std::forward<BodyPartsT>(value)); return *this; }
58
60
63 inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
64 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
65 template<typename BoundingBoxT = BoundingBox>
66 void SetBoundingBox(BoundingBoxT&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::forward<BoundingBoxT>(value); }
67 template<typename BoundingBoxT = BoundingBox>
68 ProtectiveEquipmentPerson& WithBoundingBox(BoundingBoxT&& value) { SetBoundingBox(std::forward<BoundingBoxT>(value)); return *this;}
70
72
76 inline double GetConfidence() const { return m_confidence; }
77 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
78 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
79 inline ProtectiveEquipmentPerson& WithConfidence(double value) { SetConfidence(value); return *this;}
81
83
87 inline int GetId() const { return m_id; }
88 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
89 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
90 inline ProtectiveEquipmentPerson& WithId(int value) { SetId(value); return *this;}
92 private:
93
95 bool m_bodyPartsHasBeenSet = false;
96
97 BoundingBox m_boundingBox;
98 bool m_boundingBoxHasBeenSet = false;
99
100 double m_confidence{0.0};
101 bool m_confidenceHasBeenSet = false;
102
103 int m_id{0};
104 bool m_idHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Rekognition
109} // 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