AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
InputDeviceConfigurableSettings.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/InputDeviceCodec.h>
11#include <aws/medialive/model/InputDeviceConfigurableAudioChannelPairConfig.h>
12#include <aws/medialive/model/InputDeviceConfiguredInput.h>
13#include <aws/medialive/model/InputDeviceMediaConnectConfigurableSettings.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaLive {
25namespace Model {
26
33 public:
34 AWS_MEDIALIVE_API InputDeviceConfigurableSettings() = default;
37 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline InputDeviceConfiguredInput GetConfiguredInput() const { return m_configuredInput; }
47 inline bool ConfiguredInputHasBeenSet() const { return m_configuredInputHasBeenSet; }
49 m_configuredInputHasBeenSet = true;
50 m_configuredInput = value;
51 }
53 SetConfiguredInput(value);
54 return *this;
55 }
57
59
63 inline int GetMaxBitrate() const { return m_maxBitrate; }
64 inline bool MaxBitrateHasBeenSet() const { return m_maxBitrateHasBeenSet; }
65 inline void SetMaxBitrate(int value) {
66 m_maxBitrateHasBeenSet = true;
67 m_maxBitrate = value;
68 }
70 SetMaxBitrate(value);
71 return *this;
72 }
74
76
79 inline int GetLatencyMs() const { return m_latencyMs; }
80 inline bool LatencyMsHasBeenSet() const { return m_latencyMsHasBeenSet; }
81 inline void SetLatencyMs(int value) {
82 m_latencyMsHasBeenSet = true;
83 m_latencyMs = value;
84 }
86 SetLatencyMs(value);
87 return *this;
88 }
90
92
96 inline InputDeviceCodec GetCodec() const { return m_codec; }
97 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
98 inline void SetCodec(InputDeviceCodec value) {
99 m_codecHasBeenSet = true;
100 m_codec = value;
101 }
103 SetCodec(value);
104 return *this;
105 }
107
109
114 inline const InputDeviceMediaConnectConfigurableSettings& GetMediaconnectSettings() const { return m_mediaconnectSettings; }
115 inline bool MediaconnectSettingsHasBeenSet() const { return m_mediaconnectSettingsHasBeenSet; }
116 template <typename MediaconnectSettingsT = InputDeviceMediaConnectConfigurableSettings>
117 void SetMediaconnectSettings(MediaconnectSettingsT&& value) {
118 m_mediaconnectSettingsHasBeenSet = true;
119 m_mediaconnectSettings = std::forward<MediaconnectSettingsT>(value);
120 }
121 template <typename MediaconnectSettingsT = InputDeviceMediaConnectConfigurableSettings>
123 SetMediaconnectSettings(std::forward<MediaconnectSettingsT>(value));
124 return *this;
125 }
127
129
137 inline const Aws::Vector<InputDeviceConfigurableAudioChannelPairConfig>& GetAudioChannelPairs() const { return m_audioChannelPairs; }
138 inline bool AudioChannelPairsHasBeenSet() const { return m_audioChannelPairsHasBeenSet; }
139 template <typename AudioChannelPairsT = Aws::Vector<InputDeviceConfigurableAudioChannelPairConfig>>
140 void SetAudioChannelPairs(AudioChannelPairsT&& value) {
141 m_audioChannelPairsHasBeenSet = true;
142 m_audioChannelPairs = std::forward<AudioChannelPairsT>(value);
143 }
144 template <typename AudioChannelPairsT = Aws::Vector<InputDeviceConfigurableAudioChannelPairConfig>>
146 SetAudioChannelPairs(std::forward<AudioChannelPairsT>(value));
147 return *this;
148 }
149 template <typename AudioChannelPairsT = InputDeviceConfigurableAudioChannelPairConfig>
151 m_audioChannelPairsHasBeenSet = true;
152 m_audioChannelPairs.emplace_back(std::forward<AudioChannelPairsT>(value));
153 return *this;
154 }
156
158
164 inline const Aws::String& GetInputResolution() const { return m_inputResolution; }
165 inline bool InputResolutionHasBeenSet() const { return m_inputResolutionHasBeenSet; }
166 template <typename InputResolutionT = Aws::String>
167 void SetInputResolution(InputResolutionT&& value) {
168 m_inputResolutionHasBeenSet = true;
169 m_inputResolution = std::forward<InputResolutionT>(value);
170 }
171 template <typename InputResolutionT = Aws::String>
173 SetInputResolution(std::forward<InputResolutionT>(value));
174 return *this;
175 }
177 private:
179
180 int m_maxBitrate{0};
181
182 int m_latencyMs{0};
183
185
186 InputDeviceMediaConnectConfigurableSettings m_mediaconnectSettings;
187
189
190 Aws::String m_inputResolution;
191 bool m_configuredInputHasBeenSet = false;
192 bool m_maxBitrateHasBeenSet = false;
193 bool m_latencyMsHasBeenSet = false;
194 bool m_codecHasBeenSet = false;
195 bool m_mediaconnectSettingsHasBeenSet = false;
196 bool m_audioChannelPairsHasBeenSet = false;
197 bool m_inputResolutionHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace MediaLive
202} // namespace Aws
const Aws::Vector< InputDeviceConfigurableAudioChannelPairConfig > & GetAudioChannelPairs() const
InputDeviceConfigurableSettings & WithAudioChannelPairs(AudioChannelPairsT &&value)
AWS_MEDIALIVE_API InputDeviceConfigurableSettings()=default
AWS_MEDIALIVE_API InputDeviceConfigurableSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
InputDeviceConfigurableSettings & WithMediaconnectSettings(MediaconnectSettingsT &&value)
InputDeviceConfigurableSettings & AddAudioChannelPairs(AudioChannelPairsT &&value)
const InputDeviceMediaConnectConfigurableSettings & GetMediaconnectSettings() const
InputDeviceConfigurableSettings & WithCodec(InputDeviceCodec value)
InputDeviceConfigurableSettings & WithInputResolution(InputResolutionT &&value)
InputDeviceConfigurableSettings & WithConfiguredInput(InputDeviceConfiguredInput value)
AWS_MEDIALIVE_API InputDeviceConfigurableSettings(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue