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/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/WavFormat.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
28 public:
29 AWS_MEDIACONVERT_API WavSettings() = default;
30 AWS_MEDIACONVERT_API WavSettings(Aws::Utils::Json::JsonView jsonValue);
31 AWS_MEDIACONVERT_API WavSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline int GetBitDepth() const { return m_bitDepth; }
40 inline bool BitDepthHasBeenSet() const { return m_bitDepthHasBeenSet; }
41 inline void SetBitDepth(int value) {
42 m_bitDepthHasBeenSet = true;
43 m_bitDepth = value;
44 }
45 inline WavSettings& WithBitDepth(int value) {
46 SetBitDepth(value);
47 return *this;
48 }
50
52
58 inline int GetChannels() const { return m_channels; }
59 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
60 inline void SetChannels(int value) {
61 m_channelsHasBeenSet = true;
62 m_channels = value;
63 }
64 inline WavSettings& WithChannels(int value) {
65 SetChannels(value);
66 return *this;
67 }
69
71
78 inline WavFormat GetFormat() const { return m_format; }
79 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
80 inline void SetFormat(WavFormat value) {
81 m_formatHasBeenSet = true;
82 m_format = value;
83 }
85 SetFormat(value);
86 return *this;
87 }
89
91
94 inline int GetSampleRate() const { return m_sampleRate; }
95 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
96 inline void SetSampleRate(int value) {
97 m_sampleRateHasBeenSet = true;
98 m_sampleRate = value;
99 }
100 inline WavSettings& WithSampleRate(int value) {
101 SetSampleRate(value);
102 return *this;
103 }
105 private:
106 int m_bitDepth{0};
107
108 int m_channels{0};
109
111
112 int m_sampleRate{0};
113 bool m_bitDepthHasBeenSet = false;
114 bool m_channelsHasBeenSet = false;
115 bool m_formatHasBeenSet = false;
116 bool m_sampleRateHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace MediaConvert
121} // namespace Aws
AWS_MEDIACONVERT_API WavSettings()=default
WavSettings & WithBitDepth(int value)
Definition WavSettings.h:45
WavSettings & WithChannels(int value)
Definition WavSettings.h:64
AWS_MEDIACONVERT_API WavSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
WavSettings & WithFormat(WavFormat value)
Definition WavSettings.h:84
AWS_MEDIACONVERT_API WavSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
WavSettings & WithSampleRate(int value)
Aws::Utils::Json::JsonValue JsonValue