AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Mp3Settings.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/Mp3RateControlMode.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MediaConvert {
20namespace Model {
21
29 public:
30 AWS_MEDIACONVERT_API Mp3Settings() = default;
31 AWS_MEDIACONVERT_API Mp3Settings(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIACONVERT_API Mp3Settings& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetBitrate() const { return m_bitrate; }
40 inline bool BitrateHasBeenSet() const { return m_bitrateHasBeenSet; }
41 inline void SetBitrate(int value) {
42 m_bitrateHasBeenSet = true;
43 m_bitrate = value;
44 }
45 inline Mp3Settings& WithBitrate(int value) {
46 SetBitrate(value);
47 return *this;
48 }
50
52
57 inline int GetChannels() const { return m_channels; }
58 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
59 inline void SetChannels(int value) {
60 m_channelsHasBeenSet = true;
61 m_channels = value;
62 }
63 inline Mp3Settings& WithChannels(int value) {
64 SetChannels(value);
65 return *this;
66 }
68
70
74 inline Mp3RateControlMode GetRateControlMode() const { return m_rateControlMode; }
75 inline bool RateControlModeHasBeenSet() const { return m_rateControlModeHasBeenSet; }
77 m_rateControlModeHasBeenSet = true;
78 m_rateControlMode = value;
79 }
81 SetRateControlMode(value);
82 return *this;
83 }
85
87
90 inline int GetSampleRate() const { return m_sampleRate; }
91 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
92 inline void SetSampleRate(int value) {
93 m_sampleRateHasBeenSet = true;
94 m_sampleRate = value;
95 }
96 inline Mp3Settings& WithSampleRate(int value) {
97 SetSampleRate(value);
98 return *this;
99 }
101
103
107 inline int GetVbrQuality() const { return m_vbrQuality; }
108 inline bool VbrQualityHasBeenSet() const { return m_vbrQualityHasBeenSet; }
109 inline void SetVbrQuality(int value) {
110 m_vbrQualityHasBeenSet = true;
111 m_vbrQuality = value;
112 }
113 inline Mp3Settings& WithVbrQuality(int value) {
114 SetVbrQuality(value);
115 return *this;
116 }
118 private:
119 int m_bitrate{0};
120
121 int m_channels{0};
122
124
125 int m_sampleRate{0};
126
127 int m_vbrQuality{0};
128 bool m_bitrateHasBeenSet = false;
129 bool m_channelsHasBeenSet = false;
130 bool m_rateControlModeHasBeenSet = false;
131 bool m_sampleRateHasBeenSet = false;
132 bool m_vbrQualityHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace MediaConvert
137} // namespace Aws
Mp3Settings & WithRateControlMode(Mp3RateControlMode value)
Definition Mp3Settings.h:80
AWS_MEDIACONVERT_API Mp3Settings()=default
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
Mp3Settings & WithBitrate(int value)
Definition Mp3Settings.h:45
void SetRateControlMode(Mp3RateControlMode value)
Definition Mp3Settings.h:76
AWS_MEDIACONVERT_API Mp3Settings & operator=(Aws::Utils::Json::JsonView jsonValue)
Mp3RateControlMode GetRateControlMode() const
Definition Mp3Settings.h:74
AWS_MEDIACONVERT_API Mp3Settings(Aws::Utils::Json::JsonView jsonValue)
Mp3Settings & WithChannels(int value)
Definition Mp3Settings.h:63
Mp3Settings & WithVbrQuality(int value)
Mp3Settings & WithSampleRate(int value)
Definition Mp3Settings.h:96
Aws::Utils::Json::JsonValue JsonValue