AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
OpusSettings.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace MediaConvert {
17namespace Model {
18
26 public:
27 AWS_MEDIACONVERT_API OpusSettings() = default;
28 AWS_MEDIACONVERT_API OpusSettings(Aws::Utils::Json::JsonView jsonValue);
29 AWS_MEDIACONVERT_API OpusSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
38 inline int GetBitrate() const { return m_bitrate; }
39 inline bool BitrateHasBeenSet() const { return m_bitrateHasBeenSet; }
40 inline void SetBitrate(int value) {
41 m_bitrateHasBeenSet = true;
42 m_bitrate = value;
43 }
44 inline OpusSettings& WithBitrate(int value) {
45 SetBitrate(value);
46 return *this;
47 }
49
51
56 inline int GetChannels() const { return m_channels; }
57 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
58 inline void SetChannels(int value) {
59 m_channelsHasBeenSet = true;
60 m_channels = value;
61 }
62 inline OpusSettings& WithChannels(int value) {
63 SetChannels(value);
64 return *this;
65 }
67
69
73 inline int GetSampleRate() const { return m_sampleRate; }
74 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
75 inline void SetSampleRate(int value) {
76 m_sampleRateHasBeenSet = true;
77 m_sampleRate = value;
78 }
79 inline OpusSettings& WithSampleRate(int value) {
80 SetSampleRate(value);
81 return *this;
82 }
84 private:
85 int m_bitrate{0};
86
87 int m_channels{0};
88
89 int m_sampleRate{0};
90 bool m_bitrateHasBeenSet = false;
91 bool m_channelsHasBeenSet = false;
92 bool m_sampleRateHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace MediaConvert
97} // namespace Aws
OpusSettings & WithSampleRate(int value)
OpusSettings & WithChannels(int value)
AWS_MEDIACONVERT_API OpusSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONVERT_API OpusSettings()=default
OpusSettings & WithBitrate(int value)
AWS_MEDIACONVERT_API OpusSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue