AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
AacSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/AacCodingMode.h>
9#include <aws/medialive/model/AacInputType.h>
10#include <aws/medialive/model/AacProfile.h>
11#include <aws/medialive/model/AacRateControlMode.h>
12#include <aws/medialive/model/AacRawFormat.h>
13#include <aws/medialive/model/AacSpec.h>
14#include <aws/medialive/model/AacVbrQuality.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaLive {
26namespace Model {
27
34 public:
35 AWS_MEDIALIVE_API AacSettings() = default;
36 AWS_MEDIALIVE_API AacSettings(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIALIVE_API AacSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline double GetBitrate() const { return m_bitrate; }
46 inline bool BitrateHasBeenSet() const { return m_bitrateHasBeenSet; }
47 inline void SetBitrate(double value) {
48 m_bitrateHasBeenSet = true;
49 m_bitrate = value;
50 }
51 inline AacSettings& WithBitrate(double value) {
52 SetBitrate(value);
53 return *this;
54 }
56
58
64 inline AacCodingMode GetCodingMode() const { return m_codingMode; }
65 inline bool CodingModeHasBeenSet() const { return m_codingModeHasBeenSet; }
66 inline void SetCodingMode(AacCodingMode value) {
67 m_codingModeHasBeenSet = true;
68 m_codingMode = value;
69 }
71 SetCodingMode(value);
72 return *this;
73 }
75
77
89 inline AacInputType GetInputType() const { return m_inputType; }
90 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
91 inline void SetInputType(AacInputType value) {
92 m_inputTypeHasBeenSet = true;
93 m_inputType = value;
94 }
96 SetInputType(value);
97 return *this;
98 }
100
102
105 inline AacProfile GetProfile() const { return m_profile; }
106 inline bool ProfileHasBeenSet() const { return m_profileHasBeenSet; }
107 inline void SetProfile(AacProfile value) {
108 m_profileHasBeenSet = true;
109 m_profile = value;
110 }
112 SetProfile(value);
113 return *this;
114 }
116
118
121 inline AacRateControlMode GetRateControlMode() const { return m_rateControlMode; }
122 inline bool RateControlModeHasBeenSet() const { return m_rateControlModeHasBeenSet; }
124 m_rateControlModeHasBeenSet = true;
125 m_rateControlMode = value;
126 }
128 SetRateControlMode(value);
129 return *this;
130 }
132
134
137 inline AacRawFormat GetRawFormat() const { return m_rawFormat; }
138 inline bool RawFormatHasBeenSet() const { return m_rawFormatHasBeenSet; }
139 inline void SetRawFormat(AacRawFormat value) {
140 m_rawFormatHasBeenSet = true;
141 m_rawFormat = value;
142 }
144 SetRawFormat(value);
145 return *this;
146 }
148
150
153 inline double GetSampleRate() const { return m_sampleRate; }
154 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
155 inline void SetSampleRate(double value) {
156 m_sampleRateHasBeenSet = true;
157 m_sampleRate = value;
158 }
159 inline AacSettings& WithSampleRate(double value) {
160 SetSampleRate(value);
161 return *this;
162 }
164
166
170 inline AacSpec GetSpec() const { return m_spec; }
171 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
172 inline void SetSpec(AacSpec value) {
173 m_specHasBeenSet = true;
174 m_spec = value;
175 }
176 inline AacSettings& WithSpec(AacSpec value) {
177 SetSpec(value);
178 return *this;
179 }
181
183
186 inline AacVbrQuality GetVbrQuality() const { return m_vbrQuality; }
187 inline bool VbrQualityHasBeenSet() const { return m_vbrQualityHasBeenSet; }
188 inline void SetVbrQuality(AacVbrQuality value) {
189 m_vbrQualityHasBeenSet = true;
190 m_vbrQuality = value;
191 }
193 SetVbrQuality(value);
194 return *this;
195 }
197 private:
198 double m_bitrate{0.0};
199
201
203
205
207
209
210 double m_sampleRate{0.0};
211
213
215 bool m_bitrateHasBeenSet = false;
216 bool m_codingModeHasBeenSet = false;
217 bool m_inputTypeHasBeenSet = false;
218 bool m_profileHasBeenSet = false;
219 bool m_rateControlModeHasBeenSet = false;
220 bool m_rawFormatHasBeenSet = false;
221 bool m_sampleRateHasBeenSet = false;
222 bool m_specHasBeenSet = false;
223 bool m_vbrQualityHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace MediaLive
228} // namespace Aws
AWS_MEDIALIVE_API AacSettings()=default
AacCodingMode GetCodingMode() const
Definition AacSettings.h:64
AacInputType GetInputType() const
Definition AacSettings.h:89
AacSettings & WithCodingMode(AacCodingMode value)
Definition AacSettings.h:70
AacSettings & WithVbrQuality(AacVbrQuality value)
void SetRateControlMode(AacRateControlMode value)
AWS_MEDIALIVE_API AacSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AacRawFormat GetRawFormat() const
void SetInputType(AacInputType value)
Definition AacSettings.h:91
AacSettings & WithBitrate(double value)
Definition AacSettings.h:51
AWS_MEDIALIVE_API AacSettings(Aws::Utils::Json::JsonView jsonValue)
AacSettings & WithRawFormat(AacRawFormat value)
AacSettings & WithRateControlMode(AacRateControlMode value)
void SetVbrQuality(AacVbrQuality value)
AacRateControlMode GetRateControlMode() const
AacSettings & WithProfile(AacProfile value)
AacSettings & WithSampleRate(double value)
AacSettings & WithSpec(AacSpec value)
AacSettings & WithInputType(AacInputType value)
Definition AacSettings.h:95
void SetRawFormat(AacRawFormat value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProfile(AacProfile value)
AacVbrQuality GetVbrQuality() const
void SetCodingMode(AacCodingMode value)
Definition AacSettings.h:66
Aws::Utils::Json::JsonValue JsonValue