AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
AudioResponseEvent.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexRuntimeV2 {
21namespace Model {
22
30 public:
31 AWS_LEXRUNTIMEV2_API AudioResponseEvent() = default;
32 AWS_LEXRUNTIMEV2_API AudioResponseEvent(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Utils::ByteBuffer& GetAudioChunk() const { return m_audioChunk; }
41 inline bool AudioChunkHasBeenSet() const { return m_audioChunkHasBeenSet; }
42 template <typename AudioChunkT = Aws::Utils::ByteBuffer>
43 void SetAudioChunk(AudioChunkT&& value) {
44 m_audioChunkHasBeenSet = true;
45 m_audioChunk = std::forward<AudioChunkT>(value);
46 }
47 template <typename AudioChunkT = Aws::Utils::ByteBuffer>
48 AudioResponseEvent& WithAudioChunk(AudioChunkT&& value) {
49 SetAudioChunk(std::forward<AudioChunkT>(value));
50 return *this;
51 }
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) {
64 m_contentTypeHasBeenSet = true;
65 m_contentType = std::forward<ContentTypeT>(value);
66 }
67 template <typename ContentTypeT = Aws::String>
68 AudioResponseEvent& WithContentType(ContentTypeT&& value) {
69 SetContentType(std::forward<ContentTypeT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetEventId() const { return m_eventId; }
81 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
82 template <typename EventIdT = Aws::String>
83 void SetEventId(EventIdT&& value) {
84 m_eventIdHasBeenSet = true;
85 m_eventId = std::forward<EventIdT>(value);
86 }
87 template <typename EventIdT = Aws::String>
88 AudioResponseEvent& WithEventId(EventIdT&& value) {
89 SetEventId(std::forward<EventIdT>(value));
90 return *this;
91 }
93 private:
94 Aws::Utils::ByteBuffer m_audioChunk{};
95
96 Aws::String m_contentType;
97
98 Aws::String m_eventId;
99 bool m_audioChunkHasBeenSet = false;
100 bool m_contentTypeHasBeenSet = false;
101 bool m_eventIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace LexRuntimeV2
106} // 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