AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AudioParameters.h
1
6#pragma once
7#include <aws/elastictranscoder/ElasticTranscoder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elastictranscoder/model/AudioCodecOptions.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 ElasticTranscoder
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ELASTICTRANSCODER_API AudioParameters() = default;
36 AWS_ELASTICTRANSCODER_API AudioParameters(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELASTICTRANSCODER_API AudioParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetCodec() const { return m_codec; }
48 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
49 template<typename CodecT = Aws::String>
50 void SetCodec(CodecT&& value) { m_codecHasBeenSet = true; m_codec = std::forward<CodecT>(value); }
51 template<typename CodecT = Aws::String>
52 AudioParameters& WithCodec(CodecT&& value) { SetCodec(std::forward<CodecT>(value)); return *this;}
54
56
63 inline const Aws::String& GetSampleRate() const { return m_sampleRate; }
64 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
65 template<typename SampleRateT = Aws::String>
66 void SetSampleRate(SampleRateT&& value) { m_sampleRateHasBeenSet = true; m_sampleRate = std::forward<SampleRateT>(value); }
67 template<typename SampleRateT = Aws::String>
68 AudioParameters& WithSampleRate(SampleRateT&& value) { SetSampleRate(std::forward<SampleRateT>(value)); return *this;}
70
72
76 inline const Aws::String& GetBitRate() const { return m_bitRate; }
77 inline bool BitRateHasBeenSet() const { return m_bitRateHasBeenSet; }
78 template<typename BitRateT = Aws::String>
79 void SetBitRate(BitRateT&& value) { m_bitRateHasBeenSet = true; m_bitRate = std::forward<BitRateT>(value); }
80 template<typename BitRateT = Aws::String>
81 AudioParameters& WithBitRate(BitRateT&& value) { SetBitRate(std::forward<BitRateT>(value)); return *this;}
83
85
105 inline const Aws::String& GetChannels() const { return m_channels; }
106 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
107 template<typename ChannelsT = Aws::String>
108 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
109 template<typename ChannelsT = Aws::String>
110 AudioParameters& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
112
114
183 inline const Aws::String& GetAudioPackingMode() const { return m_audioPackingMode; }
184 inline bool AudioPackingModeHasBeenSet() const { return m_audioPackingModeHasBeenSet; }
185 template<typename AudioPackingModeT = Aws::String>
186 void SetAudioPackingMode(AudioPackingModeT&& value) { m_audioPackingModeHasBeenSet = true; m_audioPackingMode = std::forward<AudioPackingModeT>(value); }
187 template<typename AudioPackingModeT = Aws::String>
188 AudioParameters& WithAudioPackingMode(AudioPackingModeT&& value) { SetAudioPackingMode(std::forward<AudioPackingModeT>(value)); return *this;}
190
192
199 inline const AudioCodecOptions& GetCodecOptions() const { return m_codecOptions; }
200 inline bool CodecOptionsHasBeenSet() const { return m_codecOptionsHasBeenSet; }
201 template<typename CodecOptionsT = AudioCodecOptions>
202 void SetCodecOptions(CodecOptionsT&& value) { m_codecOptionsHasBeenSet = true; m_codecOptions = std::forward<CodecOptionsT>(value); }
203 template<typename CodecOptionsT = AudioCodecOptions>
204 AudioParameters& WithCodecOptions(CodecOptionsT&& value) { SetCodecOptions(std::forward<CodecOptionsT>(value)); return *this;}
206 private:
207
208 Aws::String m_codec;
209 bool m_codecHasBeenSet = false;
210
211 Aws::String m_sampleRate;
212 bool m_sampleRateHasBeenSet = false;
213
214 Aws::String m_bitRate;
215 bool m_bitRateHasBeenSet = false;
216
217 Aws::String m_channels;
218 bool m_channelsHasBeenSet = false;
219
220 Aws::String m_audioPackingMode;
221 bool m_audioPackingModeHasBeenSet = false;
222
223 AudioCodecOptions m_codecOptions;
224 bool m_codecOptionsHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace ElasticTranscoder
229} // namespace Aws
const AudioCodecOptions & GetCodecOptions() const
void SetAudioPackingMode(AudioPackingModeT &&value)
AudioParameters & WithBitRate(BitRateT &&value)
AWS_ELASTICTRANSCODER_API AudioParameters(Aws::Utils::Json::JsonView jsonValue)
AudioParameters & WithCodecOptions(CodecOptionsT &&value)
AWS_ELASTICTRANSCODER_API AudioParameters()=default
AudioParameters & WithSampleRate(SampleRateT &&value)
AudioParameters & WithCodec(CodecT &&value)
AudioParameters & WithChannels(ChannelsT &&value)
AudioParameters & WithAudioPackingMode(AudioPackingModeT &&value)
AWS_ELASTICTRANSCODER_API AudioParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue