Recurrence Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. Recurrence
- com.
Implements
public final class Recurrence
implements JsonSerializable<Recurrence>
The repeating times at which this profile begins. This element is not used if the FixedDate element is used.
Constructor Summary
Constructor | Description |
---|---|
Recurrence() |
Creates an instance of Recurrence class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Recurrence |
frequency()
Get the frequency property: the recurrence frequency. |
static Recurrence |
fromJson(JsonReader jsonReader)
Reads an instance of Recurrence from the Json |
Recurrent |
schedule()
Get the schedule property: the scheduling constraints for when the profile begins. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Recurrence |
withFrequency(RecurrenceFrequency frequency)
Set the frequency property: the recurrence frequency. |
Recurrence |
withSchedule(RecurrentSchedule schedule)
Set the schedule property: the scheduling constraints for when the profile begins. |
Methods inherited from java.lang.Object
Constructor Details
Recurrence
public Recurrence()
Creates an instance of Recurrence class.
Method Details
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:
fromJson
public static Recurrence fromJson(JsonReader jsonReader)
Reads an instance of Recurrence from the JsonReader.
Parameters:
Returns:
Throws:
schedule
public RecurrentSchedule schedule()
Get the schedule property: the scheduling constraints for when the profile begins.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withSchedule
public Recurrence withSchedule(RecurrentSchedule schedule)
Set the schedule property: the scheduling constraints for when the profile begins.
Parameters:
Returns:
Applies to
Azure SDK for Java