AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCodec(const Aws::String& value) { m_codecHasBeenSet = true; m_codec = value; }
50 inline void SetCodec(Aws::String&& value) { m_codecHasBeenSet = true; m_codec = std::move(value); }
51 inline void SetCodec(const char* value) { m_codecHasBeenSet = true; m_codec.assign(value); }
52 inline VideoMetadata& WithCodec(const Aws::String& value) { SetCodec(value); return *this;}
53 inline VideoMetadata& WithCodec(Aws::String&& value) { SetCodec(std::move(value)); return *this;}
54 inline VideoMetadata& WithCodec(const char* value) { SetCodec(value); return *this;}
56
58
61 inline long long GetDurationMillis() const{ return m_durationMillis; }
62 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
63 inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
64 inline VideoMetadata& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
66
68
71 inline const Aws::String& GetFormat() const{ return m_format; }
72 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
73 inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
74 inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
75 inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
76 inline VideoMetadata& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
77 inline VideoMetadata& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
78 inline VideoMetadata& WithFormat(const char* value) { SetFormat(value); return *this;}
80
82
85 inline double GetFrameRate() const{ return m_frameRate; }
86 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
87 inline void SetFrameRate(double value) { m_frameRateHasBeenSet = true; m_frameRate = value; }
88 inline VideoMetadata& WithFrameRate(double value) { SetFrameRate(value); return *this;}
90
92
95 inline long long GetFrameHeight() const{ return m_frameHeight; }
96 inline bool FrameHeightHasBeenSet() const { return m_frameHeightHasBeenSet; }
97 inline void SetFrameHeight(long long value) { m_frameHeightHasBeenSet = true; m_frameHeight = value; }
98 inline VideoMetadata& WithFrameHeight(long long value) { SetFrameHeight(value); return *this;}
100
102
105 inline long long GetFrameWidth() const{ return m_frameWidth; }
106 inline bool FrameWidthHasBeenSet() const { return m_frameWidthHasBeenSet; }
107 inline void SetFrameWidth(long long value) { m_frameWidthHasBeenSet = true; m_frameWidth = value; }
108 inline VideoMetadata& WithFrameWidth(long long value) { SetFrameWidth(value); return *this;}
110
112
116 inline const VideoColorRange& GetColorRange() const{ return m_colorRange; }
117 inline bool ColorRangeHasBeenSet() const { return m_colorRangeHasBeenSet; }
118 inline void SetColorRange(const VideoColorRange& value) { m_colorRangeHasBeenSet = true; m_colorRange = value; }
119 inline void SetColorRange(VideoColorRange&& value) { m_colorRangeHasBeenSet = true; m_colorRange = std::move(value); }
120 inline VideoMetadata& WithColorRange(const VideoColorRange& value) { SetColorRange(value); return *this;}
121 inline VideoMetadata& WithColorRange(VideoColorRange&& value) { SetColorRange(std::move(value)); return *this;}
123 private:
124
125 Aws::String m_codec;
126 bool m_codecHasBeenSet = false;
127
128 long long m_durationMillis;
129 bool m_durationMillisHasBeenSet = false;
130
131 Aws::String m_format;
132 bool m_formatHasBeenSet = false;
133
134 double m_frameRate;
135 bool m_frameRateHasBeenSet = false;
136
137 long long m_frameHeight;
138 bool m_frameHeightHasBeenSet = false;
139
140 long long m_frameWidth;
141 bool m_frameWidthHasBeenSet = false;
142
143 VideoColorRange m_colorRange;
144 bool m_colorRangeHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Rekognition
149} // namespace Aws
VideoMetadata & WithFrameWidth(long long value)
VideoMetadata & WithFormat(Aws::String &&value)
VideoMetadata & WithDurationMillis(long long value)
void SetCodec(const Aws::String &value)
const VideoColorRange & GetColorRange() const
VideoMetadata & WithColorRange(VideoColorRange &&value)
VideoMetadata & WithFrameHeight(long long value)
AWS_REKOGNITION_API VideoMetadata(Aws::Utils::Json::JsonView jsonValue)
VideoMetadata & WithCodec(const Aws::String &value)
void SetCodec(Aws::String &&value)
void SetDurationMillis(long long value)
VideoMetadata & WithFormat(const Aws::String &value)
VideoMetadata & WithCodec(const char *value)
const Aws::String & GetCodec() const
void SetFormat(Aws::String &&value)
AWS_REKOGNITION_API VideoMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
VideoMetadata & WithFormat(const char *value)
VideoMetadata & WithCodec(Aws::String &&value)
const Aws::String & GetFormat() const
void SetColorRange(const VideoColorRange &value)
VideoMetadata & WithFrameRate(double value)
void SetColorRange(VideoColorRange &&value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFormat(const Aws::String &value)
VideoMetadata & WithColorRange(const VideoColorRange &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue