ScheduleEntry Class
- java.
lang. Object - com.
azure. resourcemanager. redis. models. ScheduleEntry
- com.
Implements
public final class ScheduleEntry
implements JsonSerializable<ScheduleEntry>
Patch schedule entry for a Premium Redis Cache.
Constructor Summary
Constructor | Description |
---|---|
ScheduleEntry() |
Creates an instance of Schedule |
Method Summary
Modifier and Type | Method and Description |
---|---|
Day |
dayOfWeek()
Get the day |
static
Schedule |
fromJson(JsonReader jsonReader)
Reads an instance of Schedule |
Duration |
maintenanceWindow()
Get the maintenance |
int |
startHourUtc()
Get the start |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Schedule |
withDayOfWeek(DayOfWeek dayOfWeek)
Set the day |
Schedule |
withMaintenanceWindow(Duration maintenanceWindow)
Set the maintenance |
Schedule |
withStartHourUtc(int startHourUtc)
Set the start |
Methods inherited from java.lang.Object
Constructor Details
ScheduleEntry
public ScheduleEntry()
Creates an instance of ScheduleEntry class.
Method Details
dayOfWeek
public DayOfWeek dayOfWeek()
Get the dayOfWeek property: Day of the week when a cache can be patched.
Returns:
fromJson
public static ScheduleEntry fromJson(JsonReader jsonReader)
Reads an instance of ScheduleEntry from the JsonReader.
Parameters:
Returns:
Throws:
maintenanceWindow
public Duration maintenanceWindow()
Get the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.
Returns:
startHourUtc
public int startHourUtc()
Get the startHourUtc property: Start hour after which cache patching can start.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDayOfWeek
public ScheduleEntry withDayOfWeek(DayOfWeek dayOfWeek)
Set the dayOfWeek property: Day of the week when a cache can be patched.
Parameters:
Returns:
withMaintenanceWindow
public ScheduleEntry withMaintenanceWindow(Duration maintenanceWindow)
Set the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.
Parameters:
Returns:
withStartHourUtc
public ScheduleEntry withStartHourUtc(int startHourUtc)
Set the startHourUtc property: Start hour after which cache patching can start.
Parameters:
Returns:
Applies to
Azure SDK for Java