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

Information about a video that Amazon Rekognition analyzed. * Videometadata is returned in every page of paginated responses from * a Amazon Rekognition video operation.

See Also:

AWS * API Reference

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

Type of compression used in the analyzed video.

*/ inline const Aws::String& GetCodec() const{ return m_codec; } /** *

Type of compression used in the analyzed video.

*/ inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; } /** *

Type of compression used in the analyzed video.

*/ inline void SetCodec(const Aws::String& value) { m_codecHasBeenSet = true; m_codec = value; } /** *

Type of compression used in the analyzed video.

*/ inline void SetCodec(Aws::String&& value) { m_codecHasBeenSet = true; m_codec = std::move(value); } /** *

Type of compression used in the analyzed video.

*/ inline void SetCodec(const char* value) { m_codecHasBeenSet = true; m_codec.assign(value); } /** *

Type of compression used in the analyzed video.

*/ inline VideoMetadata& WithCodec(const Aws::String& value) { SetCodec(value); return *this;} /** *

Type of compression used in the analyzed video.

*/ inline VideoMetadata& WithCodec(Aws::String&& value) { SetCodec(std::move(value)); return *this;} /** *

Type of compression used in the analyzed video.

*/ inline VideoMetadata& WithCodec(const char* value) { SetCodec(value); return *this;} /** *

Length of the video in milliseconds.

*/ inline long long GetDurationMillis() const{ return m_durationMillis; } /** *

Length of the video in milliseconds.

*/ inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; } /** *

Length of the video in milliseconds.

*/ inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; } /** *

Length of the video in milliseconds.

*/ inline VideoMetadata& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;} /** *

Format of the analyzed video. Possible values are MP4, MOV and AVI.

*/ inline const Aws::String& GetFormat() const{ return m_format; } /** *

Format of the analyzed video. Possible values are MP4, MOV and AVI.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

Format of the analyzed video. Possible values are MP4, MOV and AVI.

*/ inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; } /** *

Format of the analyzed video. Possible values are MP4, MOV and AVI.

*/ inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

Format of the analyzed video. Possible values are MP4, MOV and AVI.

*/ inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); } /** *

Format of the analyzed video. Possible values are MP4, MOV and AVI.

*/ inline VideoMetadata& WithFormat(const Aws::String& value) { SetFormat(value); return *this;} /** *

Format of the analyzed video. Possible values are MP4, MOV and AVI.

*/ inline VideoMetadata& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;} /** *

Format of the analyzed video. Possible values are MP4, MOV and AVI.

*/ inline VideoMetadata& WithFormat(const char* value) { SetFormat(value); return *this;} /** *

Number of frames per second in the video.

*/ inline double GetFrameRate() const{ return m_frameRate; } /** *

Number of frames per second in the video.

*/ inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; } /** *

Number of frames per second in the video.

*/ inline void SetFrameRate(double value) { m_frameRateHasBeenSet = true; m_frameRate = value; } /** *

Number of frames per second in the video.

*/ inline VideoMetadata& WithFrameRate(double value) { SetFrameRate(value); return *this;} /** *

Vertical pixel dimension of the video.

*/ inline long long GetFrameHeight() const{ return m_frameHeight; } /** *

Vertical pixel dimension of the video.

*/ inline bool FrameHeightHasBeenSet() const { return m_frameHeightHasBeenSet; } /** *

Vertical pixel dimension of the video.

*/ inline void SetFrameHeight(long long value) { m_frameHeightHasBeenSet = true; m_frameHeight = value; } /** *

Vertical pixel dimension of the video.

*/ inline VideoMetadata& WithFrameHeight(long long value) { SetFrameHeight(value); return *this;} /** *

Horizontal pixel dimension of the video.

*/ inline long long GetFrameWidth() const{ return m_frameWidth; } /** *

Horizontal pixel dimension of the video.

*/ inline bool FrameWidthHasBeenSet() const { return m_frameWidthHasBeenSet; } /** *

Horizontal pixel dimension of the video.

*/ inline void SetFrameWidth(long long value) { m_frameWidthHasBeenSet = true; m_frameWidth = value; } /** *

Horizontal pixel dimension of the video.

*/ inline VideoMetadata& WithFrameWidth(long long value) { SetFrameWidth(value); return *this;} /** *

A description of the range of luminance values in a video, either LIMITED * (16 to 235) or FULL (0 to 255).

*/ inline const VideoColorRange& GetColorRange() const{ return m_colorRange; } /** *

A description of the range of luminance values in a video, either LIMITED * (16 to 235) or FULL (0 to 255).

*/ inline bool ColorRangeHasBeenSet() const { return m_colorRangeHasBeenSet; } /** *

A description of the range of luminance values in a video, either LIMITED * (16 to 235) or FULL (0 to 255).

*/ inline void SetColorRange(const VideoColorRange& value) { m_colorRangeHasBeenSet = true; m_colorRange = value; } /** *

A description of the range of luminance values in a video, either LIMITED * (16 to 235) or FULL (0 to 255).

*/ inline void SetColorRange(VideoColorRange&& value) { m_colorRangeHasBeenSet = true; m_colorRange = std::move(value); } /** *

A description of the range of luminance values in a video, either LIMITED * (16 to 235) or FULL (0 to 255).

*/ inline VideoMetadata& WithColorRange(const VideoColorRange& value) { SetColorRange(value); return *this;} /** *

A description of the range of luminance values in a video, either LIMITED * (16 to 235) or FULL (0 to 255).

*/ inline VideoMetadata& WithColorRange(VideoColorRange&& value) { SetColorRange(std::move(value)); return *this;} private: Aws::String m_codec; bool m_codecHasBeenSet = false; long long m_durationMillis; bool m_durationMillisHasBeenSet = false; Aws::String m_format; bool m_formatHasBeenSet = false; double m_frameRate; bool m_frameRateHasBeenSet = false; long long m_frameHeight; bool m_frameHeightHasBeenSet = false; long long m_frameWidth; bool m_frameWidthHasBeenSet = false; VideoColorRange m_colorRange; bool m_colorRangeHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws