Class AgentUpdatePatchProperties
java.lang.Object
com.azure.resourcemanager.desktopvirtualization.models.AgentUpdatePatchProperties
The session host configuration for updating agent, monitoring agent, and stack component.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AgentUpdatePatchProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the maintenanceWindows property: List of maintenance windows.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.type()Get the type property: The type of maintenance for session host components.Get the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.voidvalidate()Validates the instance.withMaintenanceWindows(List<MaintenanceWindowPatchProperties> maintenanceWindows) Set the maintenanceWindows property: List of maintenance windows.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.Set the type property: The type of maintenance for session host components.withUseSessionHostLocalTime(Boolean useSessionHostLocalTime) Set the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.
-
Constructor Details
-
AgentUpdatePatchProperties
public AgentUpdatePatchProperties()Creates an instance of AgentUpdatePatchProperties class.
-
-
Method Details
-
type
Get the type property: The type of maintenance for session host components.- Returns:
- the type value.
-
withType
Set the type property: The type of maintenance for session host components.- Parameters:
type- the type value to set.- Returns:
- the AgentUpdatePatchProperties object itself.
-
useSessionHostLocalTime
Get the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.- Returns:
- the useSessionHostLocalTime value.
-
withUseSessionHostLocalTime
Set the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.- Parameters:
useSessionHostLocalTime- the useSessionHostLocalTime value to set.- Returns:
- the AgentUpdatePatchProperties object itself.
-
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.
-
withMaintenanceWindowTimeZone
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.
-
maintenanceWindows
Get the maintenanceWindows property: List of maintenance windows. Maintenance windows are 2 hours long.- Returns:
- the maintenanceWindows value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-