AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AudioInputEvent.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
36 {
37 public:
38 AWS_LEXRUNTIMEV2_API AudioInputEvent();
39 AWS_LEXRUNTIMEV2_API AudioInputEvent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXRUNTIMEV2_API AudioInputEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::ByteBuffer& GetAudioChunk() const{ return m_audioChunk; }
49 inline bool AudioChunkHasBeenSet() const { return m_audioChunkHasBeenSet; }
50 inline void SetAudioChunk(const Aws::Utils::ByteBuffer& value) { m_audioChunkHasBeenSet = true; m_audioChunk = value; }
51 inline void SetAudioChunk(Aws::Utils::ByteBuffer&& value) { m_audioChunkHasBeenSet = true; m_audioChunk = std::move(value); }
52 inline AudioInputEvent& WithAudioChunk(const Aws::Utils::ByteBuffer& value) { SetAudioChunk(value); return *this;}
53 inline AudioInputEvent& WithAudioChunk(Aws::Utils::ByteBuffer&& value) { SetAudioChunk(std::move(value)); return *this;}
55
57
63 inline const Aws::String& GetContentType() const{ return m_contentType; }
64 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
65 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
66 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
67 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
68 inline AudioInputEvent& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
69 inline AudioInputEvent& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
70 inline AudioInputEvent& WithContentType(const char* value) { SetContentType(value); return *this;}
72
74
78 inline const Aws::String& GetEventId() const{ return m_eventId; }
79 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
80 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
81 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
82 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
83 inline AudioInputEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
84 inline AudioInputEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
85 inline AudioInputEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
87
89
93 inline long long GetClientTimestampMillis() const{ return m_clientTimestampMillis; }
94 inline bool ClientTimestampMillisHasBeenSet() const { return m_clientTimestampMillisHasBeenSet; }
95 inline void SetClientTimestampMillis(long long value) { m_clientTimestampMillisHasBeenSet = true; m_clientTimestampMillis = value; }
96 inline AudioInputEvent& WithClientTimestampMillis(long long value) { SetClientTimestampMillis(value); return *this;}
98 private:
99
100 Aws::Utils::ByteBuffer m_audioChunk;
101 bool m_audioChunkHasBeenSet = false;
102
103 Aws::String m_contentType;
104 bool m_contentTypeHasBeenSet = false;
105
106 Aws::String m_eventId;
107 bool m_eventIdHasBeenSet = false;
108
109 long long m_clientTimestampMillis;
110 bool m_clientTimestampMillisHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace LexRuntimeV2
115} // namespace Aws
AudioInputEvent & WithContentType(Aws::String &&value)
void SetEventId(const Aws::String &value)
AudioInputEvent & WithEventId(const char *value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AudioInputEvent & WithContentType(const char *value)
void SetContentType(const Aws::String &value)
void SetAudioChunk(Aws::Utils::ByteBuffer &&value)
AWS_LEXRUNTIMEV2_API AudioInputEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContentType() const
AudioInputEvent & WithAudioChunk(const Aws::Utils::ByteBuffer &value)
AudioInputEvent & WithEventId(const Aws::String &value)
const Aws::String & GetEventId() const
void SetAudioChunk(const Aws::Utils::ByteBuffer &value)
AWS_LEXRUNTIMEV2_API AudioInputEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AudioInputEvent & WithClientTimestampMillis(long long value)
const Aws::Utils::ByteBuffer & GetAudioChunk() const
AudioInputEvent & WithContentType(const Aws::String &value)
AudioInputEvent & WithEventId(Aws::String &&value)
AudioInputEvent & WithAudioChunk(Aws::Utils::ByteBuffer &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue