/**
  * The snapshot type.
  *
  * @param type The snapshot type.
  * @return Returns a reference to this object so that method calls can be chained together.
  * @see SnapshotType
  */
 public Snapshot withType(SnapshotType type) {
   setType(type);
   return this;
 }