@NotThreadSafe public static final class ImmutableSchedulingPolicy.Builder extends Object
ImmutableSchedulingPolicy.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final ImmutableSchedulingPolicy.Builder from(SchedulingPolicy instance)
SchedulingPolicy instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableSchedulingPolicy.Builder continuousSchedule(ContinuousSchedule continuousSchedule)
continuousSchedule to continuousSchedule.continuousSchedule - The value for continuousSchedulethis builder for chained invocationpublic final ImmutableSchedulingPolicy.Builder continuousSchedule(Optional<? extends ContinuousSchedule> continuousSchedule)
continuousSchedule to continuousSchedule.continuousSchedule - The value for continuousSchedulethis builder for use in a chained invocationpublic final ImmutableSchedulingPolicy.Builder dailySchedule(DailySchedule dailySchedule)
dailySchedule to dailySchedule.dailySchedule - The value for dailySchedulethis builder for chained invocationpublic final ImmutableSchedulingPolicy.Builder dailySchedule(Optional<? extends DailySchedule> dailySchedule)
dailySchedule to dailySchedule.dailySchedule - The value for dailySchedulethis builder for use in a chained invocationpublic final ImmutableSchedulingPolicy.Builder monthlySchedule(MonthlySchedule monthlySchedule)
monthlySchedule to monthlySchedule.monthlySchedule - The value for monthlySchedulethis builder for chained invocationpublic final ImmutableSchedulingPolicy.Builder monthlySchedule(Optional<? extends MonthlySchedule> monthlySchedule)
monthlySchedule to monthlySchedule.monthlySchedule - The value for monthlySchedulethis builder for use in a chained invocationpublic final ImmutableSchedulingPolicy.Builder periodicity(Periodicity periodicity)
periodicity attribute.periodicity - The value for periodicitythis builder for use in a chained invocationpublic ImmutableSchedulingPolicy build()
ImmutableSchedulingPolicy.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.