MaintenanceWindowProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowProperties

Implements

public final class MaintenanceWindowProperties
implements JsonSerializable<MaintenanceWindowProperties>

Maintenance window starting hour and day of week.

Constructor Summary

Constructor Description
MaintenanceWindowProperties()

Creates an instance of MaintenanceWindowProperties class.

Method Summary

Modifier and Type Method and Description
DayOfWeek dayOfWeek()

Get the dayOfWeek property: Day of the week.

static MaintenanceWindowProperties fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowProperties from the JsonReader.

Integer hour()

Get the hour property: The update start hour of the day.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MaintenanceWindowProperties withDayOfWeek(DayOfWeek dayOfWeek)

Set the dayOfWeek property: Day of the week.

MaintenanceWindowProperties withHour(Integer hour)

Set the hour property: The update start hour of the day.

Methods inherited from java.lang.Object

Constructor Details

MaintenanceWindowProperties

public MaintenanceWindowProperties()

Creates an instance of MaintenanceWindowProperties class.

Method Details

dayOfWeek

public DayOfWeek dayOfWeek()

Get the dayOfWeek property: Day of the week.

Returns:

the dayOfWeek value.

fromJson

public static MaintenanceWindowProperties fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the MaintenanceWindowProperties.

hour

public Integer hour()

Get the hour property: The update start hour of the day. (0 - 23).

Returns:

the hour value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDayOfWeek

public MaintenanceWindowProperties withDayOfWeek(DayOfWeek dayOfWeek)

Set the dayOfWeek property: Day of the week.

Parameters:

dayOfWeek - the dayOfWeek value to set.

Returns:

the MaintenanceWindowProperties object itself.

withHour

public MaintenanceWindowProperties withHour(Integer hour)

Set the hour property: The update start hour of the day. (0 - 23).

Parameters:

hour - the hour value to set.

Returns:

the MaintenanceWindowProperties object itself.

Applies to