AWS SDK for C++  1.9.14
AWS SDK for C++
AudioEvent.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/core/utils/Array.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace TranscribeStreamingService
14 {
15 namespace Model
16 {
26  {
27  public:
28  AudioEvent() = default;
29  AudioEvent(Aws::Vector<unsigned char>&& value) { m_audioChunk = std::move(value); }
30 
35  inline const Aws::Vector<unsigned char>& GetAudioChunk() const { return m_audioChunk; }
36 
41  inline Aws::Vector<unsigned char>&& GetAudioChunkWithOwnership() { return std::move(m_audioChunk); }
42 
47  inline void SetAudioChunk(const Aws::Vector<unsigned char>& value) { m_audioChunkHasBeenSet = true; m_audioChunk = value; }
48 
53  inline void SetAudioChunk(Aws::Vector<unsigned char>&& value) { m_audioChunkHasBeenSet = true; m_audioChunk = std::move(value); }
54 
59  inline AudioEvent& WithAudioChunk(const Aws::Vector<unsigned char>& value) { SetAudioChunk(value); return *this;}
60 
65  inline AudioEvent& WithAudioChunk(Aws::Vector<unsigned char>&& value) { SetAudioChunk(std::move(value)); return *this;}
66 
67  private:
68 
69  Aws::Vector<unsigned char> m_audioChunk;
70  bool m_audioChunkHasBeenSet;
71  };
72 
73 } // namespace Model
74 } // namespace TranscribeStreamingService
75 } // namespace Aws
AWS_TRANSCRIBESTREAMINGSERVICE_API
#define AWS_TRANSCRIBESTREAMINGSERVICE_API
Definition: TranscribeStreamingService_EXPORTS.h:28
Aws::TranscribeStreamingService::Model::AudioEvent::SetAudioChunk
void SetAudioChunk(const Aws::Vector< unsigned char > &value)
Definition: AudioEvent.h:47
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::TranscribeStreamingService::Model::AudioEvent::SetAudioChunk
void SetAudioChunk(Aws::Vector< unsigned char > &&value)
Definition: AudioEvent.h:53
Aws::TranscribeStreamingService::Model::AudioEvent::AudioEvent
AudioEvent(Aws::Vector< unsigned char > &&value)
Definition: AudioEvent.h:29
Aws::TranscribeStreamingService::Model::AudioEvent::WithAudioChunk
AudioEvent & WithAudioChunk(const Aws::Vector< unsigned char > &value)
Definition: AudioEvent.h:59
Aws::TranscribeStreamingService::Model::AudioEvent::WithAudioChunk
AudioEvent & WithAudioChunk(Aws::Vector< unsigned char > &&value)
Definition: AudioEvent.h:65
Aws::TranscribeStreamingService::Model::AudioEvent::GetAudioChunk
const Aws::Vector< unsigned char > & GetAudioChunk() const
Definition: AudioEvent.h:35
TranscribeStreamingService_EXPORTS.h
Aws::TranscribeStreamingService::Model::AudioEvent
Definition: AudioEvent.h:26
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::TranscribeStreamingService::Model::AudioEvent::GetAudioChunkWithOwnership
Aws::Vector< unsigned char > && GetAudioChunkWithOwnership()
Definition: AudioEvent.h:41
Aws::TranscribeStreamingService::Model::AudioEvent::AudioEvent
AudioEvent()=default