AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AudioConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ivs/IVS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IVS {
20namespace Model {
21
31 public:
32 AWS_IVS_API AudioConfiguration() = default;
36
38
41 inline long long GetChannels() const { return m_channels; }
42 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
43 inline void SetChannels(long long value) {
44 m_channelsHasBeenSet = true;
45 m_channels = value;
46 }
47 inline AudioConfiguration& WithChannels(long long value) {
48 SetChannels(value);
49 return *this;
50 }
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) {
61 m_codecHasBeenSet = true;
62 m_codec = std::forward<CodecT>(value);
63 }
64 template <typename CodecT = Aws::String>
65 AudioConfiguration& WithCodec(CodecT&& value) {
66 SetCodec(std::forward<CodecT>(value));
67 return *this;
68 }
70
72
75 inline long long GetSampleRate() const { return m_sampleRate; }
76 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
77 inline void SetSampleRate(long long value) {
78 m_sampleRateHasBeenSet = true;
79 m_sampleRate = value;
80 }
81 inline AudioConfiguration& WithSampleRate(long long value) {
82 SetSampleRate(value);
83 return *this;
84 }
86
88
92 inline long long GetTargetBitrate() const { return m_targetBitrate; }
93 inline bool TargetBitrateHasBeenSet() const { return m_targetBitrateHasBeenSet; }
94 inline void SetTargetBitrate(long long value) {
95 m_targetBitrateHasBeenSet = true;
96 m_targetBitrate = value;
97 }
98 inline AudioConfiguration& WithTargetBitrate(long long value) {
99 SetTargetBitrate(value);
100 return *this;
101 }
103
105
109 inline const Aws::String& GetTrack() const { return m_track; }
110 inline bool TrackHasBeenSet() const { return m_trackHasBeenSet; }
111 template <typename TrackT = Aws::String>
112 void SetTrack(TrackT&& value) {
113 m_trackHasBeenSet = true;
114 m_track = std::forward<TrackT>(value);
115 }
116 template <typename TrackT = Aws::String>
117 AudioConfiguration& WithTrack(TrackT&& value) {
118 SetTrack(std::forward<TrackT>(value));
119 return *this;
120 }
122 private:
123 long long m_channels{0};
124
125 Aws::String m_codec;
126
127 long long m_sampleRate{0};
128
129 long long m_targetBitrate{0};
130
131 Aws::String m_track;
132 bool m_channelsHasBeenSet = false;
133 bool m_codecHasBeenSet = false;
134 bool m_sampleRateHasBeenSet = false;
135 bool m_targetBitrateHasBeenSet = false;
136 bool m_trackHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace IVS
141} // 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