* The ID of the maintenance window the target was removed from. *
*/ private String windowId; /** ** The ID of the removed target definition. *
*/ private String windowTargetId; /** ** The ID of the maintenance window the target was removed from. *
* * @param windowId * The ID of the maintenance window the target was removed from. */ public void setWindowId(String windowId) { this.windowId = windowId; } /** ** The ID of the maintenance window the target was removed from. *
* * @return The ID of the maintenance window the target was removed from. */ public String getWindowId() { return this.windowId; } /** ** The ID of the maintenance window the target was removed from. *
* * @param windowId * The ID of the maintenance window the target was removed from. * @return Returns a reference to this object so that method calls can be chained together. */ public DeregisterTargetFromMaintenanceWindowResult withWindowId(String windowId) { setWindowId(windowId); return this; } /** ** The ID of the removed target definition. *
* * @param windowTargetId * The ID of the removed target definition. */ public void setWindowTargetId(String windowTargetId) { this.windowTargetId = windowTargetId; } /** ** The ID of the removed target definition. *
* * @return The ID of the removed target definition. */ public String getWindowTargetId() { return this.windowTargetId; } /** ** The ID of the removed target definition. *
* * @param windowTargetId * The ID of the removed target definition. * @return Returns a reference to this object so that method calls can be chained together. */ public DeregisterTargetFromMaintenanceWindowResult withWindowTargetId(String windowTargetId) { setWindowTargetId(windowTargetId); 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 (getWindowId() != null) sb.append("WindowId: ").append(getWindowId()).append(","); if (getWindowTargetId() != null) sb.append("WindowTargetId: ").append(getWindowTargetId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeregisterTargetFromMaintenanceWindowResult == false) return false; DeregisterTargetFromMaintenanceWindowResult other = (DeregisterTargetFromMaintenanceWindowResult) obj; if (other.getWindowId() == null ^ this.getWindowId() == null) return false; if (other.getWindowId() != null && other.getWindowId().equals(this.getWindowId()) == false) return false; if (other.getWindowTargetId() == null ^ this.getWindowTargetId() == null) return false; if (other.getWindowTargetId() != null && other.getWindowTargetId().equals(this.getWindowTargetId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWindowId() == null) ? 0 : getWindowId().hashCode()); hashCode = prime * hashCode + ((getWindowTargetId() == null) ? 0 : getWindowTargetId().hashCode()); return hashCode; } @Override public DeregisterTargetFromMaintenanceWindowResult clone() { try { return (DeregisterTargetFromMaintenanceWindowResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }