public Periodical setTime_unit(string time_unit)
{
Preconditions.checkArgument(!String.IsNullOrEmpty(time_unit), "The time_unit must not be empty.");
Preconditions.checkArgument(StringUtil.IsTimeunit(time_unit), "The time_unit must be the right format.");
this.time_unit = time_unit;
return this;
}