/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { /** *

Information about a detected celebrity and the time the celebrity was * detected in a stored video. For more information, see GetCelebrityRecognition in * the Amazon Rekognition Developer Guide.

See Also:

AWS * API Reference

*/ class CelebrityRecognition { public: AWS_REKOGNITION_API CelebrityRecognition(); AWS_REKOGNITION_API CelebrityRecognition(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API CelebrityRecognition& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time, in milliseconds from the start of the video, that the celebrity was * recognized. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the celebrity first appears.

*/ inline long long GetTimestamp() const{ return m_timestamp; } /** *

The time, in milliseconds from the start of the video, that the celebrity was * recognized. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the celebrity first appears.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The time, in milliseconds from the start of the video, that the celebrity was * recognized. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the celebrity first appears.

*/ inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time, in milliseconds from the start of the video, that the celebrity was * recognized. Note that Timestamp is not guaranteed to be accurate to * the individual frame where the celebrity first appears.

*/ inline CelebrityRecognition& WithTimestamp(long long value) { SetTimestamp(value); return *this;} /** *

Information about a recognized celebrity.

*/ inline const CelebrityDetail& GetCelebrity() const{ return m_celebrity; } /** *

Information about a recognized celebrity.

*/ inline bool CelebrityHasBeenSet() const { return m_celebrityHasBeenSet; } /** *

Information about a recognized celebrity.

*/ inline void SetCelebrity(const CelebrityDetail& value) { m_celebrityHasBeenSet = true; m_celebrity = value; } /** *

Information about a recognized celebrity.

*/ inline void SetCelebrity(CelebrityDetail&& value) { m_celebrityHasBeenSet = true; m_celebrity = std::move(value); } /** *

Information about a recognized celebrity.

*/ inline CelebrityRecognition& WithCelebrity(const CelebrityDetail& value) { SetCelebrity(value); return *this;} /** *

Information about a recognized celebrity.

*/ inline CelebrityRecognition& WithCelebrity(CelebrityDetail&& value) { SetCelebrity(std::move(value)); return *this;} private: long long m_timestamp; bool m_timestampHasBeenSet = false; CelebrityDetail m_celebrity; bool m_celebrityHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws