* The unique identifier of the bot alias to delete. *
*/ private String botAliasId; /** ** The unique identifier of the bot that contains the alias to delete. *
*/ private String botId; /** *
* The current status of the alias. The status is Deleting
while the alias is in the process of being
* deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the
* ListBotAliases
operation.
*
* The unique identifier of the bot alias to delete. *
* * @param botAliasId * The unique identifier of the bot alias to delete. */ public void setBotAliasId(String botAliasId) { this.botAliasId = botAliasId; } /** ** The unique identifier of the bot alias to delete. *
* * @return The unique identifier of the bot alias to delete. */ public String getBotAliasId() { return this.botAliasId; } /** ** The unique identifier of the bot alias to delete. *
* * @param botAliasId * The unique identifier of the bot alias to delete. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteBotAliasResult withBotAliasId(String botAliasId) { setBotAliasId(botAliasId); return this; } /** ** The unique identifier of the bot that contains the alias to delete. *
* * @param botId * The unique identifier of the bot that contains the alias to delete. */ public void setBotId(String botId) { this.botId = botId; } /** ** The unique identifier of the bot that contains the alias to delete. *
* * @return The unique identifier of the bot that contains the alias to delete. */ public String getBotId() { return this.botId; } /** ** The unique identifier of the bot that contains the alias to delete. *
* * @param botId * The unique identifier of the bot that contains the alias to delete. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteBotAliasResult withBotId(String botId) { setBotId(botId); return this; } /** *
* The current status of the alias. The status is Deleting
while the alias is in the process of being
* deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the
* ListBotAliases
operation.
*
Deleting
while the alias is in the process of
* being deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the
* ListBotAliases
operation.
* @see BotAliasStatus
*/
public void setBotAliasStatus(String botAliasStatus) {
this.botAliasStatus = botAliasStatus;
}
/**
*
* The current status of the alias. The status is Deleting
while the alias is in the process of being
* deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the
* ListBotAliases
operation.
*
Deleting
while the alias is in the process of
* being deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the
* ListBotAliases
operation.
* @see BotAliasStatus
*/
public String getBotAliasStatus() {
return this.botAliasStatus;
}
/**
*
* The current status of the alias. The status is Deleting
while the alias is in the process of being
* deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the
* ListBotAliases
operation.
*
Deleting
while the alias is in the process of
* being deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the
* ListBotAliases
operation.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BotAliasStatus
*/
public DeleteBotAliasResult withBotAliasStatus(String botAliasStatus) {
setBotAliasStatus(botAliasStatus);
return this;
}
/**
*
* The current status of the alias. The status is Deleting
while the alias is in the process of being
* deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the
* ListBotAliases
operation.
*
Deleting
while the alias is in the process of
* being deleted. Once the alias is deleted, it will no longer appear in the list of aliases returned by the
* ListBotAliases
operation.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BotAliasStatus
*/
public DeleteBotAliasResult withBotAliasStatus(BotAliasStatus botAliasStatus) {
this.botAliasStatus = botAliasStatus.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 (getBotAliasId() != null)
sb.append("BotAliasId: ").append(getBotAliasId()).append(",");
if (getBotId() != null)
sb.append("BotId: ").append(getBotId()).append(",");
if (getBotAliasStatus() != null)
sb.append("BotAliasStatus: ").append(getBotAliasStatus());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteBotAliasResult == false)
return false;
DeleteBotAliasResult other = (DeleteBotAliasResult) obj;
if (other.getBotAliasId() == null ^ this.getBotAliasId() == null)
return false;
if (other.getBotAliasId() != null && other.getBotAliasId().equals(this.getBotAliasId()) == 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.getBotAliasStatus() == null ^ this.getBotAliasStatus() == null)
return false;
if (other.getBotAliasStatus() != null && other.getBotAliasStatus().equals(this.getBotAliasStatus()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBotAliasId() == null) ? 0 : getBotAliasId().hashCode());
hashCode = prime * hashCode + ((getBotId() == null) ? 0 : getBotId().hashCode());
hashCode = prime * hashCode + ((getBotAliasStatus() == null) ? 0 : getBotAliasStatus().hashCode());
return hashCode;
}
@Override
public DeleteBotAliasResult clone() {
try {
return (DeleteBotAliasResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}