AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename AudioChunkT = Aws::Utils::ByteBuffer>
51 void SetAudioChunk(AudioChunkT&& value) { m_audioChunkHasBeenSet = true; m_audioChunk = std::forward<AudioChunkT>(value); }
52 template<typename AudioChunkT = Aws::Utils::ByteBuffer>
53 AudioInputEvent& WithAudioChunk(AudioChunkT&& value) { SetAudioChunk(std::forward<AudioChunkT>(value)); return *this;}
55
57
63 inline const Aws::String& GetContentType() const { return m_contentType; }
64 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
65 template<typename ContentTypeT = Aws::String>
66 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
67 template<typename ContentTypeT = Aws::String>
68 AudioInputEvent& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
70
72
76 inline const Aws::String& GetEventId() const { return m_eventId; }
77 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
78 template<typename EventIdT = Aws::String>
79 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
80 template<typename EventIdT = Aws::String>
81 AudioInputEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
83
85
89 inline long long GetClientTimestampMillis() const { return m_clientTimestampMillis; }
90 inline bool ClientTimestampMillisHasBeenSet() const { return m_clientTimestampMillisHasBeenSet; }
91 inline void SetClientTimestampMillis(long long value) { m_clientTimestampMillisHasBeenSet = true; m_clientTimestampMillis = value; }
92 inline AudioInputEvent& WithClientTimestampMillis(long long value) { SetClientTimestampMillis(value); return *this;}
94 private:
95
96 Aws::Utils::ByteBuffer m_audioChunk{};
97 bool m_audioChunkHasBeenSet = false;
98
99 Aws::String m_contentType;
100 bool m_contentTypeHasBeenSet = false;
101
102 Aws::String m_eventId;
103 bool m_eventIdHasBeenSet = false;
104
105 long long m_clientTimestampMillis{0};
106 bool m_clientTimestampMillisHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace LexRuntimeV2
111} // namespace Aws
AudioInputEvent & WithContentType(ContentTypeT &&value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API AudioInputEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContentType() const
AWS_LEXRUNTIMEV2_API AudioInputEvent()=default
const Aws::String & GetEventId() const
void SetContentType(ContentTypeT &&value)
AudioInputEvent & WithEventId(EventIdT &&value)
AWS_LEXRUNTIMEV2_API AudioInputEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AudioInputEvent & WithClientTimestampMillis(long long value)
const Aws::Utils::ByteBuffer & GetAudioChunk() const
AudioInputEvent & WithAudioChunk(AudioChunkT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue