Class Recurrence
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.Recurrence
-
public final class Recurrence extends Object
The repeating times at which this profile begins. This element is not used if the FixedDate element is used.
-
-
Constructor Summary
Constructors Constructor Description Recurrence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecurrenceFrequencyfrequency()Get the frequency property: the recurrence frequency.RecurrentScheduleschedule()Get the schedule property: the scheduling constraints for when the profile begins.voidvalidate()Validates the instance.RecurrencewithFrequency(RecurrenceFrequency frequency)Set the frequency property: the recurrence frequency.RecurrencewithSchedule(RecurrentSchedule schedule)Set the schedule property: the scheduling constraints for when the profile begins.
-
-
-
Method Detail
-
frequency
public RecurrenceFrequency frequency()
Get the frequency property: the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.- Returns:
- the frequency value.
-
withFrequency
public Recurrence withFrequency(RecurrenceFrequency frequency)
Set the frequency property: the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.- Parameters:
frequency- the frequency value to set.- Returns:
- the Recurrence object itself.
-
schedule
public RecurrentSchedule schedule()
Get the schedule property: the scheduling constraints for when the profile begins.- Returns:
- the schedule value.
-
withSchedule
public Recurrence withSchedule(RecurrentSchedule schedule)
Set the schedule property: the scheduling constraints for when the profile begins.- Parameters:
schedule- the schedule value to set.- Returns:
- the Recurrence object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-