public Node withWantToRetire(boolean wantToRetire, boolean wantToDeprovision, Agent agent, Instant at) {
        return withWantToRetire(wantToRetire, wantToDeprovision, status.wantToRebuild(), status.bootingAfterRebuild(), status.wantToUpgradeFlavor(), agent, at);
    }
Returns a copy of this node with wantToRetire and wantToDeprovision set to the given values and updated history.

If both given wantToRetire and wantToDeprovision are equal to the current values, the method is no-op.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java