Class ScheduleEntry
java.lang.Object
com.azure.resourcemanager.redis.models.ScheduleEntry
Patch schedule entry for a Premium Redis Cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dayOfWeek property: Day of the week when a cache can be patched.Get the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.intGet the startHourUtc property: Start hour after which cache patching can start.voidvalidate()Validates the instance.withDayOfWeek(DayOfWeek dayOfWeek) Set the dayOfWeek property: Day of the week when a cache can be patched.withMaintenanceWindow(Duration maintenanceWindow) Set the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.withStartHourUtc(int startHourUtc) Set the startHourUtc property: Start hour after which cache patching can start.
-
Constructor Details
-
ScheduleEntry
public ScheduleEntry()Creates an instance of ScheduleEntry class.
-
-
Method Details
-
dayOfWeek
Get the dayOfWeek property: Day of the week when a cache can be patched.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
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
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
Get the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.- Returns:
- the maintenanceWindow value.
-
withMaintenanceWindow
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.
-