* The data store identifier. *
*/ private String datastoreId; /** ** The properties of the source image set. *
*/ private CopySourceImageSetProperties sourceImageSetProperties; /** ** The properties of the destination image set. *
*/ private CopyDestinationImageSetProperties destinationImageSetProperties; /** ** 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 CopyImageSetResult withDatastoreId(String datastoreId) { setDatastoreId(datastoreId); return this; } /** ** The properties of the source image set. *
* * @param sourceImageSetProperties * The properties of the source image set. */ public void setSourceImageSetProperties(CopySourceImageSetProperties sourceImageSetProperties) { this.sourceImageSetProperties = sourceImageSetProperties; } /** ** The properties of the source image set. *
* * @return The properties of the source image set. */ public CopySourceImageSetProperties getSourceImageSetProperties() { return this.sourceImageSetProperties; } /** ** The properties of the source image set. *
* * @param sourceImageSetProperties * The properties of the source image set. * @return Returns a reference to this object so that method calls can be chained together. */ public CopyImageSetResult withSourceImageSetProperties(CopySourceImageSetProperties sourceImageSetProperties) { setSourceImageSetProperties(sourceImageSetProperties); return this; } /** ** The properties of the destination image set. *
* * @param destinationImageSetProperties * The properties of the destination image set. */ public void setDestinationImageSetProperties(CopyDestinationImageSetProperties destinationImageSetProperties) { this.destinationImageSetProperties = destinationImageSetProperties; } /** ** The properties of the destination image set. *
* * @return The properties of the destination image set. */ public CopyDestinationImageSetProperties getDestinationImageSetProperties() { return this.destinationImageSetProperties; } /** ** The properties of the destination image set. *
* * @param destinationImageSetProperties * The properties of the destination image set. * @return Returns a reference to this object so that method calls can be chained together. */ public CopyImageSetResult withDestinationImageSetProperties(CopyDestinationImageSetProperties destinationImageSetProperties) { setDestinationImageSetProperties(destinationImageSetProperties); 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 (getSourceImageSetProperties() != null) sb.append("SourceImageSetProperties: ").append(getSourceImageSetProperties()).append(","); if (getDestinationImageSetProperties() != null) sb.append("DestinationImageSetProperties: ").append(getDestinationImageSetProperties()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CopyImageSetResult == false) return false; CopyImageSetResult other = (CopyImageSetResult) obj; if (other.getDatastoreId() == null ^ this.getDatastoreId() == null) return false; if (other.getDatastoreId() != null && other.getDatastoreId().equals(this.getDatastoreId()) == false) return false; if (other.getSourceImageSetProperties() == null ^ this.getSourceImageSetProperties() == null) return false; if (other.getSourceImageSetProperties() != null && other.getSourceImageSetProperties().equals(this.getSourceImageSetProperties()) == false) return false; if (other.getDestinationImageSetProperties() == null ^ this.getDestinationImageSetProperties() == null) return false; if (other.getDestinationImageSetProperties() != null && other.getDestinationImageSetProperties().equals(this.getDestinationImageSetProperties()) == 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 + ((getSourceImageSetProperties() == null) ? 0 : getSourceImageSetProperties().hashCode()); hashCode = prime * hashCode + ((getDestinationImageSetProperties() == null) ? 0 : getDestinationImageSetProperties().hashCode()); return hashCode; } @Override public CopyImageSetResult clone() { try { return (CopyImageSetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }