AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Rekognition {
21namespace Model {
22
30 public:
31 AWS_REKOGNITION_API PersonDetail() = default;
32 AWS_REKOGNITION_API PersonDetail(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REKOGNITION_API PersonDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline long long GetIndex() const { return m_index; }
43 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
44 inline void SetIndex(long long value) {
45 m_indexHasBeenSet = true;
46 m_index = value;
47 }
48 inline PersonDetail& WithIndex(long long value) {
49 SetIndex(value);
50 return *this;
51 }
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) {
62 m_boundingBoxHasBeenSet = true;
63 m_boundingBox = std::forward<BoundingBoxT>(value);
64 }
65 template <typename BoundingBoxT = BoundingBox>
66 PersonDetail& WithBoundingBox(BoundingBoxT&& value) {
67 SetBoundingBox(std::forward<BoundingBoxT>(value));
68 return *this;
69 }
71
73
76 inline const FaceDetail& GetFace() const { return m_face; }
77 inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; }
78 template <typename FaceT = FaceDetail>
79 void SetFace(FaceT&& value) {
80 m_faceHasBeenSet = true;
81 m_face = std::forward<FaceT>(value);
82 }
83 template <typename FaceT = FaceDetail>
84 PersonDetail& WithFace(FaceT&& value) {
85 SetFace(std::forward<FaceT>(value));
86 return *this;
87 }
89 private:
90 long long m_index{0};
91
92 BoundingBox m_boundingBox;
93
94 FaceDetail m_face;
95 bool m_indexHasBeenSet = false;
96 bool m_boundingBoxHasBeenSet = false;
97 bool m_faceHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Rekognition
102} // 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