public TriggerPayload setTime(string time)
{
Preconditions.checkArgument(!String.IsNullOrEmpty(time), "The time must not be empty.");
Preconditions.checkArgument(StringUtil.IsTime(time), "The time must be the right format.");
this.periodical.setTime(time);
this.single = null;
return this;
}