* The data store identifier. *
*/ private String datastoreId; /** ** The data store status. *
*/ private String datastoreStatus; /** ** The data store identifier. *
* * @param datastoreId * The data store identifier. */ public void setDatastoreId(String datastoreId) { this.datastoreId = datastoreId; } /** ** The data store identifier. *
* * @return The data store identifier. */ public String getDatastoreId() { return this.datastoreId; } /** ** The data store identifier. *
* * @param datastoreId * The data store identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatastoreResult withDatastoreId(String datastoreId) { setDatastoreId(datastoreId); return this; } /** ** The data store status. *
* * @param datastoreStatus * The data store status. * @see DatastoreStatus */ public void setDatastoreStatus(String datastoreStatus) { this.datastoreStatus = datastoreStatus; } /** ** The data store status. *
* * @return The data store status. * @see DatastoreStatus */ public String getDatastoreStatus() { return this.datastoreStatus; } /** ** The data store status. *
* * @param datastoreStatus * The data store status. * @return Returns a reference to this object so that method calls can be chained together. * @see DatastoreStatus */ public CreateDatastoreResult withDatastoreStatus(String datastoreStatus) { setDatastoreStatus(datastoreStatus); return this; } /** ** The data store status. *
* * @param datastoreStatus * The data store status. * @return Returns a reference to this object so that method calls can be chained together. * @see DatastoreStatus */ public CreateDatastoreResult withDatastoreStatus(DatastoreStatus datastoreStatus) { this.datastoreStatus = datastoreStatus.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 (getDatastoreId() != null) sb.append("DatastoreId: ").append(getDatastoreId()).append(","); if (getDatastoreStatus() != null) sb.append("DatastoreStatus: ").append(getDatastoreStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDatastoreResult == false) return false; CreateDatastoreResult other = (CreateDatastoreResult) obj; if (other.getDatastoreId() == null ^ this.getDatastoreId() == null) return false; if (other.getDatastoreId() != null && other.getDatastoreId().equals(this.getDatastoreId()) == false) return false; if (other.getDatastoreStatus() == null ^ this.getDatastoreStatus() == null) return false; if (other.getDatastoreStatus() != null && other.getDatastoreStatus().equals(this.getDatastoreStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDatastoreId() == null) ? 0 : getDatastoreId().hashCode()); hashCode = prime * hashCode + ((getDatastoreStatus() == null) ? 0 : getDatastoreStatus().hashCode()); return hashCode; } @Override public CreateDatastoreResult clone() { try { return (CreateDatastoreResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }