Class: Aws::LexRuntimeV2::EventStreams::StartConversationResponseEventStream

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-lexruntimev2/event_streams.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStartConversationResponseEventStream

Returns a new instance of StartConversationResponseEventStream.



180
181
182
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 180

def initialize
  @event_emitter = Aws::EventEmitter.new
end

Instance Attribute Details

#event_emitterObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns Aws::EventEmitter.

Returns:

  • Aws::EventEmitter



274
275
276
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 274

def event_emitter
  @event_emitter
end

Instance Method Details

#on_access_denied_exception_event(&block) ⇒ Object



208
209
210
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 208

def on_access_denied_exception_event(&block)
  @event_emitter.on(:access_denied_exception, block) if block_given?
end

#on_audio_response_event_event(&block) ⇒ Object



200
201
202
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 200

def on_audio_response_event_event(&block)
  @event_emitter.on(:audio_response_event, block) if block_given?
end

#on_bad_gateway_exception_event(&block) ⇒ Object



236
237
238
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 236

def on_bad_gateway_exception_event(&block)
  @event_emitter.on(:bad_gateway_exception, block) if block_given?
end

#on_conflict_exception_event(&block) ⇒ Object



228
229
230
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 228

def on_conflict_exception_event(&block)
  @event_emitter.on(:conflict_exception, block) if block_given?
end

#on_dependency_failed_exception_event(&block) ⇒ Object



232
233
234
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 232

def on_dependency_failed_exception_event(&block)
  @event_emitter.on(:dependency_failed_exception, block) if block_given?
end

#on_error_event(&block) ⇒ Object



240
241
242
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 240

def on_error_event(&block)
  @event_emitter.on(:error, block) if block_given?
end

#on_event(&block) ⇒ Object



252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 252

def on_event(&block)
  on_playback_interruption_event_event(&block)
  on_transcript_event_event(&block)
  on_intent_result_event_event(&block)
  on_text_response_event_event(&block)
  on_audio_response_event_event(&block)
  on_heartbeat_event_event(&block)
  on_access_denied_exception_event(&block)
  on_resource_not_found_exception_event(&block)
  on_validation_exception_event(&block)
  on_throttling_exception_event(&block)
  on_internal_server_exception_event(&block)
  on_conflict_exception_event(&block)
  on_dependency_failed_exception_event(&block)
  on_bad_gateway_exception_event(&block)
  on_error_event(&block)
  on_initial_response_event(&block)
  on_unknown_event(&block)
end

#on_heartbeat_event_event(&block) ⇒ Object



204
205
206
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 204

def on_heartbeat_event_event(&block)
  @event_emitter.on(:heartbeat_event, block) if block_given?
end

#on_initial_response_event(&block) ⇒ Object



244
245
246
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 244

def on_initial_response_event(&block)
  @event_emitter.on(:initial_response, block) if block_given?
end

#on_intent_result_event_event(&block) ⇒ Object



192
193
194
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 192

def on_intent_result_event_event(&block)
  @event_emitter.on(:intent_result_event, block) if block_given?
end

#on_internal_server_exception_event(&block) ⇒ Object



224
225
226
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 224

def on_internal_server_exception_event(&block)
  @event_emitter.on(:internal_server_exception, block) if block_given?
end

#on_playback_interruption_event_event(&block) ⇒ Object



184
185
186
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 184

def on_playback_interruption_event_event(&block)
  @event_emitter.on(:playback_interruption_event, block) if block_given?
end

#on_resource_not_found_exception_event(&block) ⇒ Object



212
213
214
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 212

def on_resource_not_found_exception_event(&block)
  @event_emitter.on(:resource_not_found_exception, block) if block_given?
end

#on_text_response_event_event(&block) ⇒ Object



196
197
198
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 196

def on_text_response_event_event(&block)
  @event_emitter.on(:text_response_event, block) if block_given?
end

#on_throttling_exception_event(&block) ⇒ Object



220
221
222
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 220

def on_throttling_exception_event(&block)
  @event_emitter.on(:throttling_exception, block) if block_given?
end

#on_transcript_event_event(&block) ⇒ Object



188
189
190
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 188

def on_transcript_event_event(&block)
  @event_emitter.on(:transcript_event, block) if block_given?
end

#on_unknown_event(&block) ⇒ Object



248
249
250
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 248

def on_unknown_event(&block)
  @event_emitter.on(:unknown_event, block) if block_given?
end

#on_validation_exception_event(&block) ⇒ Object



216
217
218
# File 'lib/aws-sdk-lexruntimev2/event_streams.rb', line 216

def on_validation_exception_event(&block)
  @event_emitter.on(:validation_exception, block) if block_given?
end