Partager via


AgentUpdatePatchProperties Class

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

Implements

public final class AgentUpdatePatchProperties
implements JsonSerializable<AgentUpdatePatchProperties>

The session host configuration for updating agent, monitoring agent, and stack component.

Constructor Summary

Constructor Description
AgentUpdatePatchProperties()

Creates an instance of AgentUpdatePatchProperties class.

Method Summary

Modifier and Type Method and Description
static AgentUpdatePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of AgentUpdatePatchProperties from the JsonReader.

List<MaintenanceWindowPatchProperties> maintenanceWindows()

Get the maintenanceWindows property: List of maintenance windows.

String maintenanceWindowTimeZone()

Get the maintenanceWindowTimeZone property: Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0.

JsonWriter toJson(JsonWriter jsonWriter)
SessionHostComponentUpdateType type()

Get the type property: The type of maintenance for session host components.

Boolean useSessionHostLocalTime()

Get the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.

void validate()

Validates the instance.

AgentUpdatePatchProperties withMaintenanceWindows(List<MaintenanceWindowPatchProperties> maintenanceWindows)

Set the maintenanceWindows property: List of maintenance windows.

AgentUpdatePatchProperties withMaintenanceWindowTimeZone(String maintenanceWindowTimeZone)

Set the maintenanceWindowTimeZone property: Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0.

AgentUpdatePatchProperties withType(SessionHostComponentUpdateType type)

Set the type property: The type of maintenance for session host components.

AgentUpdatePatchProperties withUseSessionHostLocalTime(Boolean useSessionHostLocalTime)

Set the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.

Methods inherited from java.lang.Object

Constructor Details

AgentUpdatePatchProperties

public AgentUpdatePatchProperties()

Creates an instance of AgentUpdatePatchProperties class.

Method Details

fromJson

public static AgentUpdatePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of AgentUpdatePatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maintenanceWindows

public List<MaintenanceWindowPatchProperties> maintenanceWindows()

Get the maintenanceWindows property: List of maintenance windows. Maintenance windows are 2 hours long.

Returns:

the maintenanceWindows value.

maintenanceWindowTimeZone

public String maintenanceWindowTimeZone()

Get the maintenanceWindowTimeZone property: Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true.

Returns:

the maintenanceWindowTimeZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public SessionHostComponentUpdateType type()

Get the type property: The type of maintenance for session host components.

Returns:

the type value.

useSessionHostLocalTime

public Boolean useSessionHostLocalTime()

Get the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.

Returns:

the useSessionHostLocalTime value.

validate

public void validate()

Validates the instance.

withMaintenanceWindows

public AgentUpdatePatchProperties withMaintenanceWindows(List<MaintenanceWindowPatchProperties> maintenanceWindows)

Set the maintenanceWindows property: List of maintenance windows. Maintenance windows are 2 hours long.

Parameters:

maintenanceWindows - the maintenanceWindows value to set.

Returns:

the AgentUpdatePatchProperties object itself.

withMaintenanceWindowTimeZone

public AgentUpdatePatchProperties withMaintenanceWindowTimeZone(String maintenanceWindowTimeZone)

Set the maintenanceWindowTimeZone property: Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true.

Parameters:

maintenanceWindowTimeZone - the maintenanceWindowTimeZone value to set.

Returns:

the AgentUpdatePatchProperties object itself.

withType

public AgentUpdatePatchProperties withType(SessionHostComponentUpdateType type)

Set the type property: The type of maintenance for session host components.

Parameters:

type - the type value to set.

Returns:

the AgentUpdatePatchProperties object itself.

withUseSessionHostLocalTime

public AgentUpdatePatchProperties withUseSessionHostLocalTime(Boolean useSessionHostLocalTime)

Set the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.

Parameters:

useSessionHostLocalTime - the useSessionHostLocalTime value to set.

Returns:

the AgentUpdatePatchProperties object itself.

Applies to