AgentUpdatePatchProperties Class
- java.
lang. Object - com.
azure. resourcemanager. desktopvirtualization. models. AgentUpdatePatchProperties
- com.
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 Agent |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Agent |
fromJson(JsonReader jsonReader)
Reads an instance of Agent |
|
List<Maintenance |
maintenanceWindows()
Get the maintenance |
| String |
maintenanceWindowTimeZone()
Get the maintenance |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Session |
type()
Get the type property: The type of maintenance for session host components. |
| Boolean |
useSessionHostLocalTime()
Get the use |
| void |
validate()
Validates the instance. |
|
Agent |
withMaintenanceWindows(List<MaintenanceWindowPatchProperties> maintenanceWindows)
Set the maintenance |
|
Agent |
withMaintenanceWindowTimeZone(String maintenanceWindowTimeZone)
Set the maintenance |
|
Agent |
withType(SessionHostComponentUpdateType type)
Set the type property: The type of maintenance for session host components. |
|
Agent |
withUseSessionHostLocalTime(Boolean useSessionHostLocalTime)
Set the use |
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:
Returns:
Throws:
maintenanceWindows
public List<MaintenanceWindowPatchProperties> maintenanceWindows()
Get the maintenanceWindows property: List of maintenance windows. Maintenance windows are 2 hours long.
Returns:
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:
toJson
type
public SessionHostComponentUpdateType type()
Get the type property: The type of maintenance for session host components.
Returns:
useSessionHostLocalTime
public Boolean useSessionHostLocalTime()
Get the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.
Returns:
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:
Returns:
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:
Returns:
withType
public AgentUpdatePatchProperties withType(SessionHostComponentUpdateType type)
Set the type property: The type of maintenance for session host components.
Parameters:
Returns:
withUseSessionHostLocalTime
public AgentUpdatePatchProperties withUseSessionHostLocalTime(Boolean useSessionHostLocalTime)
Set the useSessionHostLocalTime property: Whether to use localTime of the virtual machine.
Parameters:
Returns: