AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAudioChunk(const Aws::Utils::ByteBuffer& value) { m_audioChunkHasBeenSet = true; m_audioChunk = value; }
49 inline void SetAudioChunk(Aws::Utils::ByteBuffer&& value) { m_audioChunkHasBeenSet = true; m_audioChunk = std::move(value); }
50 inline AudioResponseEvent& WithAudioChunk(const Aws::Utils::ByteBuffer& value) { SetAudioChunk(value); return *this;}
51 inline AudioResponseEvent& WithAudioChunk(Aws::Utils::ByteBuffer&& value) { SetAudioChunk(std::move(value)); return *this;}
53
55
60 inline const Aws::String& GetContentType() const{ return m_contentType; }
61 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
62 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
63 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
64 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
65 inline AudioResponseEvent& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
66 inline AudioResponseEvent& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
67 inline AudioResponseEvent& WithContentType(const char* value) { SetContentType(value); return *this;}
69
71
76 inline const Aws::String& GetEventId() const{ return m_eventId; }
77 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
78 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
79 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
80 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
81 inline AudioResponseEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
82 inline AudioResponseEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
83 inline AudioResponseEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
85 private:
86
87 Aws::Utils::ByteBuffer m_audioChunk;
88 bool m_audioChunkHasBeenSet = false;
89
90 Aws::String m_contentType;
91 bool m_contentTypeHasBeenSet = false;
92
93 Aws::String m_eventId;
94 bool m_eventIdHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace LexRuntimeV2
99} // namespace Aws
AudioResponseEvent & WithContentType(const char *value)
void SetAudioChunk(Aws::Utils::ByteBuffer &&value)
AudioResponseEvent & WithEventId(const char *value)
AudioResponseEvent & WithContentType(const Aws::String &value)
AWS_LEXRUNTIMEV2_API AudioResponseEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetAudioChunk() const
AudioResponseEvent & WithAudioChunk(Aws::Utils::ByteBuffer &&value)
AudioResponseEvent & WithEventId(const Aws::String &value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAudioChunk(const Aws::Utils::ByteBuffer &value)
AudioResponseEvent & WithContentType(Aws::String &&value)
AudioResponseEvent & WithEventId(Aws::String &&value)
void SetContentType(const Aws::String &value)
AWS_LEXRUNTIMEV2_API AudioResponseEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AudioResponseEvent & WithAudioChunk(const Aws::Utils::ByteBuffer &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue