AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
RtmpMediaStreamInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9#include <aws/mediaconnect/model/ColorInformation.h>
10#include <aws/mediaconnect/model/FrameResolution.h>
11#include <aws/mediaconnect/model/ScanMode.h>
12#include <aws/mediaconnect/model/SourceMediaStreamType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaConnect {
24namespace Model {
25
34 public:
35 AWS_MEDIACONNECT_API RtmpMediaStreamInfo() = default;
36 AWS_MEDIACONNECT_API RtmpMediaStreamInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline int GetStreamId() const { return m_streamId; }
45 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
46 inline void SetStreamId(int value) {
47 m_streamIdHasBeenSet = true;
48 m_streamId = value;
49 }
50 inline RtmpMediaStreamInfo& WithStreamId(int value) {
51 SetStreamId(value);
52 return *this;
53 }
55
57
61 inline SourceMediaStreamType GetStreamType() const { return m_streamType; }
62 inline bool StreamTypeHasBeenSet() const { return m_streamTypeHasBeenSet; }
64 m_streamTypeHasBeenSet = true;
65 m_streamType = value;
66 }
68 SetStreamType(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetCodec() const { return m_codec; }
78 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
79 template <typename CodecT = Aws::String>
80 void SetCodec(CodecT&& value) {
81 m_codecHasBeenSet = true;
82 m_codec = std::forward<CodecT>(value);
83 }
84 template <typename CodecT = Aws::String>
85 RtmpMediaStreamInfo& WithCodec(CodecT&& value) {
86 SetCodec(std::forward<CodecT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetFrameRate() const { return m_frameRate; }
97 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
98 template <typename FrameRateT = Aws::String>
99 void SetFrameRate(FrameRateT&& value) {
100 m_frameRateHasBeenSet = true;
101 m_frameRate = std::forward<FrameRateT>(value);
102 }
103 template <typename FrameRateT = Aws::String>
104 RtmpMediaStreamInfo& WithFrameRate(FrameRateT&& value) {
105 SetFrameRate(std::forward<FrameRateT>(value));
106 return *this;
107 }
109
111
115 inline const FrameResolution& GetFrameResolution() const { return m_frameResolution; }
116 inline bool FrameResolutionHasBeenSet() const { return m_frameResolutionHasBeenSet; }
117 template <typename FrameResolutionT = FrameResolution>
118 void SetFrameResolution(FrameResolutionT&& value) {
119 m_frameResolutionHasBeenSet = true;
120 m_frameResolution = std::forward<FrameResolutionT>(value);
121 }
122 template <typename FrameResolutionT = FrameResolution>
123 RtmpMediaStreamInfo& WithFrameResolution(FrameResolutionT&& value) {
124 SetFrameResolution(std::forward<FrameResolutionT>(value));
125 return *this;
126 }
128
130
134 inline ScanMode GetScanMode() const { return m_scanMode; }
135 inline bool ScanModeHasBeenSet() const { return m_scanModeHasBeenSet; }
136 inline void SetScanMode(ScanMode value) {
137 m_scanModeHasBeenSet = true;
138 m_scanMode = value;
139 }
141 SetScanMode(value);
142 return *this;
143 }
145
147
151 inline const ColorInformation& GetColor() const { return m_color; }
152 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
153 template <typename ColorT = ColorInformation>
154 void SetColor(ColorT&& value) {
155 m_colorHasBeenSet = true;
156 m_color = std::forward<ColorT>(value);
157 }
158 template <typename ColorT = ColorInformation>
160 SetColor(std::forward<ColorT>(value));
161 return *this;
162 }
164
166
170 inline int GetChannels() const { return m_channels; }
171 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
172 inline void SetChannels(int value) {
173 m_channelsHasBeenSet = true;
174 m_channels = value;
175 }
177 SetChannels(value);
178 return *this;
179 }
181
183
187 inline int GetSampleRate() const { return m_sampleRate; }
188 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
189 inline void SetSampleRate(int value) {
190 m_sampleRateHasBeenSet = true;
191 m_sampleRate = value;
192 }
194 SetSampleRate(value);
195 return *this;
196 }
198
200
204 inline int GetSampleSize() const { return m_sampleSize; }
205 inline bool SampleSizeHasBeenSet() const { return m_sampleSizeHasBeenSet; }
206 inline void SetSampleSize(int value) {
207 m_sampleSizeHasBeenSet = true;
208 m_sampleSize = value;
209 }
211 SetSampleSize(value);
212 return *this;
213 }
215
217
221 inline const Aws::String& GetLanguage() const { return m_language; }
222 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
223 template <typename LanguageT = Aws::String>
224 void SetLanguage(LanguageT&& value) {
225 m_languageHasBeenSet = true;
226 m_language = std::forward<LanguageT>(value);
227 }
228 template <typename LanguageT = Aws::String>
229 RtmpMediaStreamInfo& WithLanguage(LanguageT&& value) {
230 SetLanguage(std::forward<LanguageT>(value));
231 return *this;
232 }
234 private:
235 int m_streamId{0};
236
238
239 Aws::String m_codec;
240
241 Aws::String m_frameRate;
242
243 FrameResolution m_frameResolution;
244
245 ScanMode m_scanMode{ScanMode::NOT_SET};
246
247 ColorInformation m_color;
248
249 int m_channels{0};
250
251 int m_sampleRate{0};
252
253 int m_sampleSize{0};
254
255 Aws::String m_language;
256 bool m_streamIdHasBeenSet = false;
257 bool m_streamTypeHasBeenSet = false;
258 bool m_codecHasBeenSet = false;
259 bool m_frameRateHasBeenSet = false;
260 bool m_frameResolutionHasBeenSet = false;
261 bool m_scanModeHasBeenSet = false;
262 bool m_colorHasBeenSet = false;
263 bool m_channelsHasBeenSet = false;
264 bool m_sampleRateHasBeenSet = false;
265 bool m_sampleSizeHasBeenSet = false;
266 bool m_languageHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace MediaConnect
271} // namespace Aws
RtmpMediaStreamInfo & WithStreamId(int value)
AWS_MEDIACONNECT_API RtmpMediaStreamInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONNECT_API RtmpMediaStreamInfo()=default
RtmpMediaStreamInfo & WithFrameRate(FrameRateT &&value)
RtmpMediaStreamInfo & WithColor(ColorT &&value)
RtmpMediaStreamInfo & WithStreamType(SourceMediaStreamType value)
const FrameResolution & GetFrameResolution() const
RtmpMediaStreamInfo & WithSampleSize(int value)
RtmpMediaStreamInfo & WithScanMode(ScanMode value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
RtmpMediaStreamInfo & WithChannels(int value)
AWS_MEDIACONNECT_API RtmpMediaStreamInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
RtmpMediaStreamInfo & WithLanguage(LanguageT &&value)
void SetStreamType(SourceMediaStreamType value)
RtmpMediaStreamInfo & WithCodec(CodecT &&value)
RtmpMediaStreamInfo & WithFrameResolution(FrameResolutionT &&value)
void SetFrameResolution(FrameResolutionT &&value)
RtmpMediaStreamInfo & WithSampleRate(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue