* The SyncJob ARN. *
*/ private String arn; /** ** The date and time for the SyncJob creation. *
*/ private java.util.Date creationDateTime; /** ** The SyncJob response state. *
*/ private String state; /** ** The SyncJob ARN. *
* * @param arn * The SyncJob ARN. */ public void setArn(String arn) { this.arn = arn; } /** ** The SyncJob ARN. *
* * @return The SyncJob ARN. */ public String getArn() { return this.arn; } /** ** The SyncJob ARN. *
* * @param arn * The SyncJob ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSyncJobResult withArn(String arn) { setArn(arn); return this; } /** ** The date and time for the SyncJob creation. *
* * @param creationDateTime * The date and time for the SyncJob creation. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** ** The date and time for the SyncJob creation. *
* * @return The date and time for the SyncJob creation. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** ** The date and time for the SyncJob creation. *
* * @param creationDateTime * The date and time for the SyncJob creation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSyncJobResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** ** The SyncJob response state. *
* * @param state * The SyncJob response state. * @see SyncJobState */ public void setState(String state) { this.state = state; } /** ** The SyncJob response state. *
* * @return The SyncJob response state. * @see SyncJobState */ public String getState() { return this.state; } /** ** The SyncJob response state. *
* * @param state * The SyncJob response state. * @return Returns a reference to this object so that method calls can be chained together. * @see SyncJobState */ public CreateSyncJobResult withState(String state) { setState(state); return this; } /** ** The SyncJob response state. *
* * @param state * The SyncJob response state. * @return Returns a reference to this object so that method calls can be chained together. * @see SyncJobState */ public CreateSyncJobResult withState(SyncJobState state) { this.state = state.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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateSyncJobResult == false) return false; CreateSyncJobResult other = (CreateSyncJobResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == 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.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; } @Override public CreateSyncJobResult clone() { try { return (CreateSyncJobResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }