AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AudioResponseEvent.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/Array.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 LexRuntimeV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXRUNTIMEV2_API AudioResponseEvent() = default;
37 AWS_LEXRUNTIMEV2_API AudioResponseEvent(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Utils::ByteBuffer& GetAudioChunk() const { return m_audioChunk; }
47 inline bool AudioChunkHasBeenSet() const { return m_audioChunkHasBeenSet; }
48 template<typename AudioChunkT = Aws::Utils::ByteBuffer>
49 void SetAudioChunk(AudioChunkT&& value) { m_audioChunkHasBeenSet = true; m_audioChunk = std::forward<AudioChunkT>(value); }
50 template<typename AudioChunkT = Aws::Utils::ByteBuffer>
51 AudioResponseEvent& WithAudioChunk(AudioChunkT&& value) { SetAudioChunk(std::forward<AudioChunkT>(value)); return *this;}
53
55
60 inline const Aws::String& GetContentType() const { return m_contentType; }
61 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
62 template<typename ContentTypeT = Aws::String>
63 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
64 template<typename ContentTypeT = Aws::String>
65 AudioResponseEvent& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
67
69
74 inline const Aws::String& GetEventId() const { return m_eventId; }
75 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
76 template<typename EventIdT = Aws::String>
77 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
78 template<typename EventIdT = Aws::String>
79 AudioResponseEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
81 private:
82
83 Aws::Utils::ByteBuffer m_audioChunk{};
84 bool m_audioChunkHasBeenSet = false;
85
86 Aws::String m_contentType;
87 bool m_contentTypeHasBeenSet = false;
88
89 Aws::String m_eventId;
90 bool m_eventIdHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace LexRuntimeV2
95} // namespace Aws
AudioResponseEvent & WithContentType(ContentTypeT &&value)
AudioResponseEvent & WithEventId(EventIdT &&value)
AWS_LEXRUNTIMEV2_API AudioResponseEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetAudioChunk() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API AudioResponseEvent()=default
AWS_LEXRUNTIMEV2_API AudioResponseEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AudioResponseEvent & WithAudioChunk(AudioChunkT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue