* The unique identifier of the bot containing the bot recommendation that is being stopped. *
*/ private String botId; /** ** The version of the bot containing the recommendation that is being stopped. *
*/ private String botVersion; /** ** The identifier of the language and locale of the bot response to stop. The string must match one of the supported * locales. For more information, see Supported languages *
*/ private String localeId; /** ** The status of the bot recommendation. If the status is Failed, then the reasons for the failure are listed in the * failureReasons field. *
*/ private String botRecommendationStatus; /** ** The unique identifier of the bot recommendation that is being stopped. *
*/ private String botRecommendationId; /** ** The unique identifier of the bot containing the bot recommendation that is being stopped. *
* * @param botId * The unique identifier of the bot containing the bot recommendation that is being stopped. */ public void setBotId(String botId) { this.botId = botId; } /** ** The unique identifier of the bot containing the bot recommendation that is being stopped. *
* * @return The unique identifier of the bot containing the bot recommendation that is being stopped. */ public String getBotId() { return this.botId; } /** ** The unique identifier of the bot containing the bot recommendation that is being stopped. *
* * @param botId * The unique identifier of the bot containing the bot recommendation that is being stopped. * @return Returns a reference to this object so that method calls can be chained together. */ public StopBotRecommendationResult withBotId(String botId) { setBotId(botId); return this; } /** ** The version of the bot containing the recommendation that is being stopped. *
* * @param botVersion * The version of the bot containing the recommendation that is being stopped. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** ** The version of the bot containing the recommendation that is being stopped. *
* * @return The version of the bot containing the recommendation that is being stopped. */ public String getBotVersion() { return this.botVersion; } /** ** The version of the bot containing the recommendation that is being stopped. *
* * @param botVersion * The version of the bot containing the recommendation that is being stopped. * @return Returns a reference to this object so that method calls can be chained together. */ public StopBotRecommendationResult withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** ** The identifier of the language and locale of the bot response to stop. The string must match one of the supported * locales. For more information, see Supported languages *
* * @param localeId * The identifier of the language and locale of the bot response to stop. The string must match one of the * supported locales. For more information, see Supported languages */ public void setLocaleId(String localeId) { this.localeId = localeId; } /** ** The identifier of the language and locale of the bot response to stop. The string must match one of the supported * locales. For more information, see Supported languages *
* * @return The identifier of the language and locale of the bot response to stop. The string must match one of the * supported locales. For more information, see Supported languages */ public String getLocaleId() { return this.localeId; } /** ** The identifier of the language and locale of the bot response to stop. The string must match one of the supported * locales. For more information, see Supported languages *
* * @param localeId * The identifier of the language and locale of the bot response to stop. The string must match one of the * supported locales. For more information, see Supported languages * @return Returns a reference to this object so that method calls can be chained together. */ public StopBotRecommendationResult withLocaleId(String localeId) { setLocaleId(localeId); return this; } /** ** The status of the bot recommendation. If the status is Failed, then the reasons for the failure are listed in the * failureReasons field. *
* * @param botRecommendationStatus * The status of the bot recommendation. If the status is Failed, then the reasons for the failure are listed * in the failureReasons field. * @see BotRecommendationStatus */ public void setBotRecommendationStatus(String botRecommendationStatus) { this.botRecommendationStatus = botRecommendationStatus; } /** ** The status of the bot recommendation. If the status is Failed, then the reasons for the failure are listed in the * failureReasons field. *
* * @return The status of the bot recommendation. If the status is Failed, then the reasons for the failure are * listed in the failureReasons field. * @see BotRecommendationStatus */ public String getBotRecommendationStatus() { return this.botRecommendationStatus; } /** ** The status of the bot recommendation. If the status is Failed, then the reasons for the failure are listed in the * failureReasons field. *
* * @param botRecommendationStatus * The status of the bot recommendation. If the status is Failed, then the reasons for the failure are listed * in the failureReasons field. * @return Returns a reference to this object so that method calls can be chained together. * @see BotRecommendationStatus */ public StopBotRecommendationResult withBotRecommendationStatus(String botRecommendationStatus) { setBotRecommendationStatus(botRecommendationStatus); return this; } /** ** The status of the bot recommendation. If the status is Failed, then the reasons for the failure are listed in the * failureReasons field. *
* * @param botRecommendationStatus * The status of the bot recommendation. If the status is Failed, then the reasons for the failure are listed * in the failureReasons field. * @return Returns a reference to this object so that method calls can be chained together. * @see BotRecommendationStatus */ public StopBotRecommendationResult withBotRecommendationStatus(BotRecommendationStatus botRecommendationStatus) { this.botRecommendationStatus = botRecommendationStatus.toString(); return this; } /** ** The unique identifier of the bot recommendation that is being stopped. *
* * @param botRecommendationId * The unique identifier of the bot recommendation that is being stopped. */ public void setBotRecommendationId(String botRecommendationId) { this.botRecommendationId = botRecommendationId; } /** ** The unique identifier of the bot recommendation that is being stopped. *
* * @return The unique identifier of the bot recommendation that is being stopped. */ public String getBotRecommendationId() { return this.botRecommendationId; } /** ** The unique identifier of the bot recommendation that is being stopped. *
* * @param botRecommendationId * The unique identifier of the bot recommendation that is being stopped. * @return Returns a reference to this object so that method calls can be chained together. */ public StopBotRecommendationResult withBotRecommendationId(String botRecommendationId) { setBotRecommendationId(botRecommendationId); 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 (getBotRecommendationStatus() != null) sb.append("BotRecommendationStatus: ").append(getBotRecommendationStatus()).append(","); if (getBotRecommendationId() != null) sb.append("BotRecommendationId: ").append(getBotRecommendationId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StopBotRecommendationResult == false) return false; StopBotRecommendationResult other = (StopBotRecommendationResult) 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.getBotRecommendationStatus() == null ^ this.getBotRecommendationStatus() == null) return false; if (other.getBotRecommendationStatus() != null && other.getBotRecommendationStatus().equals(this.getBotRecommendationStatus()) == false) return false; if (other.getBotRecommendationId() == null ^ this.getBotRecommendationId() == null) return false; if (other.getBotRecommendationId() != null && other.getBotRecommendationId().equals(this.getBotRecommendationId()) == 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 + ((getBotRecommendationStatus() == null) ? 0 : getBotRecommendationStatus().hashCode()); hashCode = prime * hashCode + ((getBotRecommendationId() == null) ? 0 : getBotRecommendationId().hashCode()); return hashCode; } @Override public StopBotRecommendationResult clone() { try { return (StopBotRecommendationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }