AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AudioMetadata.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Rekognition
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_REKOGNITION_API AudioMetadata();
37 AWS_REKOGNITION_API AudioMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REKOGNITION_API AudioMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCodec() const{ return m_codec; }
47 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
48 inline void SetCodec(const Aws::String& value) { m_codecHasBeenSet = true; m_codec = value; }
49 inline void SetCodec(Aws::String&& value) { m_codecHasBeenSet = true; m_codec = std::move(value); }
50 inline void SetCodec(const char* value) { m_codecHasBeenSet = true; m_codec.assign(value); }
51 inline AudioMetadata& WithCodec(const Aws::String& value) { SetCodec(value); return *this;}
52 inline AudioMetadata& WithCodec(Aws::String&& value) { SetCodec(std::move(value)); return *this;}
53 inline AudioMetadata& WithCodec(const char* value) { SetCodec(value); return *this;}
55
57
60 inline long long GetDurationMillis() const{ return m_durationMillis; }
61 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
62 inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
63 inline AudioMetadata& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
65
67
70 inline long long GetSampleRate() const{ return m_sampleRate; }
71 inline bool SampleRateHasBeenSet() const { return m_sampleRateHasBeenSet; }
72 inline void SetSampleRate(long long value) { m_sampleRateHasBeenSet = true; m_sampleRate = value; }
73 inline AudioMetadata& WithSampleRate(long long value) { SetSampleRate(value); return *this;}
75
77
80 inline long long GetNumberOfChannels() const{ return m_numberOfChannels; }
81 inline bool NumberOfChannelsHasBeenSet() const { return m_numberOfChannelsHasBeenSet; }
82 inline void SetNumberOfChannels(long long value) { m_numberOfChannelsHasBeenSet = true; m_numberOfChannels = value; }
83 inline AudioMetadata& WithNumberOfChannels(long long value) { SetNumberOfChannels(value); return *this;}
85 private:
86
87 Aws::String m_codec;
88 bool m_codecHasBeenSet = false;
89
90 long long m_durationMillis;
91 bool m_durationMillisHasBeenSet = false;
92
93 long long m_sampleRate;
94 bool m_sampleRateHasBeenSet = false;
95
96 long long m_numberOfChannels;
97 bool m_numberOfChannelsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Rekognition
102} // namespace Aws
const Aws::String & GetCodec() const
void SetCodec(const Aws::String &value)
AudioMetadata & WithDurationMillis(long long value)
void SetDurationMillis(long long value)
void SetCodec(Aws::String &&value)
AudioMetadata & WithCodec(const char *value)
AudioMetadata & WithCodec(const Aws::String &value)
AudioMetadata & WithNumberOfChannels(long long value)
AudioMetadata & WithCodec(Aws::String &&value)
AWS_REKOGNITION_API AudioMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNumberOfChannels(long long value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API AudioMetadata(Aws::Utils::Json::JsonView jsonValue)
AudioMetadata & WithSampleRate(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue