AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PersonDetection.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/PersonDetail.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Rekognition {
20namespace Model {
21
33 public:
34 AWS_REKOGNITION_API PersonDetection() = default;
35 AWS_REKOGNITION_API PersonDetection(Aws::Utils::Json::JsonView jsonValue);
36 AWS_REKOGNITION_API PersonDetection& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline long long GetTimestamp() const { return m_timestamp; }
46 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
47 inline void SetTimestamp(long long value) {
48 m_timestampHasBeenSet = true;
49 m_timestamp = value;
50 }
51 inline PersonDetection& WithTimestamp(long long value) {
52 SetTimestamp(value);
53 return *this;
54 }
56
58
61 inline const PersonDetail& GetPerson() const { return m_person; }
62 inline bool PersonHasBeenSet() const { return m_personHasBeenSet; }
63 template <typename PersonT = PersonDetail>
64 void SetPerson(PersonT&& value) {
65 m_personHasBeenSet = true;
66 m_person = std::forward<PersonT>(value);
67 }
68 template <typename PersonT = PersonDetail>
69 PersonDetection& WithPerson(PersonT&& value) {
70 SetPerson(std::forward<PersonT>(value));
71 return *this;
72 }
74 private:
75 long long m_timestamp{0};
76
77 PersonDetail m_person;
78 bool m_timestampHasBeenSet = false;
79 bool m_personHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Rekognition
84} // namespace Aws
AWS_REKOGNITION_API PersonDetection()=default
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API PersonDetection(Aws::Utils::Json::JsonView jsonValue)
PersonDetection & WithTimestamp(long long value)
AWS_REKOGNITION_API PersonDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
const PersonDetail & GetPerson() const
PersonDetection & WithPerson(PersonT &&value)
Aws::Utils::Json::JsonValue JsonValue