* The identifier of the bot that contains the custom vocabulary. *
*/ private String botId; /** ** The version of the bot that contains the custom vocabulary to describe. *
*/ private String botVersion; /** ** The locale that contains the custom vocabulary to describe. *
*/ private String localeId; /** *
* The status of the custom vocabulary. If the status is Ready
the custom vocabulary is ready to use.
*
* The date and time that the custom vocabulary was created. *
*/ private java.util.Date creationDateTime; /** ** The date and time that the custom vocabulary was last updated. *
*/ private java.util.Date lastUpdatedDateTime; /** ** The identifier of the bot that contains the custom vocabulary. *
* * @param botId * The identifier of the bot that contains the custom vocabulary. */ public void setBotId(String botId) { this.botId = botId; } /** ** The identifier of the bot that contains the custom vocabulary. *
* * @return The identifier of the bot that contains the custom vocabulary. */ public String getBotId() { return this.botId; } /** ** The identifier of the bot that contains the custom vocabulary. *
* * @param botId * The identifier of the bot that contains the custom vocabulary. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomVocabularyMetadataResult withBotId(String botId) { setBotId(botId); return this; } /** ** The version of the bot that contains the custom vocabulary to describe. *
* * @param botVersion * The version of the bot that contains the custom vocabulary to describe. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** ** The version of the bot that contains the custom vocabulary to describe. *
* * @return The version of the bot that contains the custom vocabulary to describe. */ public String getBotVersion() { return this.botVersion; } /** ** The version of the bot that contains the custom vocabulary to describe. *
* * @param botVersion * The version of the bot that contains the custom vocabulary to describe. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomVocabularyMetadataResult withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** ** The locale that contains the custom vocabulary to describe. *
* * @param localeId * The locale that contains the custom vocabulary to describe. */ public void setLocaleId(String localeId) { this.localeId = localeId; } /** ** The locale that contains the custom vocabulary to describe. *
* * @return The locale that contains the custom vocabulary to describe. */ public String getLocaleId() { return this.localeId; } /** ** The locale that contains the custom vocabulary to describe. *
* * @param localeId * The locale that contains the custom vocabulary to describe. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomVocabularyMetadataResult withLocaleId(String localeId) { setLocaleId(localeId); return this; } /** *
* The status of the custom vocabulary. If the status is Ready
the custom vocabulary is ready to use.
*
Ready
the custom vocabulary is ready to
* use.
* @see CustomVocabularyStatus
*/
public void setCustomVocabularyStatus(String customVocabularyStatus) {
this.customVocabularyStatus = customVocabularyStatus;
}
/**
*
* The status of the custom vocabulary. If the status is Ready
the custom vocabulary is ready to use.
*
Ready
the custom vocabulary is ready
* to use.
* @see CustomVocabularyStatus
*/
public String getCustomVocabularyStatus() {
return this.customVocabularyStatus;
}
/**
*
* The status of the custom vocabulary. If the status is Ready
the custom vocabulary is ready to use.
*
Ready
the custom vocabulary is ready to
* use.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CustomVocabularyStatus
*/
public DescribeCustomVocabularyMetadataResult withCustomVocabularyStatus(String customVocabularyStatus) {
setCustomVocabularyStatus(customVocabularyStatus);
return this;
}
/**
*
* The status of the custom vocabulary. If the status is Ready
the custom vocabulary is ready to use.
*
Ready
the custom vocabulary is ready to
* use.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CustomVocabularyStatus
*/
public DescribeCustomVocabularyMetadataResult withCustomVocabularyStatus(CustomVocabularyStatus customVocabularyStatus) {
this.customVocabularyStatus = customVocabularyStatus.toString();
return this;
}
/**
* * The date and time that the custom vocabulary was created. *
* * @param creationDateTime * The date and time that the custom vocabulary was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** ** The date and time that the custom vocabulary was created. *
* * @return The date and time that the custom vocabulary was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** ** The date and time that the custom vocabulary was created. *
* * @param creationDateTime * The date and time that the custom vocabulary was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomVocabularyMetadataResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** ** The date and time that the custom vocabulary was last updated. *
* * @param lastUpdatedDateTime * The date and time that the custom vocabulary was last updated. */ public void setLastUpdatedDateTime(java.util.Date lastUpdatedDateTime) { this.lastUpdatedDateTime = lastUpdatedDateTime; } /** ** The date and time that the custom vocabulary was last updated. *
* * @return The date and time that the custom vocabulary was last updated. */ public java.util.Date getLastUpdatedDateTime() { return this.lastUpdatedDateTime; } /** ** The date and time that the custom vocabulary was last updated. *
* * @param lastUpdatedDateTime * The date and time that the custom vocabulary was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCustomVocabularyMetadataResult withLastUpdatedDateTime(java.util.Date lastUpdatedDateTime) { setLastUpdatedDateTime(lastUpdatedDateTime); 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()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getLastUpdatedDateTime() != null) sb.append("LastUpdatedDateTime: ").append(getLastUpdatedDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCustomVocabularyMetadataResult == false) return false; DescribeCustomVocabularyMetadataResult other = (DescribeCustomVocabularyMetadataResult) 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; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getLastUpdatedDateTime() == null ^ this.getLastUpdatedDateTime() == null) return false; if (other.getLastUpdatedDateTime() != null && other.getLastUpdatedDateTime().equals(this.getLastUpdatedDateTime()) == 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()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDateTime() == null) ? 0 : getLastUpdatedDateTime().hashCode()); return hashCode; } @Override public DescribeCustomVocabularyMetadataResult clone() { try { return (DescribeCustomVocabularyMetadataResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }