AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProtectiveEquipmentBodyPart.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/BodyPart.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/model/EquipmentDetection.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
37 {
38 public:
39 AWS_REKOGNITION_API ProtectiveEquipmentBodyPart() = default;
42 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline BodyPart GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(BodyPart value) { m_nameHasBeenSet = true; m_name = value; }
52 inline ProtectiveEquipmentBodyPart& WithName(BodyPart value) { SetName(value); return *this;}
54
56
60 inline double GetConfidence() const { return m_confidence; }
61 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
62 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
63 inline ProtectiveEquipmentBodyPart& WithConfidence(double value) { SetConfidence(value); return *this;}
65
67
71 inline const Aws::Vector<EquipmentDetection>& GetEquipmentDetections() const { return m_equipmentDetections; }
72 inline bool EquipmentDetectionsHasBeenSet() const { return m_equipmentDetectionsHasBeenSet; }
73 template<typename EquipmentDetectionsT = Aws::Vector<EquipmentDetection>>
74 void SetEquipmentDetections(EquipmentDetectionsT&& value) { m_equipmentDetectionsHasBeenSet = true; m_equipmentDetections = std::forward<EquipmentDetectionsT>(value); }
75 template<typename EquipmentDetectionsT = Aws::Vector<EquipmentDetection>>
76 ProtectiveEquipmentBodyPart& WithEquipmentDetections(EquipmentDetectionsT&& value) { SetEquipmentDetections(std::forward<EquipmentDetectionsT>(value)); return *this;}
77 template<typename EquipmentDetectionsT = EquipmentDetection>
78 ProtectiveEquipmentBodyPart& AddEquipmentDetections(EquipmentDetectionsT&& value) { m_equipmentDetectionsHasBeenSet = true; m_equipmentDetections.emplace_back(std::forward<EquipmentDetectionsT>(value)); return *this; }
80 private:
81
83 bool m_nameHasBeenSet = false;
84
85 double m_confidence{0.0};
86 bool m_confidenceHasBeenSet = false;
87
88 Aws::Vector<EquipmentDetection> m_equipmentDetections;
89 bool m_equipmentDetectionsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Rekognition
94} // 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