AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
InputDeviceUhdSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/InputDeviceActiveInput.h>
11#include <aws/medialive/model/InputDeviceCodec.h>
12#include <aws/medialive/model/InputDeviceConfiguredInput.h>
13#include <aws/medialive/model/InputDeviceMediaConnectSettings.h>
14#include <aws/medialive/model/InputDeviceScanType.h>
15#include <aws/medialive/model/InputDeviceState.h>
16#include <aws/medialive/model/InputDeviceUhdAudioChannelPairConfig.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace MediaLive {
28namespace Model {
29
37 public:
38 AWS_MEDIALIVE_API InputDeviceUhdSettings() = default;
41 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline InputDeviceActiveInput GetActiveInput() const { return m_activeInput; }
49 inline bool ActiveInputHasBeenSet() const { return m_activeInputHasBeenSet; }
51 m_activeInputHasBeenSet = true;
52 m_activeInput = value;
53 }
55 SetActiveInput(value);
56 return *this;
57 }
59
61
65 inline InputDeviceConfiguredInput GetConfiguredInput() const { return m_configuredInput; }
66 inline bool ConfiguredInputHasBeenSet() const { return m_configuredInputHasBeenSet; }
68 m_configuredInputHasBeenSet = true;
69 m_configuredInput = value;
70 }
72 SetConfiguredInput(value);
73 return *this;
74 }
76
78
81 inline InputDeviceState GetDeviceState() const { return m_deviceState; }
82 inline bool DeviceStateHasBeenSet() const { return m_deviceStateHasBeenSet; }
83 inline void SetDeviceState(InputDeviceState value) {
84 m_deviceStateHasBeenSet = true;
85 m_deviceState = value;
86 }
88 SetDeviceState(value);
89 return *this;
90 }
92
94
97 inline double GetFramerate() const { return m_framerate; }
98 inline bool FramerateHasBeenSet() const { return m_framerateHasBeenSet; }
99 inline void SetFramerate(double value) {
100 m_framerateHasBeenSet = true;
101 m_framerate = value;
102 }
103 inline InputDeviceUhdSettings& WithFramerate(double value) {
104 SetFramerate(value);
105 return *this;
106 }
108
110
113 inline int GetHeight() const { return m_height; }
114 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
115 inline void SetHeight(int value) {
116 m_heightHasBeenSet = true;
117 m_height = value;
118 }
120 SetHeight(value);
121 return *this;
122 }
124
126
130 inline int GetMaxBitrate() const { return m_maxBitrate; }
131 inline bool MaxBitrateHasBeenSet() const { return m_maxBitrateHasBeenSet; }
132 inline void SetMaxBitrate(int value) {
133 m_maxBitrateHasBeenSet = true;
134 m_maxBitrate = value;
135 }
137 SetMaxBitrate(value);
138 return *this;
139 }
141
143
146 inline InputDeviceScanType GetScanType() const { return m_scanType; }
147 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
148 inline void SetScanType(InputDeviceScanType value) {
149 m_scanTypeHasBeenSet = true;
150 m_scanType = value;
151 }
153 SetScanType(value);
154 return *this;
155 }
157
159
162 inline int GetWidth() const { return m_width; }
163 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
164 inline void SetWidth(int value) {
165 m_widthHasBeenSet = true;
166 m_width = value;
167 }
169 SetWidth(value);
170 return *this;
171 }
173
175
179 inline int GetLatencyMs() const { return m_latencyMs; }
180 inline bool LatencyMsHasBeenSet() const { return m_latencyMsHasBeenSet; }
181 inline void SetLatencyMs(int value) {
182 m_latencyMsHasBeenSet = true;
183 m_latencyMs = value;
184 }
186 SetLatencyMs(value);
187 return *this;
188 }
190
192
195 inline InputDeviceCodec GetCodec() const { return m_codec; }
196 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
197 inline void SetCodec(InputDeviceCodec value) {
198 m_codecHasBeenSet = true;
199 m_codec = value;
200 }
202 SetCodec(value);
203 return *this;
204 }
206
208
212 inline const InputDeviceMediaConnectSettings& GetMediaconnectSettings() const { return m_mediaconnectSettings; }
213 inline bool MediaconnectSettingsHasBeenSet() const { return m_mediaconnectSettingsHasBeenSet; }
214 template <typename MediaconnectSettingsT = InputDeviceMediaConnectSettings>
215 void SetMediaconnectSettings(MediaconnectSettingsT&& value) {
216 m_mediaconnectSettingsHasBeenSet = true;
217 m_mediaconnectSettings = std::forward<MediaconnectSettingsT>(value);
218 }
219 template <typename MediaconnectSettingsT = InputDeviceMediaConnectSettings>
220 InputDeviceUhdSettings& WithMediaconnectSettings(MediaconnectSettingsT&& value) {
221 SetMediaconnectSettings(std::forward<MediaconnectSettingsT>(value));
222 return *this;
223 }
225
227
233 inline const Aws::Vector<InputDeviceUhdAudioChannelPairConfig>& GetAudioChannelPairs() const { return m_audioChannelPairs; }
234 inline bool AudioChannelPairsHasBeenSet() const { return m_audioChannelPairsHasBeenSet; }
235 template <typename AudioChannelPairsT = Aws::Vector<InputDeviceUhdAudioChannelPairConfig>>
236 void SetAudioChannelPairs(AudioChannelPairsT&& value) {
237 m_audioChannelPairsHasBeenSet = true;
238 m_audioChannelPairs = std::forward<AudioChannelPairsT>(value);
239 }
240 template <typename AudioChannelPairsT = Aws::Vector<InputDeviceUhdAudioChannelPairConfig>>
241 InputDeviceUhdSettings& WithAudioChannelPairs(AudioChannelPairsT&& value) {
242 SetAudioChannelPairs(std::forward<AudioChannelPairsT>(value));
243 return *this;
244 }
245 template <typename AudioChannelPairsT = InputDeviceUhdAudioChannelPairConfig>
246 InputDeviceUhdSettings& AddAudioChannelPairs(AudioChannelPairsT&& value) {
247 m_audioChannelPairsHasBeenSet = true;
248 m_audioChannelPairs.emplace_back(std::forward<AudioChannelPairsT>(value));
249 return *this;
250 }
252
254
258 inline const Aws::String& GetInputResolution() const { return m_inputResolution; }
259 inline bool InputResolutionHasBeenSet() const { return m_inputResolutionHasBeenSet; }
260 template <typename InputResolutionT = Aws::String>
261 void SetInputResolution(InputResolutionT&& value) {
262 m_inputResolutionHasBeenSet = true;
263 m_inputResolution = std::forward<InputResolutionT>(value);
264 }
265 template <typename InputResolutionT = Aws::String>
266 InputDeviceUhdSettings& WithInputResolution(InputResolutionT&& value) {
267 SetInputResolution(std::forward<InputResolutionT>(value));
268 return *this;
269 }
271 private:
273
275
277
278 double m_framerate{0.0};
279
280 int m_height{0};
281
282 int m_maxBitrate{0};
283
285
286 int m_width{0};
287
288 int m_latencyMs{0};
289
291
292 InputDeviceMediaConnectSettings m_mediaconnectSettings;
293
295
296 Aws::String m_inputResolution;
297 bool m_activeInputHasBeenSet = false;
298 bool m_configuredInputHasBeenSet = false;
299 bool m_deviceStateHasBeenSet = false;
300 bool m_framerateHasBeenSet = false;
301 bool m_heightHasBeenSet = false;
302 bool m_maxBitrateHasBeenSet = false;
303 bool m_scanTypeHasBeenSet = false;
304 bool m_widthHasBeenSet = false;
305 bool m_latencyMsHasBeenSet = false;
306 bool m_codecHasBeenSet = false;
307 bool m_mediaconnectSettingsHasBeenSet = false;
308 bool m_audioChannelPairsHasBeenSet = false;
309 bool m_inputResolutionHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace MediaLive
314} // namespace Aws
AWS_MEDIALIVE_API InputDeviceUhdSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
InputDeviceUhdSettings & WithFramerate(double value)
InputDeviceUhdSettings & WithHeight(int value)
InputDeviceUhdSettings & WithMediaconnectSettings(MediaconnectSettingsT &&value)
void SetActiveInput(InputDeviceActiveInput value)
InputDeviceUhdSettings & WithActiveInput(InputDeviceActiveInput value)
AWS_MEDIALIVE_API InputDeviceUhdSettings(Aws::Utils::Json::JsonView jsonValue)
InputDeviceUhdSettings & WithScanType(InputDeviceScanType value)
InputDeviceUhdSettings & WithLatencyMs(int value)
InputDeviceUhdSettings & WithAudioChannelPairs(AudioChannelPairsT &&value)
InputDeviceUhdSettings & AddAudioChannelPairs(AudioChannelPairsT &&value)
void SetAudioChannelPairs(AudioChannelPairsT &&value)
InputDeviceUhdSettings & WithInputResolution(InputResolutionT &&value)
InputDeviceUhdSettings & WithMaxBitrate(int value)
InputDeviceUhdSettings & WithDeviceState(InputDeviceState value)
void SetConfiguredInput(InputDeviceConfiguredInput value)
InputDeviceUhdSettings & WithCodec(InputDeviceCodec value)
const Aws::Vector< InputDeviceUhdAudioChannelPairConfig > & GetAudioChannelPairs() const
InputDeviceUhdSettings & WithConfiguredInput(InputDeviceConfiguredInput value)
AWS_MEDIALIVE_API InputDeviceUhdSettings()=default
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const InputDeviceMediaConnectSettings & GetMediaconnectSettings() const
InputDeviceUhdSettings & WithWidth(int value)
void SetMediaconnectSettings(MediaconnectSettingsT &&value)
InputDeviceConfiguredInput GetConfiguredInput() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue