AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
56 inline int GetChannels() const { return m_channels; }
57 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
58 inline void SetChannels(int value) {
59 m_channelsHasBeenSet = true;
60 m_channels = value;
61 }
62 inline WavSettings& WithChannels(int value) {
63 SetChannels(value);
64 return *this;
65 }
67
69
76 inline WavFormat GetFormat() const { return m_format; }
77 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
78 inline void SetFormat(WavFormat value) {
79 m_formatHasBeenSet = true;
80 m_format = value;
81 }
83 SetFormat(value);
84 return *this;
85 }
87
89
92 inline int GetSampleRate() const { return m_sampleRate; }
93 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
94 inline void SetSampleRate(int value) {
95 m_sampleRateHasBeenSet = true;
96 m_sampleRate = value;
97 }
98 inline WavSettings& WithSampleRate(int value) {
99 SetSampleRate(value);
100 return *this;
101 }
103 private:
104 int m_bitDepth{0};
105
106 int m_channels{0};
107
109
110 int m_sampleRate{0};
111 bool m_bitDepthHasBeenSet = false;
112 bool m_channelsHasBeenSet = false;
113 bool m_formatHasBeenSet = false;
114 bool m_sampleRateHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace MediaConvert
119} // namespace Aws
AWS_MEDIACONVERT_API WavSettings()=default
WavSettings & WithBitDepth(int value)
Definition WavSettings.h:45
WavSettings & WithChannels(int value)
Definition WavSettings.h:62
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:82
AWS_MEDIACONVERT_API WavSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
WavSettings & WithSampleRate(int value)
Definition WavSettings.h:98
Aws::Utils::Json::JsonValue JsonValue