AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
124 inline int GetSampleRate() const { return m_sampleRate; }
125 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
126 inline void SetSampleRate(int value) {
127 m_sampleRateHasBeenSet = true;
128 m_sampleRate = value;
129 }
130 inline AudioProperties& WithSampleRate(int value) {
131 SetSampleRate(value);
132 return *this;
133 }
135 private:
136 int m_bitDepth{0};
137
138 long long m_bitRate{0};
139
140 int m_channels{0};
141
142 FrameRate m_frameRate;
143
144 Aws::String m_languageCode;
145
146 int m_sampleRate{0};
147 bool m_bitDepthHasBeenSet = false;
148 bool m_bitRateHasBeenSet = false;
149 bool m_channelsHasBeenSet = false;
150 bool m_frameRateHasBeenSet = false;
151 bool m_languageCodeHasBeenSet = false;
152 bool m_sampleRateHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace MediaConvert
157} // 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)
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