AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AudioCodecSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/AacSettings.h>
9#include <aws/medialive/model/Ac3Settings.h>
10#include <aws/medialive/model/Eac3AtmosSettings.h>
11#include <aws/medialive/model/Eac3Settings.h>
12#include <aws/medialive/model/Mp2Settings.h>
13#include <aws/medialive/model/PassThroughSettings.h>
14#include <aws/medialive/model/WavSettings.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 AudioCodecSettings() = default;
36 AWS_MEDIALIVE_API AudioCodecSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
42 inline const AacSettings& GetAacSettings() const { return m_aacSettings; }
43 inline bool AacSettingsHasBeenSet() const { return m_aacSettingsHasBeenSet; }
44 template <typename AacSettingsT = AacSettings>
45 void SetAacSettings(AacSettingsT&& value) {
46 m_aacSettingsHasBeenSet = true;
47 m_aacSettings = std::forward<AacSettingsT>(value);
48 }
49 template <typename AacSettingsT = AacSettings>
50 AudioCodecSettings& WithAacSettings(AacSettingsT&& value) {
51 SetAacSettings(std::forward<AacSettingsT>(value));
52 return *this;
53 }
55
57
58 inline const Ac3Settings& GetAc3Settings() const { return m_ac3Settings; }
59 inline bool Ac3SettingsHasBeenSet() const { return m_ac3SettingsHasBeenSet; }
60 template <typename Ac3SettingsT = Ac3Settings>
61 void SetAc3Settings(Ac3SettingsT&& value) {
62 m_ac3SettingsHasBeenSet = true;
63 m_ac3Settings = std::forward<Ac3SettingsT>(value);
64 }
65 template <typename Ac3SettingsT = Ac3Settings>
66 AudioCodecSettings& WithAc3Settings(Ac3SettingsT&& value) {
67 SetAc3Settings(std::forward<Ac3SettingsT>(value));
68 return *this;
69 }
71
73
74 inline const Eac3AtmosSettings& GetEac3AtmosSettings() const { return m_eac3AtmosSettings; }
75 inline bool Eac3AtmosSettingsHasBeenSet() const { return m_eac3AtmosSettingsHasBeenSet; }
76 template <typename Eac3AtmosSettingsT = Eac3AtmosSettings>
77 void SetEac3AtmosSettings(Eac3AtmosSettingsT&& value) {
78 m_eac3AtmosSettingsHasBeenSet = true;
79 m_eac3AtmosSettings = std::forward<Eac3AtmosSettingsT>(value);
80 }
81 template <typename Eac3AtmosSettingsT = Eac3AtmosSettings>
82 AudioCodecSettings& WithEac3AtmosSettings(Eac3AtmosSettingsT&& value) {
83 SetEac3AtmosSettings(std::forward<Eac3AtmosSettingsT>(value));
84 return *this;
85 }
87
89
90 inline const Eac3Settings& GetEac3Settings() const { return m_eac3Settings; }
91 inline bool Eac3SettingsHasBeenSet() const { return m_eac3SettingsHasBeenSet; }
92 template <typename Eac3SettingsT = Eac3Settings>
93 void SetEac3Settings(Eac3SettingsT&& value) {
94 m_eac3SettingsHasBeenSet = true;
95 m_eac3Settings = std::forward<Eac3SettingsT>(value);
96 }
97 template <typename Eac3SettingsT = Eac3Settings>
98 AudioCodecSettings& WithEac3Settings(Eac3SettingsT&& value) {
99 SetEac3Settings(std::forward<Eac3SettingsT>(value));
100 return *this;
101 }
103
105
106 inline const Mp2Settings& GetMp2Settings() const { return m_mp2Settings; }
107 inline bool Mp2SettingsHasBeenSet() const { return m_mp2SettingsHasBeenSet; }
108 template <typename Mp2SettingsT = Mp2Settings>
109 void SetMp2Settings(Mp2SettingsT&& value) {
110 m_mp2SettingsHasBeenSet = true;
111 m_mp2Settings = std::forward<Mp2SettingsT>(value);
112 }
113 template <typename Mp2SettingsT = Mp2Settings>
114 AudioCodecSettings& WithMp2Settings(Mp2SettingsT&& value) {
115 SetMp2Settings(std::forward<Mp2SettingsT>(value));
116 return *this;
117 }
119
121
122 inline const PassThroughSettings& GetPassThroughSettings() const { return m_passThroughSettings; }
123 inline bool PassThroughSettingsHasBeenSet() const { return m_passThroughSettingsHasBeenSet; }
124 template <typename PassThroughSettingsT = PassThroughSettings>
125 void SetPassThroughSettings(PassThroughSettingsT&& value) {
126 m_passThroughSettingsHasBeenSet = true;
127 m_passThroughSettings = std::forward<PassThroughSettingsT>(value);
128 }
129 template <typename PassThroughSettingsT = PassThroughSettings>
130 AudioCodecSettings& WithPassThroughSettings(PassThroughSettingsT&& value) {
131 SetPassThroughSettings(std::forward<PassThroughSettingsT>(value));
132 return *this;
133 }
135
137
138 inline const WavSettings& GetWavSettings() const { return m_wavSettings; }
139 inline bool WavSettingsHasBeenSet() const { return m_wavSettingsHasBeenSet; }
140 template <typename WavSettingsT = WavSettings>
141 void SetWavSettings(WavSettingsT&& value) {
142 m_wavSettingsHasBeenSet = true;
143 m_wavSettings = std::forward<WavSettingsT>(value);
144 }
145 template <typename WavSettingsT = WavSettings>
146 AudioCodecSettings& WithWavSettings(WavSettingsT&& value) {
147 SetWavSettings(std::forward<WavSettingsT>(value));
148 return *this;
149 }
151 private:
152 AacSettings m_aacSettings;
153
154 Ac3Settings m_ac3Settings;
155
156 Eac3AtmosSettings m_eac3AtmosSettings;
157
158 Eac3Settings m_eac3Settings;
159
160 Mp2Settings m_mp2Settings;
161
162 PassThroughSettings m_passThroughSettings;
163
164 WavSettings m_wavSettings;
165 bool m_aacSettingsHasBeenSet = false;
166 bool m_ac3SettingsHasBeenSet = false;
167 bool m_eac3AtmosSettingsHasBeenSet = false;
168 bool m_eac3SettingsHasBeenSet = false;
169 bool m_mp2SettingsHasBeenSet = false;
170 bool m_passThroughSettingsHasBeenSet = false;
171 bool m_wavSettingsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace MediaLive
176} // namespace Aws
AudioCodecSettings & WithAc3Settings(Ac3SettingsT &&value)
const PassThroughSettings & GetPassThroughSettings() const
void SetEac3Settings(Eac3SettingsT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPassThroughSettings(PassThroughSettingsT &&value)
void SetEac3AtmosSettings(Eac3AtmosSettingsT &&value)
AudioCodecSettings & WithWavSettings(WavSettingsT &&value)
AudioCodecSettings & WithEac3Settings(Eac3SettingsT &&value)
AudioCodecSettings & WithMp2Settings(Mp2SettingsT &&value)
const Eac3AtmosSettings & GetEac3AtmosSettings() const
AudioCodecSettings & WithPassThroughSettings(PassThroughSettingsT &&value)
AWS_MEDIALIVE_API AudioCodecSettings()=default
AudioCodecSettings & WithEac3AtmosSettings(Eac3AtmosSettingsT &&value)
AWS_MEDIALIVE_API AudioCodecSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API AudioCodecSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const Eac3Settings & GetEac3Settings() const
AudioCodecSettings & WithAacSettings(AacSettingsT &&value)
Aws::Utils::Json::JsonValue JsonValue