* The ID of the WirelessGatewayTaskDefinition. *
*/ private String wirelessGatewayTaskDefinitionId; /** ** The status of the request. *
*/ private String status; /** ** The ID of the WirelessGatewayTaskDefinition. *
* * @param wirelessGatewayTaskDefinitionId * The ID of the WirelessGatewayTaskDefinition. */ public void setWirelessGatewayTaskDefinitionId(String wirelessGatewayTaskDefinitionId) { this.wirelessGatewayTaskDefinitionId = wirelessGatewayTaskDefinitionId; } /** ** The ID of the WirelessGatewayTaskDefinition. *
* * @return The ID of the WirelessGatewayTaskDefinition. */ public String getWirelessGatewayTaskDefinitionId() { return this.wirelessGatewayTaskDefinitionId; } /** ** The ID of the WirelessGatewayTaskDefinition. *
* * @param wirelessGatewayTaskDefinitionId * The ID of the WirelessGatewayTaskDefinition. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWirelessGatewayTaskResult withWirelessGatewayTaskDefinitionId(String wirelessGatewayTaskDefinitionId) { setWirelessGatewayTaskDefinitionId(wirelessGatewayTaskDefinitionId); return this; } /** ** The status of the request. *
* * @param status * The status of the request. * @see WirelessGatewayTaskStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the request. *
* * @return The status of the request. * @see WirelessGatewayTaskStatus */ public String getStatus() { return this.status; } /** ** The status of the request. *
* * @param status * The status of the request. * @return Returns a reference to this object so that method calls can be chained together. * @see WirelessGatewayTaskStatus */ public CreateWirelessGatewayTaskResult withStatus(String status) { setStatus(status); return this; } /** ** The status of the request. *
* * @param status * The status of the request. * @return Returns a reference to this object so that method calls can be chained together. * @see WirelessGatewayTaskStatus */ public CreateWirelessGatewayTaskResult withStatus(WirelessGatewayTaskStatus status) { this.status = status.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 (getWirelessGatewayTaskDefinitionId() != null) sb.append("WirelessGatewayTaskDefinitionId: ").append(getWirelessGatewayTaskDefinitionId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateWirelessGatewayTaskResult == false) return false; CreateWirelessGatewayTaskResult other = (CreateWirelessGatewayTaskResult) obj; if (other.getWirelessGatewayTaskDefinitionId() == null ^ this.getWirelessGatewayTaskDefinitionId() == null) return false; if (other.getWirelessGatewayTaskDefinitionId() != null && other.getWirelessGatewayTaskDefinitionId().equals(this.getWirelessGatewayTaskDefinitionId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWirelessGatewayTaskDefinitionId() == null) ? 0 : getWirelessGatewayTaskDefinitionId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public CreateWirelessGatewayTaskResult clone() { try { return (CreateWirelessGatewayTaskResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }