public class IntentRequest extends CoreSpeechletRequest
Intent for SpeechletV2 invocation.| Modifier and Type | Class and Description |
|---|---|
static class |
IntentRequest.Builder
Builder used to construct a new
IntentRequest. |
SpeechletRequest.SpeechletRequestBuilder<T extends SpeechletRequest.SpeechletRequestBuilder,S extends SpeechletRequest>| Modifier | Constructor and Description |
|---|---|
protected |
IntentRequest(String requestId,
Date timestamp,
Locale locale,
Intent intent)
Protected constructor used for JSON serialization and for extending this class.
|
| Modifier and Type | Method and Description |
|---|---|
static IntentRequest.Builder |
builder()
Returns a new builder instance used to construct a new
IntentRequest. |
Intent |
getIntent()
Returns the intent associated with this request.
|
getLocale, getRequestId, getTimestampprotected IntentRequest(String requestId, Date timestamp, Locale locale, Intent intent)
requestId - the request identifiertimestamp - the request timestamplocale - the locale of the requestintent - the intent to handlepublic static IntentRequest.Builder builder()
IntentRequest.public Intent getIntent()
Intent passed
as a parameter is the one that caused the Alexa skill to be started. It can be an
Intent that is relevant to the skill and provides information on what to do, or it
can simply be the Intent resulting from the user saying
"Alexa, start <Invocation Name>".Copyright © 2016. All rights reserved.