AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
AudioInputEvent.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
32 public:
33 AWS_LEXRUNTIMEV2_API AudioInputEvent() = default;
34 AWS_LEXRUNTIMEV2_API AudioInputEvent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXRUNTIMEV2_API AudioInputEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Utils::ByteBuffer& GetAudioChunk() const { return m_audioChunk; }
43 inline bool AudioChunkHasBeenSet() const { return m_audioChunkHasBeenSet; }
44 template <typename AudioChunkT = Aws::Utils::ByteBuffer>
45 void SetAudioChunk(AudioChunkT&& value) {
46 m_audioChunkHasBeenSet = true;
47 m_audioChunk = std::forward<AudioChunkT>(value);
48 }
49 template <typename AudioChunkT = Aws::Utils::ByteBuffer>
50 AudioInputEvent& WithAudioChunk(AudioChunkT&& value) {
51 SetAudioChunk(std::forward<AudioChunkT>(value));
52 return *this;
53 }
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) {
67 m_contentTypeHasBeenSet = true;
68 m_contentType = std::forward<ContentTypeT>(value);
69 }
70 template <typename ContentTypeT = Aws::String>
71 AudioInputEvent& WithContentType(ContentTypeT&& value) {
72 SetContentType(std::forward<ContentTypeT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetEventId() const { return m_eventId; }
83 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
84 template <typename EventIdT = Aws::String>
85 void SetEventId(EventIdT&& value) {
86 m_eventIdHasBeenSet = true;
87 m_eventId = std::forward<EventIdT>(value);
88 }
89 template <typename EventIdT = Aws::String>
90 AudioInputEvent& WithEventId(EventIdT&& value) {
91 SetEventId(std::forward<EventIdT>(value));
92 return *this;
93 }
95
97
101 inline long long GetClientTimestampMillis() const { return m_clientTimestampMillis; }
102 inline bool ClientTimestampMillisHasBeenSet() const { return m_clientTimestampMillisHasBeenSet; }
103 inline void SetClientTimestampMillis(long long value) {
104 m_clientTimestampMillisHasBeenSet = true;
105 m_clientTimestampMillis = value;
106 }
109 return *this;
110 }
112 private:
113 Aws::Utils::ByteBuffer m_audioChunk{};
114
115 Aws::String m_contentType;
116
117 Aws::String m_eventId;
118
119 long long m_clientTimestampMillis{0};
120 bool m_audioChunkHasBeenSet = false;
121 bool m_contentTypeHasBeenSet = false;
122 bool m_eventIdHasBeenSet = false;
123 bool m_clientTimestampMillisHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace LexRuntimeV2
128} // 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