* @return a reference to enable cascade calls
* @throws UPInvalidParameterException if hour is null or is less then the current hour
*/
public final UPDateTime setHour(final Integer hour) throws UPInvalidParameterException {
if (hour==null) {
throw new UPInvalidParameterException("Hour can not be a null value");
} else if (hour<Integer.valueOf(this.hour)) {
throw new UPInvalidParameterException("Hour cannot be less then the current hour");
}
this.hour = String.valueOf(hour);
return this;
}