* The ID of the entity. *
*/ private String entityId; /** ** The ARN of the entity. *
*/ private String arn; /** ** The date and time when the entity was created. *
*/ private java.util.Date creationDateTime; /** ** The current state of the entity. *
*/ private String state; /** ** The ID of the entity. *
* * @param entityId * The ID of the entity. */ public void setEntityId(String entityId) { this.entityId = entityId; } /** ** The ID of the entity. *
* * @return The ID of the entity. */ public String getEntityId() { return this.entityId; } /** ** The ID of the entity. *
* * @param entityId * The ID of the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEntityResult withEntityId(String entityId) { setEntityId(entityId); return this; } /** ** The ARN of the entity. *
* * @param arn * The ARN of the entity. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the entity. *
* * @return The ARN of the entity. */ public String getArn() { return this.arn; } /** ** The ARN of the entity. *
* * @param arn * The ARN of the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEntityResult withArn(String arn) { setArn(arn); return this; } /** ** The date and time when the entity was created. *
* * @param creationDateTime * The date and time when the entity was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** ** The date and time when the entity was created. *
* * @return The date and time when the entity was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** ** The date and time when the entity was created. *
* * @param creationDateTime * The date and time when the entity was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEntityResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** ** The current state of the entity. *
* * @param state * The current state of the entity. * @see State */ public void setState(String state) { this.state = state; } /** ** The current state of the entity. *
* * @return The current state of the entity. * @see State */ public String getState() { return this.state; } /** ** The current state of the entity. *
* * @param state * The current state of the entity. * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public CreateEntityResult withState(String state) { setState(state); return this; } /** ** The current state of the entity. *
* * @param state * The current state of the entity. * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public CreateEntityResult withState(State 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 (getEntityId() != null) sb.append("EntityId: ").append(getEntityId()).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 CreateEntityResult == false) return false; CreateEntityResult other = (CreateEntityResult) obj; if (other.getEntityId() == null ^ this.getEntityId() == null) return false; if (other.getEntityId() != null && other.getEntityId().equals(this.getEntityId()) == false) return false; 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 + ((getEntityId() == null) ? 0 : getEntityId().hashCode()); 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 CreateEntityResult clone() { try { return (CreateEntityResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }