Class Schedule
java.lang.Object
com.azure.resourcemanager.alertsmanagement.models.Schedule
Scheduling configuration for a given alert processing rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the effectiveFrom property: Scheduling effective from time.Get the effectiveUntil property: Scheduling effective until time.Get the recurrences property: List of recurrences.timeZone()
Get the timeZone property: Scheduling time zone.void
validate()
Validates the instance.withEffectiveFrom
(String effectiveFrom) Set the effectiveFrom property: Scheduling effective from time.withEffectiveUntil
(String effectiveUntil) Set the effectiveUntil property: Scheduling effective until time.withRecurrences
(List<Recurrence> recurrences) Set the recurrences property: List of recurrences.withTimeZone
(String timeZone) Set the timeZone property: Scheduling time zone.
-
Constructor Details
-
Schedule
public Schedule()
-
-
Method Details
-
effectiveFrom
Get the effectiveFrom property: Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.- Returns:
- the effectiveFrom value.
-
withEffectiveFrom
Set the effectiveFrom property: Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.- Parameters:
effectiveFrom
- the effectiveFrom value to set.- Returns:
- the Schedule object itself.
-
effectiveUntil
Get the effectiveUntil property: Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.- Returns:
- the effectiveUntil value.
-
withEffectiveUntil
Set the effectiveUntil property: Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.- Parameters:
effectiveUntil
- the effectiveUntil value to set.- Returns:
- the Schedule object itself.
-
timeZone
Get the timeZone property: Scheduling time zone.- Returns:
- the timeZone value.
-
withTimeZone
Set the timeZone property: Scheduling time zone.- Parameters:
timeZone
- the timeZone value to set.- Returns:
- the Schedule object itself.
-
recurrences
Get the recurrences property: List of recurrences.- Returns:
- the recurrences value.
-
withRecurrences
Set the recurrences property: List of recurrences.- Parameters:
recurrences
- the recurrences value to set.- Returns:
- the Schedule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-