* The identifier of the bot that the custom vocabulary was removed from. *
*/ private String botId; /** ** The version of the bot that the custom vocabulary was removed from. *
*/ private String botVersion; /** ** The locale identifier for the locale that the custom vocabulary was removed from. *
*/ private String localeId; /** ** The status of removing the custom vocabulary. *
*/ private String customVocabularyStatus; /** ** The identifier of the bot that the custom vocabulary was removed from. *
* * @param botId * The identifier of the bot that the custom vocabulary was removed from. */ public void setBotId(String botId) { this.botId = botId; } /** ** The identifier of the bot that the custom vocabulary was removed from. *
* * @return The identifier of the bot that the custom vocabulary was removed from. */ public String getBotId() { return this.botId; } /** ** The identifier of the bot that the custom vocabulary was removed from. *
* * @param botId * The identifier of the bot that the custom vocabulary was removed from. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteCustomVocabularyResult withBotId(String botId) { setBotId(botId); return this; } /** ** The version of the bot that the custom vocabulary was removed from. *
* * @param botVersion * The version of the bot that the custom vocabulary was removed from. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** ** The version of the bot that the custom vocabulary was removed from. *
* * @return The version of the bot that the custom vocabulary was removed from. */ public String getBotVersion() { return this.botVersion; } /** ** The version of the bot that the custom vocabulary was removed from. *
* * @param botVersion * The version of the bot that the custom vocabulary was removed from. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteCustomVocabularyResult withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** ** The locale identifier for the locale that the custom vocabulary was removed from. *
* * @param localeId * The locale identifier for the locale that the custom vocabulary was removed from. */ public void setLocaleId(String localeId) { this.localeId = localeId; } /** ** The locale identifier for the locale that the custom vocabulary was removed from. *
* * @return The locale identifier for the locale that the custom vocabulary was removed from. */ public String getLocaleId() { return this.localeId; } /** ** The locale identifier for the locale that the custom vocabulary was removed from. *
* * @param localeId * The locale identifier for the locale that the custom vocabulary was removed from. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteCustomVocabularyResult withLocaleId(String localeId) { setLocaleId(localeId); return this; } /** ** The status of removing the custom vocabulary. *
* * @param customVocabularyStatus * The status of removing the custom vocabulary. * @see CustomVocabularyStatus */ public void setCustomVocabularyStatus(String customVocabularyStatus) { this.customVocabularyStatus = customVocabularyStatus; } /** ** The status of removing the custom vocabulary. *
* * @return The status of removing the custom vocabulary. * @see CustomVocabularyStatus */ public String getCustomVocabularyStatus() { return this.customVocabularyStatus; } /** ** The status of removing the custom vocabulary. *
* * @param customVocabularyStatus * The status of removing the custom vocabulary. * @return Returns a reference to this object so that method calls can be chained together. * @see CustomVocabularyStatus */ public DeleteCustomVocabularyResult withCustomVocabularyStatus(String customVocabularyStatus) { setCustomVocabularyStatus(customVocabularyStatus); return this; } /** ** The status of removing the custom vocabulary. *
* * @param customVocabularyStatus * The status of removing the custom vocabulary. * @return Returns a reference to this object so that method calls can be chained together. * @see CustomVocabularyStatus */ public DeleteCustomVocabularyResult withCustomVocabularyStatus(CustomVocabularyStatus customVocabularyStatus) { this.customVocabularyStatus = customVocabularyStatus.toString(); 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 (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 (getCustomVocabularyStatus() != null) sb.append("CustomVocabularyStatus: ").append(getCustomVocabularyStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteCustomVocabularyResult == false) return false; DeleteCustomVocabularyResult other = (DeleteCustomVocabularyResult) obj; 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.getCustomVocabularyStatus() == null ^ this.getCustomVocabularyStatus() == null) return false; if (other.getCustomVocabularyStatus() != null && other.getCustomVocabularyStatus().equals(this.getCustomVocabularyStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; 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 + ((getCustomVocabularyStatus() == null) ? 0 : getCustomVocabularyStatus().hashCode()); return hashCode; } @Override public DeleteCustomVocabularyResult clone() { try { return (DeleteCustomVocabularyResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }