ScheduleEntry Class

  • java.lang.Object
    • com.azure.resourcemanager.redis.models.ScheduleEntry

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 ScheduleEntry class.

Method Summary

Modifier and Type Method and Description
DayOfWeek dayOfWeek()

Get the dayOfWeek property: Day of the week when a cache can be patched.

static ScheduleEntry fromJson(JsonReader jsonReader)

Reads an instance of ScheduleEntry from the JsonReader.

Duration maintenanceWindow()

Get the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.

int startHourUtc()

Get the startHourUtc property: Start hour after which cache patching can start.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScheduleEntry withDayOfWeek(DayOfWeek dayOfWeek)

Set the dayOfWeek property: Day of the week when a cache can be patched.

ScheduleEntry withMaintenanceWindow(Duration maintenanceWindow)

Set the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.

ScheduleEntry withStartHourUtc(int startHourUtc)

Set the startHourUtc property: Start hour after which cache patching can 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:

the dayOfWeek value.

fromJson

public static ScheduleEntry fromJson(JsonReader jsonReader)

Reads an instance of ScheduleEntry from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScheduleEntry if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

maintenanceWindow

public Duration maintenanceWindow()

Get the maintenanceWindow property: ISO8601 timespan specifying how much time cache patching can take.

Returns:

the maintenanceWindow value.

startHourUtc

public int startHourUtc()

Get the startHourUtc property: Start hour after which cache patching can start.

Returns:

the startHourUtc value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

dayOfWeek - the dayOfWeek value to set.

Returns:

the ScheduleEntry object itself.

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.

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.

Applies to