AWS SDK for C++

AWS SDK for C++ Version 1.11.830

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
71 inline int GetChannels() const { return m_channels; }
72 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
73 inline void SetChannels(int value) {
74 m_channelsHasBeenSet = true;
75 m_channels = value;
76 }
77 inline AudioProperties& WithChannels(int value) {
78 SetChannels(value);
79 return *this;
80 }
82
84
88 inline const FrameRate& GetFrameRate() const { return m_frameRate; }
89 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
90 template <typename FrameRateT = FrameRate>
91 void SetFrameRate(FrameRateT&& value) {
92 m_frameRateHasBeenSet = true;
93 m_frameRate = std::forward<FrameRateT>(value);
94 }
95 template <typename FrameRateT = FrameRate>
96 AudioProperties& WithFrameRate(FrameRateT&& value) {
97 SetFrameRate(std::forward<FrameRateT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
107 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
108 template <typename LanguageCodeT = Aws::String>
109 void SetLanguageCode(LanguageCodeT&& value) {
110 m_languageCodeHasBeenSet = true;
111 m_languageCode = std::forward<LanguageCodeT>(value);
112 }
113 template <typename LanguageCodeT = Aws::String>
114 AudioProperties& WithLanguageCode(LanguageCodeT&& value) {
115 SetLanguageCode(std::forward<LanguageCodeT>(value));
116 return *this;
117 }
119
121
127 inline int GetObjectCount() const { return m_objectCount; }
128 inline bool ObjectCountHasBeenSet() const { return m_objectCountHasBeenSet; }
129 inline void SetObjectCount(int value) {
130 m_objectCountHasBeenSet = true;
131 m_objectCount = value;
132 }
133 inline AudioProperties& WithObjectCount(int value) {
134 SetObjectCount(value);
135 return *this;
136 }
138
140
143 inline int GetSampleRate() const { return m_sampleRate; }
144 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
145 inline void SetSampleRate(int value) {
146 m_sampleRateHasBeenSet = true;
147 m_sampleRate = value;
148 }
149 inline AudioProperties& WithSampleRate(int value) {
150 SetSampleRate(value);
151 return *this;
152 }
154 private:
155 int m_bitDepth{0};
156
157 long long m_bitRate{0};
158
159 int m_channels{0};
160
161 FrameRate m_frameRate;
162
163 Aws::String m_languageCode;
164
165 int m_objectCount{0};
166
167 int m_sampleRate{0};
168 bool m_bitDepthHasBeenSet = false;
169 bool m_bitRateHasBeenSet = false;
170 bool m_channelsHasBeenSet = false;
171 bool m_frameRateHasBeenSet = false;
172 bool m_languageCodeHasBeenSet = false;
173 bool m_objectCountHasBeenSet = false;
174 bool m_sampleRateHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace MediaConvert
179} // namespace Aws
AWS_MEDIACONVERT_API AudioProperties(Aws::Utils::Json::JsonView jsonValue)
AudioProperties & WithBitDepth(int value)
AudioProperties & WithBitRate(long long value)
const Aws::String & GetLanguageCode() const
AudioProperties & WithLanguageCode(LanguageCodeT &&value)
AudioProperties & WithSampleRate(int value)
AWS_MEDIACONVERT_API AudioProperties()=default
AudioProperties & WithChannels(int value)
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