/** * The snapshot state. * * <p>Returns a reference to this object so that method calls can be chained together. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>pending, completed, error * * @param state The snapshot state. * @return A reference to this updated object so that method calls can be chained together. * @see SnapshotState */ public Snapshot withState(SnapshotState state) { this.state = state.toString(); return this; }
/** * The snapshot state. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>pending, completed, error * * @param state The snapshot state. * @see SnapshotState */ public void setState(SnapshotState state) { this.state = state.toString(); }