AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VideoMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/VideoColorRange.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Rekognition {
21namespace Model {
22
31 public:
32 AWS_REKOGNITION_API VideoMetadata() = default;
33 AWS_REKOGNITION_API VideoMetadata(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REKOGNITION_API VideoMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCodec() const { return m_codec; }
42 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
43 template <typename CodecT = Aws::String>
44 void SetCodec(CodecT&& value) {
45 m_codecHasBeenSet = true;
46 m_codec = std::forward<CodecT>(value);
47 }
48 template <typename CodecT = Aws::String>
49 VideoMetadata& WithCodec(CodecT&& value) {
50 SetCodec(std::forward<CodecT>(value));
51 return *this;
52 }
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) {
62 m_durationMillisHasBeenSet = true;
63 m_durationMillis = value;
64 }
65 inline VideoMetadata& WithDurationMillis(long long value) {
66 SetDurationMillis(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetFormat() const { return m_format; }
76 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
77 template <typename FormatT = Aws::String>
78 void SetFormat(FormatT&& value) {
79 m_formatHasBeenSet = true;
80 m_format = std::forward<FormatT>(value);
81 }
82 template <typename FormatT = Aws::String>
83 VideoMetadata& WithFormat(FormatT&& value) {
84 SetFormat(std::forward<FormatT>(value));
85 return *this;
86 }
88
90
93 inline double GetFrameRate() const { return m_frameRate; }
94 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
95 inline void SetFrameRate(double value) {
96 m_frameRateHasBeenSet = true;
97 m_frameRate = value;
98 }
99 inline VideoMetadata& WithFrameRate(double value) {
100 SetFrameRate(value);
101 return *this;
102 }
104
106
109 inline long long GetFrameHeight() const { return m_frameHeight; }
110 inline bool FrameHeightHasBeenSet() const { return m_frameHeightHasBeenSet; }
111 inline void SetFrameHeight(long long value) {
112 m_frameHeightHasBeenSet = true;
113 m_frameHeight = value;
114 }
115 inline VideoMetadata& WithFrameHeight(long long value) {
116 SetFrameHeight(value);
117 return *this;
118 }
120
122
125 inline long long GetFrameWidth() const { return m_frameWidth; }
126 inline bool FrameWidthHasBeenSet() const { return m_frameWidthHasBeenSet; }
127 inline void SetFrameWidth(long long value) {
128 m_frameWidthHasBeenSet = true;
129 m_frameWidth = value;
130 }
131 inline VideoMetadata& WithFrameWidth(long long value) {
132 SetFrameWidth(value);
133 return *this;
134 }
136
138
142 inline VideoColorRange GetColorRange() const { return m_colorRange; }
143 inline bool ColorRangeHasBeenSet() const { return m_colorRangeHasBeenSet; }
144 inline void SetColorRange(VideoColorRange value) {
145 m_colorRangeHasBeenSet = true;
146 m_colorRange = value;
147 }
149 SetColorRange(value);
150 return *this;
151 }
153 private:
154 Aws::String m_codec;
155
156 long long m_durationMillis{0};
157
158 Aws::String m_format;
159
160 double m_frameRate{0.0};
161
162 long long m_frameHeight{0};
163
164 long long m_frameWidth{0};
165
167 bool m_codecHasBeenSet = false;
168 bool m_durationMillisHasBeenSet = false;
169 bool m_formatHasBeenSet = false;
170 bool m_frameRateHasBeenSet = false;
171 bool m_frameHeightHasBeenSet = false;
172 bool m_frameWidthHasBeenSet = false;
173 bool m_colorRangeHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace Rekognition
178} // 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