Partager via


MaintenanceWindowPatchProperties Class

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

Implements

public final class MaintenanceWindowPatchProperties
implements JsonSerializable<MaintenanceWindowPatchProperties>

Maintenance window starting hour and day of week.

Constructor Summary

Constructor Description
MaintenanceWindowPatchProperties()

Creates an instance of MaintenanceWindowPatchProperties class.

Method Summary

Modifier and Type Method and Description
DayOfWeek dayOfWeek()

Get the dayOfWeek property: Day of the week.

static MaintenanceWindowPatchProperties fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowPatchProperties 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.

MaintenanceWindowPatchProperties withDayOfWeek(DayOfWeek dayOfWeek)

Set the dayOfWeek property: Day of the week.

MaintenanceWindowPatchProperties withHour(Integer hour)

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

Methods inherited from java.lang.Object

Constructor Details

MaintenanceWindowPatchProperties

public MaintenanceWindowPatchProperties()

Creates an instance of MaintenanceWindowPatchProperties class.

Method Details

dayOfWeek

public DayOfWeek dayOfWeek()

Get the dayOfWeek property: Day of the week.

Returns:

the dayOfWeek value.

fromJson

public static MaintenanceWindowPatchProperties fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowPatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MaintenanceWindowPatchProperties 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 MaintenanceWindowPatchProperties.

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 MaintenanceWindowPatchProperties withDayOfWeek(DayOfWeek dayOfWeek)

Set the dayOfWeek property: Day of the week.

Parameters:

dayOfWeek - the dayOfWeek value to set.

Returns:

the MaintenanceWindowPatchProperties object itself.

withHour

public MaintenanceWindowPatchProperties 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 MaintenanceWindowPatchProperties object itself.

Applies to