112 lines
3.3 KiB
C++
112 lines
3.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/rekognition/Rekognition_EXPORTS.h>
|
|
#include <aws/rekognition/model/PersonDetail.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Rekognition
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Details and path tracking information for a single time a person's path is
|
|
* tracked in a video. Amazon Rekognition operations that track people's paths
|
|
* return an array of <code>PersonDetection</code> objects with elements for each
|
|
* time a person's path is tracked in a video. </p> <p>For more information, see
|
|
* GetPersonTracking in the Amazon Rekognition Developer Guide. </p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/PersonDetection">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_REKOGNITION_API PersonDetection
|
|
{
|
|
public:
|
|
PersonDetection();
|
|
PersonDetection(Aws::Utils::Json::JsonView jsonValue);
|
|
PersonDetection& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The time, in milliseconds from the start of the video, that the person's path
|
|
* was tracked.</p>
|
|
*/
|
|
inline long long GetTimestamp() const{ return m_timestamp; }
|
|
|
|
/**
|
|
* <p>The time, in milliseconds from the start of the video, that the person's path
|
|
* was tracked.</p>
|
|
*/
|
|
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The time, in milliseconds from the start of the video, that the person's path
|
|
* was tracked.</p>
|
|
*/
|
|
inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; }
|
|
|
|
/**
|
|
* <p>The time, in milliseconds from the start of the video, that the person's path
|
|
* was tracked.</p>
|
|
*/
|
|
inline PersonDetection& WithTimestamp(long long value) { SetTimestamp(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Details about a person whose path was tracked in a video.</p>
|
|
*/
|
|
inline const PersonDetail& GetPerson() const{ return m_person; }
|
|
|
|
/**
|
|
* <p>Details about a person whose path was tracked in a video.</p>
|
|
*/
|
|
inline bool PersonHasBeenSet() const { return m_personHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Details about a person whose path was tracked in a video.</p>
|
|
*/
|
|
inline void SetPerson(const PersonDetail& value) { m_personHasBeenSet = true; m_person = value; }
|
|
|
|
/**
|
|
* <p>Details about a person whose path was tracked in a video.</p>
|
|
*/
|
|
inline void SetPerson(PersonDetail&& value) { m_personHasBeenSet = true; m_person = std::move(value); }
|
|
|
|
/**
|
|
* <p>Details about a person whose path was tracked in a video.</p>
|
|
*/
|
|
inline PersonDetection& WithPerson(const PersonDetail& value) { SetPerson(value); return *this;}
|
|
|
|
/**
|
|
* <p>Details about a person whose path was tracked in a video.</p>
|
|
*/
|
|
inline PersonDetection& WithPerson(PersonDetail&& value) { SetPerson(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
long long m_timestamp;
|
|
bool m_timestampHasBeenSet;
|
|
|
|
PersonDetail m_person;
|
|
bool m_personHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Rekognition
|
|
} // namespace Aws
|