* A unique identifier for the intent. *
*/ private String intentId; /** ** The name specified for the intent. *
*/ private String intentName; /** ** The description specified for the intent. *
*/ private String description; /** ** The signature of the parent intent specified for the intent. *
*/ private String parentIntentSignature; /** ** The sample utterances specified for the intent. *
*/ private java.util.List* The dialog Lambda function specified for the intent. *
*/ private DialogCodeHookSettings dialogCodeHook; /** ** The fulfillment Lambda function specified for the intent. *
*/ private FulfillmentCodeHookSettings fulfillmentCodeHook; /** ** The confirmation setting specified for the intent. *
*/ private IntentConfirmationSetting intentConfirmationSetting; /** ** The closing setting specified for the intent. *
*/ private IntentClosingSetting intentClosingSetting; /** ** The list of input contexts specified for the intent. *
*/ private java.util.List* The list of output contexts specified for the intent. *
*/ private java.util.List* Configuration for searching a Amazon Kendra index specified for the intent. *
*/ private KendraConfiguration kendraConfiguration; /** ** The identifier of the bot associated with the intent. *
*/ private String botId; /** ** The version of the bot associated with the intent. *
*/ private String botVersion; /** ** The locale that the intent is specified to use. *
*/ private String localeId; /** ** A timestamp of the date and time that the intent was created. *
*/ private java.util.Date creationDateTime; /** ** Configuration settings for the response that is sent to the user at the beginning of a conversation, before * eliciting slot values. *
*/ private InitialResponseSetting initialResponseSetting; /** ** A unique identifier for the intent. *
* * @param intentId * A unique identifier for the intent. */ public void setIntentId(String intentId) { this.intentId = intentId; } /** ** A unique identifier for the intent. *
* * @return A unique identifier for the intent. */ public String getIntentId() { return this.intentId; } /** ** A unique identifier for the intent. *
* * @param intentId * A unique identifier for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withIntentId(String intentId) { setIntentId(intentId); return this; } /** ** The name specified for the intent. *
* * @param intentName * The name specified for the intent. */ public void setIntentName(String intentName) { this.intentName = intentName; } /** ** The name specified for the intent. *
* * @return The name specified for the intent. */ public String getIntentName() { return this.intentName; } /** ** The name specified for the intent. *
* * @param intentName * The name specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withIntentName(String intentName) { setIntentName(intentName); return this; } /** ** The description specified for the intent. *
* * @param description * The description specified for the intent. */ public void setDescription(String description) { this.description = description; } /** ** The description specified for the intent. *
* * @return The description specified for the intent. */ public String getDescription() { return this.description; } /** ** The description specified for the intent. *
* * @param description * The description specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withDescription(String description) { setDescription(description); return this; } /** ** The signature of the parent intent specified for the intent. *
* * @param parentIntentSignature * The signature of the parent intent specified for the intent. */ public void setParentIntentSignature(String parentIntentSignature) { this.parentIntentSignature = parentIntentSignature; } /** ** The signature of the parent intent specified for the intent. *
* * @return The signature of the parent intent specified for the intent. */ public String getParentIntentSignature() { return this.parentIntentSignature; } /** ** The signature of the parent intent specified for the intent. *
* * @param parentIntentSignature * The signature of the parent intent specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withParentIntentSignature(String parentIntentSignature) { setParentIntentSignature(parentIntentSignature); return this; } /** ** The sample utterances specified for the intent. *
* * @return The sample utterances specified for the intent. */ public java.util.List* The sample utterances specified for the intent. *
* * @param sampleUtterances * The sample utterances specified for the intent. */ public void setSampleUtterances(java.util.Collection* The sample utterances specified 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 * The sample utterances specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withSampleUtterances(SampleUtterance... sampleUtterances) { if (this.sampleUtterances == null) { setSampleUtterances(new java.util.ArrayList* The sample utterances specified for the intent. *
* * @param sampleUtterances * The sample utterances specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withSampleUtterances(java.util.Collection* The dialog Lambda function specified for the intent. *
* * @param dialogCodeHook * The dialog Lambda function specified for the intent. */ public void setDialogCodeHook(DialogCodeHookSettings dialogCodeHook) { this.dialogCodeHook = dialogCodeHook; } /** ** The dialog Lambda function specified for the intent. *
* * @return The dialog Lambda function specified for the intent. */ public DialogCodeHookSettings getDialogCodeHook() { return this.dialogCodeHook; } /** ** The dialog Lambda function specified for the intent. *
* * @param dialogCodeHook * The dialog Lambda function specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withDialogCodeHook(DialogCodeHookSettings dialogCodeHook) { setDialogCodeHook(dialogCodeHook); return this; } /** ** The fulfillment Lambda function specified for the intent. *
* * @param fulfillmentCodeHook * The fulfillment Lambda function specified for the intent. */ public void setFulfillmentCodeHook(FulfillmentCodeHookSettings fulfillmentCodeHook) { this.fulfillmentCodeHook = fulfillmentCodeHook; } /** ** The fulfillment Lambda function specified for the intent. *
* * @return The fulfillment Lambda function specified for the intent. */ public FulfillmentCodeHookSettings getFulfillmentCodeHook() { return this.fulfillmentCodeHook; } /** ** The fulfillment Lambda function specified for the intent. *
* * @param fulfillmentCodeHook * The fulfillment Lambda function specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withFulfillmentCodeHook(FulfillmentCodeHookSettings fulfillmentCodeHook) { setFulfillmentCodeHook(fulfillmentCodeHook); return this; } /** ** The confirmation setting specified for the intent. *
* * @param intentConfirmationSetting * The confirmation setting specified for the intent. */ public void setIntentConfirmationSetting(IntentConfirmationSetting intentConfirmationSetting) { this.intentConfirmationSetting = intentConfirmationSetting; } /** ** The confirmation setting specified for the intent. *
* * @return The confirmation setting specified for the intent. */ public IntentConfirmationSetting getIntentConfirmationSetting() { return this.intentConfirmationSetting; } /** ** The confirmation setting specified for the intent. *
* * @param intentConfirmationSetting * The confirmation setting specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withIntentConfirmationSetting(IntentConfirmationSetting intentConfirmationSetting) { setIntentConfirmationSetting(intentConfirmationSetting); return this; } /** ** The closing setting specified for the intent. *
* * @param intentClosingSetting * The closing setting specified for the intent. */ public void setIntentClosingSetting(IntentClosingSetting intentClosingSetting) { this.intentClosingSetting = intentClosingSetting; } /** ** The closing setting specified for the intent. *
* * @return The closing setting specified for the intent. */ public IntentClosingSetting getIntentClosingSetting() { return this.intentClosingSetting; } /** ** The closing setting specified for the intent. *
* * @param intentClosingSetting * The closing setting specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withIntentClosingSetting(IntentClosingSetting intentClosingSetting) { setIntentClosingSetting(intentClosingSetting); return this; } /** ** The list of input contexts specified for the intent. *
* * @return The list of input contexts specified for the intent. */ public java.util.List* The list of input contexts specified for the intent. *
* * @param inputContexts * The list of input contexts specified for the intent. */ public void setInputContexts(java.util.Collection* The list of input contexts specified for the intent. *
** 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 * The list of input contexts specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withInputContexts(InputContext... inputContexts) { if (this.inputContexts == null) { setInputContexts(new java.util.ArrayList* The list of input contexts specified for the intent. *
* * @param inputContexts * The list of input contexts specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withInputContexts(java.util.Collection* The list of output contexts specified for the intent. *
* * @return The list of output contexts specified for the intent. */ public java.util.List* The list of output contexts specified for the intent. *
* * @param outputContexts * The list of output contexts specified for the intent. */ public void setOutputContexts(java.util.Collection* The list of output contexts specified for the intent. *
** 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 * The list of output contexts specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withOutputContexts(OutputContext... outputContexts) { if (this.outputContexts == null) { setOutputContexts(new java.util.ArrayList* The list of output contexts specified for the intent. *
* * @param outputContexts * The list of output contexts specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withOutputContexts(java.util.Collection* Configuration for searching a Amazon Kendra index specified for the intent. *
* * @param kendraConfiguration * Configuration for searching a Amazon Kendra index specified for the intent. */ public void setKendraConfiguration(KendraConfiguration kendraConfiguration) { this.kendraConfiguration = kendraConfiguration; } /** ** Configuration for searching a Amazon Kendra index specified for the intent. *
* * @return Configuration for searching a Amazon Kendra index specified for the intent. */ public KendraConfiguration getKendraConfiguration() { return this.kendraConfiguration; } /** ** Configuration for searching a Amazon Kendra index specified for the intent. *
* * @param kendraConfiguration * Configuration for searching a Amazon Kendra index specified for the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withKendraConfiguration(KendraConfiguration kendraConfiguration) { setKendraConfiguration(kendraConfiguration); return this; } /** ** The identifier of the bot associated with the intent. *
* * @param botId * The identifier of the bot associated with the intent. */ public void setBotId(String botId) { this.botId = botId; } /** ** The identifier of the bot associated with the intent. *
* * @return The identifier of the bot associated with the intent. */ public String getBotId() { return this.botId; } /** ** The identifier of the bot associated with the intent. *
* * @param botId * The identifier of the bot associated with the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withBotId(String botId) { setBotId(botId); return this; } /** ** The version of the bot associated with the intent. *
* * @param botVersion * The version of the bot associated with the intent. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** ** The version of the bot associated with the intent. *
* * @return The version of the bot associated with the intent. */ public String getBotVersion() { return this.botVersion; } /** ** The version of the bot associated with the intent. *
* * @param botVersion * The version of the bot associated with the intent. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** ** The locale that the intent is specified to use. *
* * @param localeId * The locale that the intent is specified to use. */ public void setLocaleId(String localeId) { this.localeId = localeId; } /** ** The locale that the intent is specified to use. *
* * @return The locale that the intent is specified to use. */ public String getLocaleId() { return this.localeId; } /** ** The locale that the intent is specified to use. *
* * @param localeId * The locale that the intent is specified to use. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withLocaleId(String localeId) { setLocaleId(localeId); return this; } /** ** A timestamp of the date and time that the intent was created. *
* * @param creationDateTime * A timestamp of the date and time that the intent was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** ** A timestamp of the date and time that the intent was created. *
* * @return A timestamp of the date and time that the intent was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** ** A timestamp of the date and time that the intent was created. *
* * @param creationDateTime * A timestamp of the date and time that the intent was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** ** Configuration settings for the response that is sent to the user at the beginning of a conversation, before * eliciting slot values. *
* * @param initialResponseSetting * Configuration settings for the response that is sent to the user at the beginning of a conversation, * before eliciting slot values. */ public void setInitialResponseSetting(InitialResponseSetting initialResponseSetting) { this.initialResponseSetting = initialResponseSetting; } /** ** Configuration settings for the response that is sent to the user at the beginning of a conversation, before * eliciting slot values. *
* * @return Configuration settings for the response that is sent to the user at the beginning of a conversation, * before eliciting slot values. */ public InitialResponseSetting getInitialResponseSetting() { return this.initialResponseSetting; } /** ** Configuration settings for the response that is sent to the user at the beginning of a conversation, before * eliciting slot values. *
* * @param initialResponseSetting * Configuration settings for the response that is sent to the user at the beginning of a conversation, * before eliciting slot values. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentResult withInitialResponseSetting(InitialResponseSetting initialResponseSetting) { setInitialResponseSetting(initialResponseSetting); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getIntentId() != null) sb.append("IntentId: ").append(getIntentId()).append(","); if (getIntentName() != null) sb.append("IntentName: ").append(getIntentName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getParentIntentSignature() != null) sb.append("ParentIntentSignature: ").append(getParentIntentSignature()).append(","); if (getSampleUtterances() != null) sb.append("SampleUtterances: ").append(getSampleUtterances()).append(","); if (getDialogCodeHook() != null) sb.append("DialogCodeHook: ").append(getDialogCodeHook()).append(","); if (getFulfillmentCodeHook() != null) sb.append("FulfillmentCodeHook: ").append(getFulfillmentCodeHook()).append(","); if (getIntentConfirmationSetting() != null) sb.append("IntentConfirmationSetting: ").append(getIntentConfirmationSetting()).append(","); if (getIntentClosingSetting() != null) sb.append("IntentClosingSetting: ").append(getIntentClosingSetting()).append(","); if (getInputContexts() != null) sb.append("InputContexts: ").append(getInputContexts()).append(","); if (getOutputContexts() != null) sb.append("OutputContexts: ").append(getOutputContexts()).append(","); if (getKendraConfiguration() != null) sb.append("KendraConfiguration: ").append(getKendraConfiguration()).append(","); if (getBotId() != null) sb.append("BotId: ").append(getBotId()).append(","); if (getBotVersion() != null) sb.append("BotVersion: ").append(getBotVersion()).append(","); if (getLocaleId() != null) sb.append("LocaleId: ").append(getLocaleId()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getInitialResponseSetting() != null) sb.append("InitialResponseSetting: ").append(getInitialResponseSetting()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateIntentResult == false) return false; CreateIntentResult other = (CreateIntentResult) obj; if (other.getIntentId() == null ^ this.getIntentId() == null) return false; if (other.getIntentId() != null && other.getIntentId().equals(this.getIntentId()) == false) return false; if (other.getIntentName() == null ^ this.getIntentName() == null) return false; if (other.getIntentName() != null && other.getIntentName().equals(this.getIntentName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getParentIntentSignature() == null ^ this.getParentIntentSignature() == null) return false; if (other.getParentIntentSignature() != null && other.getParentIntentSignature().equals(this.getParentIntentSignature()) == false) return false; if (other.getSampleUtterances() == null ^ this.getSampleUtterances() == null) return false; if (other.getSampleUtterances() != null && other.getSampleUtterances().equals(this.getSampleUtterances()) == false) return false; if (other.getDialogCodeHook() == null ^ this.getDialogCodeHook() == null) return false; if (other.getDialogCodeHook() != null && other.getDialogCodeHook().equals(this.getDialogCodeHook()) == false) return false; if (other.getFulfillmentCodeHook() == null ^ this.getFulfillmentCodeHook() == null) return false; if (other.getFulfillmentCodeHook() != null && other.getFulfillmentCodeHook().equals(this.getFulfillmentCodeHook()) == false) return false; if (other.getIntentConfirmationSetting() == null ^ this.getIntentConfirmationSetting() == null) return false; if (other.getIntentConfirmationSetting() != null && other.getIntentConfirmationSetting().equals(this.getIntentConfirmationSetting()) == false) return false; if (other.getIntentClosingSetting() == null ^ this.getIntentClosingSetting() == null) return false; if (other.getIntentClosingSetting() != null && other.getIntentClosingSetting().equals(this.getIntentClosingSetting()) == false) return false; if (other.getInputContexts() == null ^ this.getInputContexts() == null) return false; if (other.getInputContexts() != null && other.getInputContexts().equals(this.getInputContexts()) == false) return false; if (other.getOutputContexts() == null ^ this.getOutputContexts() == null) return false; if (other.getOutputContexts() != null && other.getOutputContexts().equals(this.getOutputContexts()) == false) return false; if (other.getKendraConfiguration() == null ^ this.getKendraConfiguration() == null) return false; if (other.getKendraConfiguration() != null && other.getKendraConfiguration().equals(this.getKendraConfiguration()) == false) return false; if (other.getBotId() == null ^ this.getBotId() == null) return false; if (other.getBotId() != null && other.getBotId().equals(this.getBotId()) == false) return false; if (other.getBotVersion() == null ^ this.getBotVersion() == null) return false; if (other.getBotVersion() != null && other.getBotVersion().equals(this.getBotVersion()) == false) return false; if (other.getLocaleId() == null ^ this.getLocaleId() == null) return false; if (other.getLocaleId() != null && other.getLocaleId().equals(this.getLocaleId()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getInitialResponseSetting() == null ^ this.getInitialResponseSetting() == null) return false; if (other.getInitialResponseSetting() != null && other.getInitialResponseSetting().equals(this.getInitialResponseSetting()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIntentId() == null) ? 0 : getIntentId().hashCode()); hashCode = prime * hashCode + ((getIntentName() == null) ? 0 : getIntentName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getParentIntentSignature() == null) ? 0 : getParentIntentSignature().hashCode()); hashCode = prime * hashCode + ((getSampleUtterances() == null) ? 0 : getSampleUtterances().hashCode()); hashCode = prime * hashCode + ((getDialogCodeHook() == null) ? 0 : getDialogCodeHook().hashCode()); hashCode = prime * hashCode + ((getFulfillmentCodeHook() == null) ? 0 : getFulfillmentCodeHook().hashCode()); hashCode = prime * hashCode + ((getIntentConfirmationSetting() == null) ? 0 : getIntentConfirmationSetting().hashCode()); hashCode = prime * hashCode + ((getIntentClosingSetting() == null) ? 0 : getIntentClosingSetting().hashCode()); hashCode = prime * hashCode + ((getInputContexts() == null) ? 0 : getInputContexts().hashCode()); hashCode = prime * hashCode + ((getOutputContexts() == null) ? 0 : getOutputContexts().hashCode()); hashCode = prime * hashCode + ((getKendraConfiguration() == null) ? 0 : getKendraConfiguration().hashCode()); hashCode = prime * hashCode + ((getBotId() == null) ? 0 : getBotId().hashCode()); hashCode = prime * hashCode + ((getBotVersion() == null) ? 0 : getBotVersion().hashCode()); hashCode = prime * hashCode + ((getLocaleId() == null) ? 0 : getLocaleId().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getInitialResponseSetting() == null) ? 0 : getInitialResponseSetting().hashCode()); return hashCode; } @Override public CreateIntentResult clone() { try { return (CreateIntentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }