AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AudioProperties.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/FrameRate.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaConvert
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MEDIACONVERT_API AudioProperties() = default;
36 AWS_MEDIACONVERT_API AudioProperties(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIACONVERT_API AudioProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetBitDepth() const { return m_bitDepth; }
46 inline bool BitDepthHasBeenSet() const { return m_bitDepthHasBeenSet; }
47 inline void SetBitDepth(int value) { m_bitDepthHasBeenSet = true; m_bitDepth = value; }
48 inline AudioProperties& WithBitDepth(int value) { SetBitDepth(value); return *this;}
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) { m_bitRateHasBeenSet = true; m_bitRate = value; }
58 inline AudioProperties& WithBitRate(long long value) { SetBitRate(value); return *this;}
60
62
65 inline int GetChannels() const { return m_channels; }
66 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
67 inline void SetChannels(int value) { m_channelsHasBeenSet = true; m_channels = value; }
68 inline AudioProperties& WithChannels(int value) { SetChannels(value); return *this;}
70
72
75 inline const FrameRate& GetFrameRate() const { return m_frameRate; }
76 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
77 template<typename FrameRateT = FrameRate>
78 void SetFrameRate(FrameRateT&& value) { m_frameRateHasBeenSet = true; m_frameRate = std::forward<FrameRateT>(value); }
79 template<typename FrameRateT = FrameRate>
80 AudioProperties& WithFrameRate(FrameRateT&& value) { SetFrameRate(std::forward<FrameRateT>(value)); return *this;}
82
84
87 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
88 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
89 template<typename LanguageCodeT = Aws::String>
90 void SetLanguageCode(LanguageCodeT&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::forward<LanguageCodeT>(value); }
91 template<typename LanguageCodeT = Aws::String>
92 AudioProperties& WithLanguageCode(LanguageCodeT&& value) { SetLanguageCode(std::forward<LanguageCodeT>(value)); return *this;}
94
96
99 inline int GetSampleRate() const { return m_sampleRate; }
100 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
101 inline void SetSampleRate(int value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
102 inline AudioProperties& WithSampleRate(int value) { SetSampleRate(value); return *this;}
104 private:
105
106 int m_bitDepth{0};
107 bool m_bitDepthHasBeenSet = false;
108
109 long long m_bitRate{0};
110 bool m_bitRateHasBeenSet = false;
111
112 int m_channels{0};
113 bool m_channelsHasBeenSet = false;
114
115 FrameRate m_frameRate;
116 bool m_frameRateHasBeenSet = false;
117
118 Aws::String m_languageCode;
119 bool m_languageCodeHasBeenSet = false;
120
121 int m_sampleRate{0};
122 bool m_sampleRateHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace MediaConvert
127} // 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