public TriggerPayload setFrequency(int frequency)
{
Preconditions.checkArgument(StringUtil.IsNumber(frequency.ToString()), "The frequency must be number.");
Preconditions.checkArgument((0 < frequency && frequency < 101), "The name must be the right format.");
this.periodical.setFrequency(frequency);
this.single = null;
return this;
}