AWS SDK for C++  1.9.159
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 {
29  {
30  public:
31  AudioEvent() = default;
32  AudioEvent(Aws::Vector<unsigned char>&& value) { m_audioChunk = std::move(value); }
33 
38  inline const Aws::Vector<unsigned char>& GetAudioChunk() const { return m_audioChunk; }
39 
44  inline Aws::Vector<unsigned char>&& GetAudioChunkWithOwnership() { return std::move(m_audioChunk); }
45 
50  inline void SetAudioChunk(const Aws::Vector<unsigned char>& value) { m_audioChunkHasBeenSet = true; m_audioChunk = value; }
51 
56  inline void SetAudioChunk(Aws::Vector<unsigned char>&& value) { m_audioChunkHasBeenSet = true; m_audioChunk = std::move(value); }
57 
62  inline AudioEvent& WithAudioChunk(const Aws::Vector<unsigned char>& value) { SetAudioChunk(value); return *this;}
63 
68  inline AudioEvent& WithAudioChunk(Aws::Vector<unsigned char>&& value) { SetAudioChunk(std::move(value)); return *this;}
69 
70  private:
71 
72  Aws::Vector<unsigned char> m_audioChunk;
73  bool m_audioChunkHasBeenSet;
74  };
75 
76 } // namespace Model
77 } // namespace TranscribeStreamingService
78 } // 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:50
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:56
Aws::TranscribeStreamingService::Model::AudioEvent::AudioEvent
AudioEvent(Aws::Vector< unsigned char > &&value)
Definition: AudioEvent.h:32
Aws::TranscribeStreamingService::Model::AudioEvent::WithAudioChunk
AudioEvent & WithAudioChunk(const Aws::Vector< unsigned char > &value)
Definition: AudioEvent.h:62
Aws::TranscribeStreamingService::Model::AudioEvent::WithAudioChunk
AudioEvent & WithAudioChunk(Aws::Vector< unsigned char > &&value)
Definition: AudioEvent.h:68
Aws::TranscribeStreamingService::Model::AudioEvent::GetAudioChunk
const Aws::Vector< unsigned char > & GetAudioChunk() const
Definition: AudioEvent.h:38
TranscribeStreamingService_EXPORTS.h
Aws::TranscribeStreamingService::Model::AudioEvent
Definition: AudioEvent.h:29
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::TranscribeStreamingService::Model::AudioEvent::GetAudioChunkWithOwnership
Aws::Vector< unsigned char > && GetAudioChunkWithOwnership()
Definition: AudioEvent.h:44
Aws::TranscribeStreamingService::Model::AudioEvent::AudioEvent
AudioEvent()=default