AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Mp2Settings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/Mp2CodingMode.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MediaLive {
20namespace Model {
21
28 public:
29 AWS_MEDIALIVE_API Mp2Settings() = default;
30 AWS_MEDIALIVE_API Mp2Settings(Aws::Utils::Json::JsonView jsonValue);
31 AWS_MEDIALIVE_API Mp2Settings& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline double GetBitrate() const { return m_bitrate; }
39 inline bool BitrateHasBeenSet() const { return m_bitrateHasBeenSet; }
40 inline void SetBitrate(double value) {
41 m_bitrateHasBeenSet = true;
42 m_bitrate = value;
43 }
44 inline Mp2Settings& WithBitrate(double value) {
45 SetBitrate(value);
46 return *this;
47 }
49
51
55 inline Mp2CodingMode GetCodingMode() const { return m_codingMode; }
56 inline bool CodingModeHasBeenSet() const { return m_codingModeHasBeenSet; }
57 inline void SetCodingMode(Mp2CodingMode value) {
58 m_codingModeHasBeenSet = true;
59 m_codingMode = value;
60 }
62 SetCodingMode(value);
63 return *this;
64 }
66
68
71 inline double GetSampleRate() const { return m_sampleRate; }
72 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
73 inline void SetSampleRate(double value) {
74 m_sampleRateHasBeenSet = true;
75 m_sampleRate = value;
76 }
77 inline Mp2Settings& WithSampleRate(double value) {
78 SetSampleRate(value);
79 return *this;
80 }
82 private:
83 double m_bitrate{0.0};
84
86
87 double m_sampleRate{0.0};
88 bool m_bitrateHasBeenSet = false;
89 bool m_codingModeHasBeenSet = false;
90 bool m_sampleRateHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace MediaLive
95} // namespace Aws
AWS_MEDIALIVE_API Mp2Settings()=default
Mp2Settings & WithCodingMode(Mp2CodingMode value)
Definition Mp2Settings.h:61
Mp2Settings & WithBitrate(double value)
Definition Mp2Settings.h:44
Mp2Settings & WithSampleRate(double value)
Definition Mp2Settings.h:77
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API Mp2Settings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCodingMode(Mp2CodingMode value)
Definition Mp2Settings.h:57
AWS_MEDIALIVE_API Mp2Settings(Aws::Utils::Json::JsonView jsonValue)
Mp2CodingMode GetCodingMode() const
Definition Mp2Settings.h:55
Aws::Utils::Json::JsonValue JsonValue