* The bot identifier specified in the request. *
*/ private String botId; /** ** The description of the version specified in the request. *
*/ private String description; /** ** The version number assigned to the version. *
*/ private String botVersion; /** ** The source versions used for each locale in the new version. *
*/ private java.util.Map
* When you send a request to create or update a bot, Amazon Lex sets the status response element to
* Creating
. After Amazon Lex builds the bot, it sets status to Available
. If Amazon Lex
* can't build the bot, it sets status to Failed
.
*
* A timestamp of the date and time that the version was created. *
*/ private java.util.Date creationDateTime; /** ** The bot identifier specified in the request. *
* * @param botId * The bot identifier specified in the request. */ public void setBotId(String botId) { this.botId = botId; } /** ** The bot identifier specified in the request. *
* * @return The bot identifier specified in the request. */ public String getBotId() { return this.botId; } /** ** The bot identifier specified in the request. *
* * @param botId * The bot identifier specified in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotVersionResult withBotId(String botId) { setBotId(botId); return this; } /** ** The description of the version specified in the request. *
* * @param description * The description of the version specified in the request. */ public void setDescription(String description) { this.description = description; } /** ** The description of the version specified in the request. *
* * @return The description of the version specified in the request. */ public String getDescription() { return this.description; } /** ** The description of the version specified in the request. *
* * @param description * The description of the version specified in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotVersionResult withDescription(String description) { setDescription(description); return this; } /** ** The version number assigned to the version. *
* * @param botVersion * The version number assigned to the version. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** ** The version number assigned to the version. *
* * @return The version number assigned to the version. */ public String getBotVersion() { return this.botVersion; } /** ** The version number assigned to the version. *
* * @param botVersion * The version number assigned to the version. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotVersionResult withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** ** The source versions used for each locale in the new version. *
* * @return The source versions used for each locale in the new version. */ public java.util.Map* The source versions used for each locale in the new version. *
* * @param botVersionLocaleSpecification * The source versions used for each locale in the new version. */ public void setBotVersionLocaleSpecification(java.util.Map* The source versions used for each locale in the new version. *
* * @param botVersionLocaleSpecification * The source versions used for each locale in the new version. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotVersionResult withBotVersionLocaleSpecification(java.util.Map
* When you send a request to create or update a bot, Amazon Lex sets the status response element to
* Creating
. After Amazon Lex builds the bot, it sets status to Available
. If Amazon Lex
* can't build the bot, it sets status to Failed
.
*
Creating
. After Amazon Lex builds the bot, it sets status to Available
. If
* Amazon Lex can't build the bot, it sets status to Failed
.
* @see BotStatus
*/
public void setBotStatus(String botStatus) {
this.botStatus = botStatus;
}
/**
*
* When you send a request to create or update a bot, Amazon Lex sets the status response element to
* Creating
. After Amazon Lex builds the bot, it sets status to Available
. If Amazon Lex
* can't build the bot, it sets status to Failed
.
*
Creating
. After Amazon Lex builds the bot, it sets status to Available
. If
* Amazon Lex can't build the bot, it sets status to Failed
.
* @see BotStatus
*/
public String getBotStatus() {
return this.botStatus;
}
/**
*
* When you send a request to create or update a bot, Amazon Lex sets the status response element to
* Creating
. After Amazon Lex builds the bot, it sets status to Available
. If Amazon Lex
* can't build the bot, it sets status to Failed
.
*
Creating
. After Amazon Lex builds the bot, it sets status to Available
. If
* Amazon Lex can't build the bot, it sets status to Failed
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BotStatus
*/
public CreateBotVersionResult withBotStatus(String botStatus) {
setBotStatus(botStatus);
return this;
}
/**
*
* When you send a request to create or update a bot, Amazon Lex sets the status response element to
* Creating
. After Amazon Lex builds the bot, it sets status to Available
. If Amazon Lex
* can't build the bot, it sets status to Failed
.
*
Creating
. After Amazon Lex builds the bot, it sets status to Available
. If
* Amazon Lex can't build the bot, it sets status to Failed
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BotStatus
*/
public CreateBotVersionResult withBotStatus(BotStatus botStatus) {
this.botStatus = botStatus.toString();
return this;
}
/**
* * A timestamp of the date and time that the version was created. *
* * @param creationDateTime * A timestamp of the date and time that the version was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** ** A timestamp of the date and time that the version was created. *
* * @return A timestamp of the date and time that the version was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** ** A timestamp of the date and time that the version was created. *
* * @param creationDateTime * A timestamp of the date and time that the version was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotVersionResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); 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 (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getBotVersion() != null) sb.append("BotVersion: ").append(getBotVersion()).append(","); if (getBotVersionLocaleSpecification() != null) sb.append("BotVersionLocaleSpecification: ").append(getBotVersionLocaleSpecification()).append(","); if (getBotStatus() != null) sb.append("BotStatus: ").append(getBotStatus()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateBotVersionResult == false) return false; CreateBotVersionResult other = (CreateBotVersionResult) obj; if (other.getBotId() == null ^ this.getBotId() == null) return false; if (other.getBotId() != null && other.getBotId().equals(this.getBotId()) == 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.getBotVersion() == null ^ this.getBotVersion() == null) return false; if (other.getBotVersion() != null && other.getBotVersion().equals(this.getBotVersion()) == false) return false; if (other.getBotVersionLocaleSpecification() == null ^ this.getBotVersionLocaleSpecification() == null) return false; if (other.getBotVersionLocaleSpecification() != null && other.getBotVersionLocaleSpecification().equals(this.getBotVersionLocaleSpecification()) == false) return false; if (other.getBotStatus() == null ^ this.getBotStatus() == null) return false; if (other.getBotStatus() != null && other.getBotStatus().equals(this.getBotStatus()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == 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 + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getBotVersion() == null) ? 0 : getBotVersion().hashCode()); hashCode = prime * hashCode + ((getBotVersionLocaleSpecification() == null) ? 0 : getBotVersionLocaleSpecification().hashCode()); hashCode = prime * hashCode + ((getBotStatus() == null) ? 0 : getBotStatus().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); return hashCode; } @Override public CreateBotVersionResult clone() { try { return (CreateBotVersionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }