AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PersonDetail.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/BoundingBox.h>
9#include <aws/rekognition/model/FaceDetail.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Rekognition
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_REKOGNITION_API PersonDetail() = default;
37 AWS_REKOGNITION_API PersonDetail(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REKOGNITION_API PersonDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline long long GetIndex() const { return m_index; }
49 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
50 inline void SetIndex(long long value) { m_indexHasBeenSet = true; m_index = value; }
51 inline PersonDetail& WithIndex(long long value) { SetIndex(value); return *this;}
53
55
58 inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
59 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
60 template<typename BoundingBoxT = BoundingBox>
61 void SetBoundingBox(BoundingBoxT&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::forward<BoundingBoxT>(value); }
62 template<typename BoundingBoxT = BoundingBox>
63 PersonDetail& WithBoundingBox(BoundingBoxT&& value) { SetBoundingBox(std::forward<BoundingBoxT>(value)); return *this;}
65
67
70 inline const FaceDetail& GetFace() const { return m_face; }
71 inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; }
72 template<typename FaceT = FaceDetail>
73 void SetFace(FaceT&& value) { m_faceHasBeenSet = true; m_face = std::forward<FaceT>(value); }
74 template<typename FaceT = FaceDetail>
75 PersonDetail& WithFace(FaceT&& value) { SetFace(std::forward<FaceT>(value)); return *this;}
77 private:
78
79 long long m_index{0};
80 bool m_indexHasBeenSet = false;
81
82 BoundingBox m_boundingBox;
83 bool m_boundingBoxHasBeenSet = false;
84
85 FaceDetail m_face;
86 bool m_faceHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Rekognition
91} // namespace Aws
AWS_REKOGNITION_API PersonDetail(Aws::Utils::Json::JsonView jsonValue)
const BoundingBox & GetBoundingBox() const
void SetBoundingBox(BoundingBoxT &&value)
PersonDetail & WithFace(FaceT &&value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API PersonDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const FaceDetail & GetFace() const
PersonDetail & WithIndex(long long value)
PersonDetail & WithBoundingBox(BoundingBoxT &&value)
AWS_REKOGNITION_API PersonDetail()=default
Aws::Utils::Json::JsonValue JsonValue