AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
WavSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/WavCodingMode.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 WavSettings() = default;
30 AWS_MEDIALIVE_API WavSettings(Aws::Utils::Json::JsonView jsonValue);
31 AWS_MEDIALIVE_API WavSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline double GetBitDepth() const { return m_bitDepth; }
39 inline bool BitDepthHasBeenSet() const { return m_bitDepthHasBeenSet; }
40 inline void SetBitDepth(double value) {
41 m_bitDepthHasBeenSet = true;
42 m_bitDepth = value;
43 }
44 inline WavSettings& WithBitDepth(double value) {
45 SetBitDepth(value);
46 return *this;
47 }
49
51
55 inline WavCodingMode GetCodingMode() const { return m_codingMode; }
56 inline bool CodingModeHasBeenSet() const { return m_codingModeHasBeenSet; }
57 inline void SetCodingMode(WavCodingMode 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 WavSettings& WithSampleRate(double value) {
78 SetSampleRate(value);
79 return *this;
80 }
82 private:
83 double m_bitDepth{0.0};
84
86
87 double m_sampleRate{0.0};
88 bool m_bitDepthHasBeenSet = false;
89 bool m_codingModeHasBeenSet = false;
90 bool m_sampleRateHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace MediaLive
95} // namespace Aws
WavSettings & WithBitDepth(double value)
Definition WavSettings.h:44
AWS_MEDIALIVE_API WavSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
WavSettings & WithCodingMode(WavCodingMode value)
Definition WavSettings.h:61
AWS_MEDIALIVE_API WavSettings(Aws::Utils::Json::JsonView jsonValue)
void SetCodingMode(WavCodingMode value)
Definition WavSettings.h:57
WavSettings & WithSampleRate(double value)
Definition WavSettings.h:77
AWS_MEDIALIVE_API WavSettings()=default
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
WavCodingMode GetCodingMode() const
Definition WavSettings.h:55
Aws::Utils::Json::JsonValue JsonValue