* The name of the intent. *
*/ private String name; /** ** A description of the intent. *
*/ private String description; /** ** An array of intent slots that are configured for the intent. *
*/ private java.util.List* An array of sample utterances that are configured for the intent. *
*/ private java.util.List* If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it. *
*/ private Prompt confirmationPrompt; /** *
* If the user answers "no" to the question defined in confirmationPrompt
Amazon Lex responds with this
* statement to acknowledge that the intent was canceled.
*
* If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is * fulfilled. *
*/ private FollowUpPrompt followUpPrompt; /** *
* After the Lambda function specified in thefulfillmentActivity
intent fulfills the intent, Amazon Lex
* conveys this statement to the user.
*
* If defined in the intent, Amazon Lex invokes this Lambda function for each user input. *
*/ private CodeHook dialogCodeHook; /** ** If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides * all of the information required by the intent. *
*/ private FulfillmentActivity fulfillmentActivity; /** ** A unique identifier for the built-in intent that this intent is based on. *
*/ private String parentIntentSignature; /** ** The date that the intent was updated. When you create a resource, the creation date and last update dates are the * same. *
*/ private java.util.Date lastUpdatedDate; /** ** The date that the intent was created. *
*/ private java.util.Date createdDate; /** *
* The version of the intent. For a new intent, the version is always $LATEST
.
*
* Checksum of the $LATEST
version of the intent created or updated.
*
* True
if a new version of the intent was created. If the createVersion
field was not
* specified in the request, the createVersion
field is set to false in the response.
*
* Configuration information, if any, required to connect to an Amazon Kendra index and use the
* AMAZON.KendraSearchIntent
intent.
*
* An array of InputContext
objects that lists the contexts that must be active for Amazon Lex to
* choose the intent in a conversation with the user.
*
* An array of OutputContext
objects that lists the contexts that the intent activates when the intent
* is fulfilled.
*
* The name of the intent. *
* * @param name * The name of the intent. */ public void setName(String name) { this.name = name; } /** ** The name of the intent. *
* * @return The name of the intent. */ public String getName() { return this.name; } /** ** The name of the intent. *
* * @param name * The name of the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withName(String name) { setName(name); return this; } /** ** A description of the intent. *
* * @param description * A description of the intent. */ public void setDescription(String description) { this.description = description; } /** ** A description of the intent. *
* * @return A description of the intent. */ public String getDescription() { return this.description; } /** ** A description of the intent. *
* * @param description * A description of the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withDescription(String description) { setDescription(description); return this; } /** ** An array of intent slots that are configured for the intent. *
* * @return An array of intent slots that are configured for the intent. */ public java.util.List* An array of intent slots that are configured for the intent. *
* * @param slots * An array of intent slots that are configured for the intent. */ public void setSlots(java.util.Collection* An array of intent slots that are configured for the intent. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSlots(java.util.Collection)} or {@link #withSlots(java.util.Collection)} if you want to override the * existing values. *
* * @param slots * An array of intent slots that are configured for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withSlots(Slot... slots) { if (this.slots == null) { setSlots(new java.util.ArrayList* An array of intent slots that are configured for the intent. *
* * @param slots * An array of intent slots that are configured for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withSlots(java.util.Collection* An array of sample utterances that are configured for the intent. *
* * @return An array of sample utterances that are configured for the intent. */ public java.util.List* An array of sample utterances that are configured for the intent. *
* * @param sampleUtterances * An array of sample utterances that are configured for the intent. */ public void setSampleUtterances(java.util.Collection* An array of sample utterances that are configured for the intent. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSampleUtterances(java.util.Collection)} or {@link #withSampleUtterances(java.util.Collection)} if you * want to override the existing values. *
* * @param sampleUtterances * An array of sample utterances that are configured for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withSampleUtterances(String... sampleUtterances) { if (this.sampleUtterances == null) { setSampleUtterances(new java.util.ArrayList* An array of sample utterances that are configured for the intent. *
* * @param sampleUtterances * An array of sample utterances that are configured for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withSampleUtterances(java.util.Collection* If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it. *
* * @param confirmationPrompt * If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it. */ public void setConfirmationPrompt(Prompt confirmationPrompt) { this.confirmationPrompt = confirmationPrompt; } /** ** If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it. *
* * @return If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it. */ public Prompt getConfirmationPrompt() { return this.confirmationPrompt; } /** ** If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it. *
* * @param confirmationPrompt * If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withConfirmationPrompt(Prompt confirmationPrompt) { setConfirmationPrompt(confirmationPrompt); return this; } /** *
* If the user answers "no" to the question defined in confirmationPrompt
Amazon Lex responds with this
* statement to acknowledge that the intent was canceled.
*
confirmationPrompt
Amazon Lex responds
* with this statement to acknowledge that the intent was canceled.
*/
public void setRejectionStatement(Statement rejectionStatement) {
this.rejectionStatement = rejectionStatement;
}
/**
*
* If the user answers "no" to the question defined in confirmationPrompt
Amazon Lex responds with this
* statement to acknowledge that the intent was canceled.
*
confirmationPrompt
Amazon Lex responds
* with this statement to acknowledge that the intent was canceled.
*/
public Statement getRejectionStatement() {
return this.rejectionStatement;
}
/**
*
* If the user answers "no" to the question defined in confirmationPrompt
Amazon Lex responds with this
* statement to acknowledge that the intent was canceled.
*
confirmationPrompt
Amazon Lex responds
* with this statement to acknowledge that the intent was canceled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withRejectionStatement(Statement rejectionStatement) {
setRejectionStatement(rejectionStatement);
return this;
}
/**
* * If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is * fulfilled. *
* * @param followUpPrompt * If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent * is fulfilled. */ public void setFollowUpPrompt(FollowUpPrompt followUpPrompt) { this.followUpPrompt = followUpPrompt; } /** ** If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is * fulfilled. *
* * @return If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the * intent is fulfilled. */ public FollowUpPrompt getFollowUpPrompt() { return this.followUpPrompt; } /** ** If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is * fulfilled. *
* * @param followUpPrompt * If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent * is fulfilled. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withFollowUpPrompt(FollowUpPrompt followUpPrompt) { setFollowUpPrompt(followUpPrompt); return this; } /** *
* After the Lambda function specified in thefulfillmentActivity
intent fulfills the intent, Amazon Lex
* conveys this statement to the user.
*
fulfillmentActivity
intent fulfills the intent,
* Amazon Lex conveys this statement to the user.
*/
public void setConclusionStatement(Statement conclusionStatement) {
this.conclusionStatement = conclusionStatement;
}
/**
*
* After the Lambda function specified in thefulfillmentActivity
intent fulfills the intent, Amazon Lex
* conveys this statement to the user.
*
fulfillmentActivity
intent fulfills the intent,
* Amazon Lex conveys this statement to the user.
*/
public Statement getConclusionStatement() {
return this.conclusionStatement;
}
/**
*
* After the Lambda function specified in thefulfillmentActivity
intent fulfills the intent, Amazon Lex
* conveys this statement to the user.
*
fulfillmentActivity
intent fulfills the intent,
* Amazon Lex conveys this statement to the user.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withConclusionStatement(Statement conclusionStatement) {
setConclusionStatement(conclusionStatement);
return this;
}
/**
* * If defined in the intent, Amazon Lex invokes this Lambda function for each user input. *
* * @param dialogCodeHook * If defined in the intent, Amazon Lex invokes this Lambda function for each user input. */ public void setDialogCodeHook(CodeHook dialogCodeHook) { this.dialogCodeHook = dialogCodeHook; } /** ** If defined in the intent, Amazon Lex invokes this Lambda function for each user input. *
* * @return If defined in the intent, Amazon Lex invokes this Lambda function for each user input. */ public CodeHook getDialogCodeHook() { return this.dialogCodeHook; } /** ** If defined in the intent, Amazon Lex invokes this Lambda function for each user input. *
* * @param dialogCodeHook * If defined in the intent, Amazon Lex invokes this Lambda function for each user input. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withDialogCodeHook(CodeHook dialogCodeHook) { setDialogCodeHook(dialogCodeHook); return this; } /** ** If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides * all of the information required by the intent. *
* * @param fulfillmentActivity * If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user * provides all of the information required by the intent. */ public void setFulfillmentActivity(FulfillmentActivity fulfillmentActivity) { this.fulfillmentActivity = fulfillmentActivity; } /** ** If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides * all of the information required by the intent. *
* * @return If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user * provides all of the information required by the intent. */ public FulfillmentActivity getFulfillmentActivity() { return this.fulfillmentActivity; } /** ** If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides * all of the information required by the intent. *
* * @param fulfillmentActivity * If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user * provides all of the information required by the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withFulfillmentActivity(FulfillmentActivity fulfillmentActivity) { setFulfillmentActivity(fulfillmentActivity); return this; } /** ** A unique identifier for the built-in intent that this intent is based on. *
* * @param parentIntentSignature * A unique identifier for the built-in intent that this intent is based on. */ public void setParentIntentSignature(String parentIntentSignature) { this.parentIntentSignature = parentIntentSignature; } /** ** A unique identifier for the built-in intent that this intent is based on. *
* * @return A unique identifier for the built-in intent that this intent is based on. */ public String getParentIntentSignature() { return this.parentIntentSignature; } /** ** A unique identifier for the built-in intent that this intent is based on. *
* * @param parentIntentSignature * A unique identifier for the built-in intent that this intent is based on. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withParentIntentSignature(String parentIntentSignature) { setParentIntentSignature(parentIntentSignature); return this; } /** ** The date that the intent was updated. When you create a resource, the creation date and last update dates are the * same. *
* * @param lastUpdatedDate * The date that the intent was updated. When you create a resource, the creation date and last update dates * are the same. */ public void setLastUpdatedDate(java.util.Date lastUpdatedDate) { this.lastUpdatedDate = lastUpdatedDate; } /** ** The date that the intent was updated. When you create a resource, the creation date and last update dates are the * same. *
* * @return The date that the intent was updated. When you create a resource, the creation date and last update dates * are the same. */ public java.util.Date getLastUpdatedDate() { return this.lastUpdatedDate; } /** ** The date that the intent was updated. When you create a resource, the creation date and last update dates are the * same. *
* * @param lastUpdatedDate * The date that the intent was updated. When you create a resource, the creation date and last update dates * are the same. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withLastUpdatedDate(java.util.Date lastUpdatedDate) { setLastUpdatedDate(lastUpdatedDate); return this; } /** ** The date that the intent was created. *
* * @param createdDate * The date that the intent was created. */ public void setCreatedDate(java.util.Date createdDate) { this.createdDate = createdDate; } /** ** The date that the intent was created. *
* * @return The date that the intent was created. */ public java.util.Date getCreatedDate() { return this.createdDate; } /** ** The date that the intent was created. *
* * @param createdDate * The date that the intent was created. * @return Returns a reference to this object so that method calls can be chained together. */ public PutIntentResult withCreatedDate(java.util.Date createdDate) { setCreatedDate(createdDate); return this; } /** *
* The version of the intent. For a new intent, the version is always $LATEST
.
*
$LATEST
.
*/
public void setVersion(String version) {
this.version = version;
}
/**
*
* The version of the intent. For a new intent, the version is always $LATEST
.
*
$LATEST
.
*/
public String getVersion() {
return this.version;
}
/**
*
* The version of the intent. For a new intent, the version is always $LATEST
.
*
$LATEST
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withVersion(String version) {
setVersion(version);
return this;
}
/**
*
* Checksum of the $LATEST
version of the intent created or updated.
*
$LATEST
version of the intent created or updated.
*/
public void setChecksum(String checksum) {
this.checksum = checksum;
}
/**
*
* Checksum of the $LATEST
version of the intent created or updated.
*
$LATEST
version of the intent created or updated.
*/
public String getChecksum() {
return this.checksum;
}
/**
*
* Checksum of the $LATEST
version of the intent created or updated.
*
$LATEST
version of the intent created or updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withChecksum(String checksum) {
setChecksum(checksum);
return this;
}
/**
*
* True
if a new version of the intent was created. If the createVersion
field was not
* specified in the request, the createVersion
field is set to false in the response.
*
True
if a new version of the intent was created. If the createVersion
field was
* not specified in the request, the createVersion
field is set to false in the response.
*/
public void setCreateVersion(Boolean createVersion) {
this.createVersion = createVersion;
}
/**
*
* True
if a new version of the intent was created. If the createVersion
field was not
* specified in the request, the createVersion
field is set to false in the response.
*
True
if a new version of the intent was created. If the createVersion
field was
* not specified in the request, the createVersion
field is set to false in the response.
*/
public Boolean getCreateVersion() {
return this.createVersion;
}
/**
*
* True
if a new version of the intent was created. If the createVersion
field was not
* specified in the request, the createVersion
field is set to false in the response.
*
True
if a new version of the intent was created. If the createVersion
field was
* not specified in the request, the createVersion
field is set to false in the response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withCreateVersion(Boolean createVersion) {
setCreateVersion(createVersion);
return this;
}
/**
*
* True
if a new version of the intent was created. If the createVersion
field was not
* specified in the request, the createVersion
field is set to false in the response.
*
True
if a new version of the intent was created. If the createVersion
field was
* not specified in the request, the createVersion
field is set to false in the response.
*/
public Boolean isCreateVersion() {
return this.createVersion;
}
/**
*
* Configuration information, if any, required to connect to an Amazon Kendra index and use the
* AMAZON.KendraSearchIntent
intent.
*
AMAZON.KendraSearchIntent
intent.
*/
public void setKendraConfiguration(KendraConfiguration kendraConfiguration) {
this.kendraConfiguration = kendraConfiguration;
}
/**
*
* Configuration information, if any, required to connect to an Amazon Kendra index and use the
* AMAZON.KendraSearchIntent
intent.
*
AMAZON.KendraSearchIntent
intent.
*/
public KendraConfiguration getKendraConfiguration() {
return this.kendraConfiguration;
}
/**
*
* Configuration information, if any, required to connect to an Amazon Kendra index and use the
* AMAZON.KendraSearchIntent
intent.
*
AMAZON.KendraSearchIntent
intent.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withKendraConfiguration(KendraConfiguration kendraConfiguration) {
setKendraConfiguration(kendraConfiguration);
return this;
}
/**
*
* An array of InputContext
objects that lists the contexts that must be active for Amazon Lex to
* choose the intent in a conversation with the user.
*
InputContext
objects that lists the contexts that must be active for Amazon Lex
* to choose the intent in a conversation with the user.
*/
public java.util.List
* An array of InputContext
objects that lists the contexts that must be active for Amazon Lex to
* choose the intent in a conversation with the user.
*
InputContext
objects that lists the contexts that must be active for Amazon Lex
* to choose the intent in a conversation with the user.
*/
public void setInputContexts(java.util.Collection
* An array of InputContext
objects that lists the contexts that must be active for Amazon Lex to
* choose the intent in a conversation with the user.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setInputContexts(java.util.Collection)} or {@link #withInputContexts(java.util.Collection)} if you want * to override the existing values. *
* * @param inputContexts * An array ofInputContext
objects that lists the contexts that must be active for Amazon Lex
* to choose the intent in a conversation with the user.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withInputContexts(InputContext... inputContexts) {
if (this.inputContexts == null) {
setInputContexts(new java.util.ArrayList
* An array of InputContext
objects that lists the contexts that must be active for Amazon Lex to
* choose the intent in a conversation with the user.
*
InputContext
objects that lists the contexts that must be active for Amazon Lex
* to choose the intent in a conversation with the user.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withInputContexts(java.util.Collection
* An array of OutputContext
objects that lists the contexts that the intent activates when the intent
* is fulfilled.
*
OutputContext
objects that lists the contexts that the intent activates when the
* intent is fulfilled.
*/
public java.util.List
* An array of OutputContext
objects that lists the contexts that the intent activates when the intent
* is fulfilled.
*
OutputContext
objects that lists the contexts that the intent activates when the
* intent is fulfilled.
*/
public void setOutputContexts(java.util.Collection
* An array of OutputContext
objects that lists the contexts that the intent activates when the intent
* is fulfilled.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOutputContexts(java.util.Collection)} or {@link #withOutputContexts(java.util.Collection)} if you want * to override the existing values. *
* * @param outputContexts * An array ofOutputContext
objects that lists the contexts that the intent activates when the
* intent is fulfilled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withOutputContexts(OutputContext... outputContexts) {
if (this.outputContexts == null) {
setOutputContexts(new java.util.ArrayList
* An array of OutputContext
objects that lists the contexts that the intent activates when the intent
* is fulfilled.
*
OutputContext
objects that lists the contexts that the intent activates when the
* intent is fulfilled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutIntentResult withOutputContexts(java.util.Collection