AWS SDK for C++

AWS SDK for C++ Version 1.11.914

Loading...
Searching...
No Matches
NdiMediaStreamInfo.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
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaConnect {
23namespace Model {
24
33 public:
34 AWS_MEDIACONNECT_API NdiMediaStreamInfo() = default;
35 AWS_MEDIACONNECT_API NdiMediaStreamInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetStreamType() const { return m_streamType; }
45 inline bool StreamTypeHasBeenSet() const { return m_streamTypeHasBeenSet; }
46 template <typename StreamTypeT = Aws::String>
47 void SetStreamType(StreamTypeT&& value) {
48 m_streamTypeHasBeenSet = true;
49 m_streamType = std::forward<StreamTypeT>(value);
50 }
51 template <typename StreamTypeT = Aws::String>
52 NdiMediaStreamInfo& WithStreamType(StreamTypeT&& value) {
53 SetStreamType(std::forward<StreamTypeT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetCodec() const { return m_codec; }
64 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
65 template <typename CodecT = Aws::String>
66 void SetCodec(CodecT&& value) {
67 m_codecHasBeenSet = true;
68 m_codec = std::forward<CodecT>(value);
69 }
70 template <typename CodecT = Aws::String>
71 NdiMediaStreamInfo& WithCodec(CodecT&& value) {
72 SetCodec(std::forward<CodecT>(value));
73 return *this;
74 }
76
78
81 inline int GetStreamId() const { return m_streamId; }
82 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
83 inline void SetStreamId(int value) {
84 m_streamIdHasBeenSet = true;
85 m_streamId = value;
86 }
87 inline NdiMediaStreamInfo& WithStreamId(int value) {
88 SetStreamId(value);
89 return *this;
90 }
92
94
98 inline ScanMode GetScanMode() const { return m_scanMode; }
99 inline bool ScanModeHasBeenSet() const { return m_scanModeHasBeenSet; }
100 inline void SetScanMode(ScanMode value) {
101 m_scanModeHasBeenSet = true;
102 m_scanMode = value;
103 }
105 SetScanMode(value);
106 return *this;
107 }
109
111
115 inline const ColorInformation& GetColor() const { return m_color; }
116 inline bool ColorHasBeenSet() const { return m_colorHasBeenSet; }
117 template <typename ColorT = ColorInformation>
118 void SetColor(ColorT&& value) {
119 m_colorHasBeenSet = true;
120 m_color = std::forward<ColorT>(value);
121 }
122 template <typename ColorT = ColorInformation>
123 NdiMediaStreamInfo& WithColor(ColorT&& value) {
124 SetColor(std::forward<ColorT>(value));
125 return *this;
126 }
128
130
134 inline const FrameResolution& GetFrameResolution() const { return m_frameResolution; }
135 inline bool FrameResolutionHasBeenSet() const { return m_frameResolutionHasBeenSet; }
136 template <typename FrameResolutionT = FrameResolution>
137 void SetFrameResolution(FrameResolutionT&& value) {
138 m_frameResolutionHasBeenSet = true;
139 m_frameResolution = std::forward<FrameResolutionT>(value);
140 }
141 template <typename FrameResolutionT = FrameResolution>
142 NdiMediaStreamInfo& WithFrameResolution(FrameResolutionT&& value) {
143 SetFrameResolution(std::forward<FrameResolutionT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetFrameRate() const { return m_frameRate; }
154 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
155 template <typename FrameRateT = Aws::String>
156 void SetFrameRate(FrameRateT&& value) {
157 m_frameRateHasBeenSet = true;
158 m_frameRate = std::forward<FrameRateT>(value);
159 }
160 template <typename FrameRateT = Aws::String>
161 NdiMediaStreamInfo& WithFrameRate(FrameRateT&& value) {
162 SetFrameRate(std::forward<FrameRateT>(value));
163 return *this;
164 }
166
168
172 inline int GetChannels() const { return m_channels; }
173 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
174 inline void SetChannels(int value) {
175 m_channelsHasBeenSet = true;
176 m_channels = value;
177 }
178 inline NdiMediaStreamInfo& WithChannels(int value) {
179 SetChannels(value);
180 return *this;
181 }
183
185
189 inline int GetSampleRate() const { return m_sampleRate; }
190 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
191 inline void SetSampleRate(int value) {
192 m_sampleRateHasBeenSet = true;
193 m_sampleRate = value;
194 }
196 SetSampleRate(value);
197 return *this;
198 }
200 private:
201 Aws::String m_streamType;
202
203 Aws::String m_codec;
204
205 int m_streamId{0};
206
207 ScanMode m_scanMode{ScanMode::NOT_SET};
208
209 ColorInformation m_color;
210
211 FrameResolution m_frameResolution;
212
213 Aws::String m_frameRate;
214
215 int m_channels{0};
216
217 int m_sampleRate{0};
218 bool m_streamTypeHasBeenSet = false;
219 bool m_codecHasBeenSet = false;
220 bool m_streamIdHasBeenSet = false;
221 bool m_scanModeHasBeenSet = false;
222 bool m_colorHasBeenSet = false;
223 bool m_frameResolutionHasBeenSet = false;
224 bool m_frameRateHasBeenSet = false;
225 bool m_channelsHasBeenSet = false;
226 bool m_sampleRateHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace MediaConnect
231} // namespace Aws
NdiMediaStreamInfo & WithStreamType(StreamTypeT &&value)
NdiMediaStreamInfo & WithFrameRate(FrameRateT &&value)
NdiMediaStreamInfo & WithScanMode(ScanMode value)
const ColorInformation & GetColor() const
AWS_MEDIACONNECT_API NdiMediaStreamInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
NdiMediaStreamInfo & WithFrameResolution(FrameResolutionT &&value)
NdiMediaStreamInfo & WithStreamId(int value)
AWS_MEDIACONNECT_API NdiMediaStreamInfo(Aws::Utils::Json::JsonView jsonValue)
void SetFrameResolution(FrameResolutionT &&value)
AWS_MEDIACONNECT_API NdiMediaStreamInfo()=default
NdiMediaStreamInfo & WithCodec(CodecT &&value)
NdiMediaStreamInfo & WithColor(ColorT &&value)
const FrameResolution & GetFrameResolution() const
NdiMediaStreamInfo & WithChannels(int value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NdiMediaStreamInfo & WithSampleRate(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue