AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VideoMetadata.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rekognition/model/VideoColorRange.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Rekognition
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_REKOGNITION_API VideoMetadata() = default;
38 AWS_REKOGNITION_API VideoMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REKOGNITION_API VideoMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCodec() const { return m_codec; }
48 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
49 template<typename CodecT = Aws::String>
50 void SetCodec(CodecT&& value) { m_codecHasBeenSet = true; m_codec = std::forward<CodecT>(value); }
51 template<typename CodecT = Aws::String>
52 VideoMetadata& WithCodec(CodecT&& value) { SetCodec(std::forward<CodecT>(value)); return *this;}
54
56
59 inline long long GetDurationMillis() const { return m_durationMillis; }
60 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
61 inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
62 inline VideoMetadata& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
64
66
69 inline const Aws::String& GetFormat() const { return m_format; }
70 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
71 template<typename FormatT = Aws::String>
72 void SetFormat(FormatT&& value) { m_formatHasBeenSet = true; m_format = std::forward<FormatT>(value); }
73 template<typename FormatT = Aws::String>
74 VideoMetadata& WithFormat(FormatT&& value) { SetFormat(std::forward<FormatT>(value)); return *this;}
76
78
81 inline double GetFrameRate() const { return m_frameRate; }
82 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
83 inline void SetFrameRate(double value) { m_frameRateHasBeenSet = true; m_frameRate = value; }
84 inline VideoMetadata& WithFrameRate(double value) { SetFrameRate(value); return *this;}
86
88
91 inline long long GetFrameHeight() const { return m_frameHeight; }
92 inline bool FrameHeightHasBeenSet() const { return m_frameHeightHasBeenSet; }
93 inline void SetFrameHeight(long long value) { m_frameHeightHasBeenSet = true; m_frameHeight = value; }
94 inline VideoMetadata& WithFrameHeight(long long value) { SetFrameHeight(value); return *this;}
96
98
101 inline long long GetFrameWidth() const { return m_frameWidth; }
102 inline bool FrameWidthHasBeenSet() const { return m_frameWidthHasBeenSet; }
103 inline void SetFrameWidth(long long value) { m_frameWidthHasBeenSet = true; m_frameWidth = value; }
104 inline VideoMetadata& WithFrameWidth(long long value) { SetFrameWidth(value); return *this;}
106
108
112 inline VideoColorRange GetColorRange() const { return m_colorRange; }
113 inline bool ColorRangeHasBeenSet() const { return m_colorRangeHasBeenSet; }
114 inline void SetColorRange(VideoColorRange value) { m_colorRangeHasBeenSet = true; m_colorRange = value; }
115 inline VideoMetadata& WithColorRange(VideoColorRange value) { SetColorRange(value); return *this;}
117 private:
118
119 Aws::String m_codec;
120 bool m_codecHasBeenSet = false;
121
122 long long m_durationMillis{0};
123 bool m_durationMillisHasBeenSet = false;
124
125 Aws::String m_format;
126 bool m_formatHasBeenSet = false;
127
128 double m_frameRate{0.0};
129 bool m_frameRateHasBeenSet = false;
130
131 long long m_frameHeight{0};
132 bool m_frameHeightHasBeenSet = false;
133
134 long long m_frameWidth{0};
135 bool m_frameWidthHasBeenSet = false;
136
138 bool m_colorRangeHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Rekognition
143} // namespace Aws
VideoColorRange GetColorRange() const
AWS_REKOGNITION_API VideoMetadata()=default
VideoMetadata & WithFrameWidth(long long value)
void SetColorRange(VideoColorRange value)
VideoMetadata & WithDurationMillis(long long value)
VideoMetadata & WithFrameHeight(long long value)
AWS_REKOGNITION_API VideoMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetDurationMillis(long long value)
VideoMetadata & WithCodec(CodecT &&value)
VideoMetadata & WithFormat(FormatT &&value)
VideoMetadata & WithColorRange(VideoColorRange value)
const Aws::String & GetCodec() const
AWS_REKOGNITION_API VideoMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFormat() const
VideoMetadata & WithFrameRate(double value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue