AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
AudioProperties.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
9#include <aws/mediaconvert/model/FrameRate.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaConvert {
21namespace Model {
22
29 public:
30 AWS_MEDIACONVERT_API AudioProperties() = default;
31 AWS_MEDIACONVERT_API AudioProperties(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIACONVERT_API AudioProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
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 AudioProperties& WithBitDepth(int value) {
46 SetBitDepth(value);
47 return *this;
48 }
50
52
55 inline long long GetBitRate() const { return m_bitRate; }
56 inline bool BitRateHasBeenSet() const { return m_bitRateHasBeenSet; }
57 inline void SetBitRate(long long value) {
58 m_bitRateHasBeenSet = true;
59 m_bitRate = value;
60 }
61 inline AudioProperties& WithBitRate(long long value) {
62 SetBitRate(value);
63 return *this;
64 }
66
68
72 inline const Aws::String& GetChannelLayout() const { return m_channelLayout; }
73 inline bool ChannelLayoutHasBeenSet() const { return m_channelLayoutHasBeenSet; }
74 template <typename ChannelLayoutT = Aws::String>
75 void SetChannelLayout(ChannelLayoutT&& value) {
76 m_channelLayoutHasBeenSet = true;
77 m_channelLayout = std::forward<ChannelLayoutT>(value);
78 }
79 template <typename ChannelLayoutT = Aws::String>
80 AudioProperties& WithChannelLayout(ChannelLayoutT&& value) {
81 SetChannelLayout(std::forward<ChannelLayoutT>(value));
82 return *this;
83 }
85
87
90 inline int GetChannels() const { return m_channels; }
91 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
92 inline void SetChannels(int value) {
93 m_channelsHasBeenSet = true;
94 m_channels = value;
95 }
96 inline AudioProperties& WithChannels(int value) {
97 SetChannels(value);
98 return *this;
99 }
101
103
107 inline const FrameRate& GetFrameRate() const { return m_frameRate; }
108 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
109 template <typename FrameRateT = FrameRate>
110 void SetFrameRate(FrameRateT&& value) {
111 m_frameRateHasBeenSet = true;
112 m_frameRate = std::forward<FrameRateT>(value);
113 }
114 template <typename FrameRateT = FrameRate>
115 AudioProperties& WithFrameRate(FrameRateT&& value) {
116 SetFrameRate(std::forward<FrameRateT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
126 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
127 template <typename LanguageCodeT = Aws::String>
128 void SetLanguageCode(LanguageCodeT&& value) {
129 m_languageCodeHasBeenSet = true;
130 m_languageCode = std::forward<LanguageCodeT>(value);
131 }
132 template <typename LanguageCodeT = Aws::String>
133 AudioProperties& WithLanguageCode(LanguageCodeT&& value) {
134 SetLanguageCode(std::forward<LanguageCodeT>(value));
135 return *this;
136 }
138
140
146 inline int GetObjectCount() const { return m_objectCount; }
147 inline bool ObjectCountHasBeenSet() const { return m_objectCountHasBeenSet; }
148 inline void SetObjectCount(int value) {
149 m_objectCountHasBeenSet = true;
150 m_objectCount = value;
151 }
152 inline AudioProperties& WithObjectCount(int value) {
153 SetObjectCount(value);
154 return *this;
155 }
157
159
162 inline int GetSampleRate() const { return m_sampleRate; }
163 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
164 inline void SetSampleRate(int value) {
165 m_sampleRateHasBeenSet = true;
166 m_sampleRate = value;
167 }
168 inline AudioProperties& WithSampleRate(int value) {
169 SetSampleRate(value);
170 return *this;
171 }
173 private:
174 int m_bitDepth{0};
175
176 long long m_bitRate{0};
177
178 Aws::String m_channelLayout;
179
180 int m_channels{0};
181
182 FrameRate m_frameRate;
183
184 Aws::String m_languageCode;
185
186 int m_objectCount{0};
187
188 int m_sampleRate{0};
189 bool m_bitDepthHasBeenSet = false;
190 bool m_bitRateHasBeenSet = false;
191 bool m_channelLayoutHasBeenSet = false;
192 bool m_channelsHasBeenSet = false;
193 bool m_frameRateHasBeenSet = false;
194 bool m_languageCodeHasBeenSet = false;
195 bool m_objectCountHasBeenSet = false;
196 bool m_sampleRateHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace MediaConvert
201} // namespace Aws
AWS_MEDIACONVERT_API AudioProperties(Aws::Utils::Json::JsonView jsonValue)
AudioProperties & WithBitDepth(int value)
void SetChannelLayout(ChannelLayoutT &&value)
AudioProperties & WithBitRate(long long value)
AudioProperties & WithChannelLayout(ChannelLayoutT &&value)
const Aws::String & GetLanguageCode() const
AudioProperties & WithLanguageCode(LanguageCodeT &&value)
AudioProperties & WithSampleRate(int value)
AWS_MEDIACONVERT_API AudioProperties()=default
AudioProperties & WithChannels(int value)
const Aws::String & GetChannelLayout() const
void SetLanguageCode(LanguageCodeT &&value)
AudioProperties & WithFrameRate(FrameRateT &&value)
AudioProperties & WithObjectCount(int value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONVERT_API AudioProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue