Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.redis; import org.joda.time.Period; import com.fasterxml.jackson.annotation.JsonProperty;
Patch schedule entry for a Premium Redis Cache.
/** * Patch schedule entry for a Premium Redis Cache. */
public class ScheduleEntry {
Day of the week when a cache can be patched. Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend'.
/** * Day of the week when a cache can be patched. Possible values include: * 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', * 'Sunday', 'Everyday', 'Weekend'. */
@JsonProperty(value = "dayOfWeek", required = true) private DayOfWeek dayOfWeek;
Start hour after which cache patching can start.
/** * Start hour after which cache patching can start. */
@JsonProperty(value = "startHourUtc", required = true) private int startHourUtc;
ISO8601 timespan specifying how much time cache patching can take.
/** * ISO8601 timespan specifying how much time cache patching can take. */
@JsonProperty(value = "maintenanceWindow") private Period maintenanceWindow;
Get the dayOfWeek value.
Returns:the dayOfWeek value
/** * Get the dayOfWeek value. * * @return the dayOfWeek value */
public DayOfWeek dayOfWeek() { return this.dayOfWeek; }
Set the dayOfWeek value.
Params:
  • dayOfWeek – the dayOfWeek value to set
Returns:the ScheduleEntry object itself.
/** * Set the dayOfWeek value. * * @param dayOfWeek the dayOfWeek value to set * @return the ScheduleEntry object itself. */
public ScheduleEntry withDayOfWeek(DayOfWeek dayOfWeek) { this.dayOfWeek = dayOfWeek; return this; }
Get the startHourUtc value.
Returns:the startHourUtc value
/** * Get the startHourUtc value. * * @return the startHourUtc value */
public int startHourUtc() { return this.startHourUtc; }
Set the startHourUtc value.
Params:
  • startHourUtc – the startHourUtc value to set
Returns:the ScheduleEntry object itself.
/** * Set the startHourUtc value. * * @param startHourUtc the startHourUtc value to set * @return the ScheduleEntry object itself. */
public ScheduleEntry withStartHourUtc(int startHourUtc) { this.startHourUtc = startHourUtc; return this; }
Get the maintenanceWindow value.
Returns:the maintenanceWindow value
/** * Get the maintenanceWindow value. * * @return the maintenanceWindow value */
public Period maintenanceWindow() { return this.maintenanceWindow; }
Set the maintenanceWindow value.
Params:
  • maintenanceWindow – the maintenanceWindow value to set
Returns:the ScheduleEntry object itself.
/** * Set the maintenanceWindow value. * * @param maintenanceWindow the maintenanceWindow value to set * @return the ScheduleEntry object itself. */
public ScheduleEntry withMaintenanceWindow(Period maintenanceWindow) { this.maintenanceWindow = maintenanceWindow; return this; } }