Class ScheduleEntry
- java.lang.Object
-
- com.azure.resourcemanager.redis.models.ScheduleEntry
-
public final class ScheduleEntry extends Object
Patch schedule entry for a Premium Redis Cache.
-
-
Constructor Summary
Constructors Constructor Description ScheduleEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DayOfWeekdayOfWeek()Get the dayOfWeek property: Day of the week when a cache can be patched.DurationmaintenanceWindow()Get the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.intstartHourUtc()Get the startHourUtc property: Start hour after which cache patching can start.voidvalidate()Validates the instance.ScheduleEntrywithDayOfWeek(DayOfWeek dayOfWeek)Set the dayOfWeek property: Day of the week when a cache can be patched.ScheduleEntrywithMaintenanceWindow(Duration maintenanceWindow)Set the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.ScheduleEntrywithStartHourUtc(int startHourUtc)Set the startHourUtc property: Start hour after which cache patching can start.
-
-
-
Method Detail
-
dayOfWeek
public DayOfWeek dayOfWeek()
Get the dayOfWeek property: Day of the week when a cache can be patched.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
public ScheduleEntry withDayOfWeek(DayOfWeek dayOfWeek)
Set the dayOfWeek property: Day of the week when a cache can be patched.- Parameters:
dayOfWeek- the dayOfWeek value to set.- Returns:
- the ScheduleEntry object itself.
-
startHourUtc
public int startHourUtc()
Get the startHourUtc property: Start hour after which cache patching can start.- Returns:
- the startHourUtc value.
-
withStartHourUtc
public ScheduleEntry withStartHourUtc(int startHourUtc)
Set the startHourUtc property: Start hour after which cache patching can start.- Parameters:
startHourUtc- the startHourUtc value to set.- Returns:
- the ScheduleEntry object itself.
-
maintenanceWindow
public Duration maintenanceWindow()
Get the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.- Returns:
- the maintenanceWindow value.
-
withMaintenanceWindow
public ScheduleEntry withMaintenanceWindow(Duration maintenanceWindow)
Set the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.- Parameters:
maintenanceWindow- the maintenanceWindow value to set.- Returns:
- the ScheduleEntry object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-