AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AudioConfiguration.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IVS
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_IVS_API AudioConfiguration() = default;
41
42
44
47 inline long long GetChannels() const { return m_channels; }
48 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
49 inline void SetChannels(long long value) { m_channelsHasBeenSet = true; m_channels = value; }
50 inline AudioConfiguration& WithChannels(long long value) { SetChannels(value); return *this;}
52
54
57 inline const Aws::String& GetCodec() const { return m_codec; }
58 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
59 template<typename CodecT = Aws::String>
60 void SetCodec(CodecT&& value) { m_codecHasBeenSet = true; m_codec = std::forward<CodecT>(value); }
61 template<typename CodecT = Aws::String>
62 AudioConfiguration& WithCodec(CodecT&& value) { SetCodec(std::forward<CodecT>(value)); return *this;}
64
66
69 inline long long GetSampleRate() const { return m_sampleRate; }
70 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
71 inline void SetSampleRate(long long value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
72 inline AudioConfiguration& WithSampleRate(long long value) { SetSampleRate(value); return *this;}
74
76
80 inline long long GetTargetBitrate() const { return m_targetBitrate; }
81 inline bool TargetBitrateHasBeenSet() const { return m_targetBitrateHasBeenSet; }
82 inline void SetTargetBitrate(long long value) { m_targetBitrateHasBeenSet = true; m_targetBitrate = value; }
83 inline AudioConfiguration& WithTargetBitrate(long long value) { SetTargetBitrate(value); return *this;}
85
87
91 inline const Aws::String& GetTrack() const { return m_track; }
92 inline bool TrackHasBeenSet() const { return m_trackHasBeenSet; }
93 template<typename TrackT = Aws::String>
94 void SetTrack(TrackT&& value) { m_trackHasBeenSet = true; m_track = std::forward<TrackT>(value); }
95 template<typename TrackT = Aws::String>
96 AudioConfiguration& WithTrack(TrackT&& value) { SetTrack(std::forward<TrackT>(value)); return *this;}
98 private:
99
100 long long m_channels{0};
101 bool m_channelsHasBeenSet = false;
102
103 Aws::String m_codec;
104 bool m_codecHasBeenSet = false;
105
106 long long m_sampleRate{0};
107 bool m_sampleRateHasBeenSet = false;
108
109 long long m_targetBitrate{0};
110 bool m_targetBitrateHasBeenSet = false;
111
112 Aws::String m_track;
113 bool m_trackHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace IVS
118} // namespace Aws
const Aws::String & GetCodec() const
AWS_IVS_API AudioConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
AudioConfiguration & WithTargetBitrate(long long value)
AudioConfiguration & WithTrack(TrackT &&value)
AWS_IVS_API AudioConfiguration()=default
AudioConfiguration & WithChannels(long long value)
AWS_IVS_API AudioConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AudioConfiguration & WithSampleRate(long long value)
AudioConfiguration & WithCodec(CodecT &&value)
const Aws::String & GetTrack() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue