Class SessionHostPatchProperties
java.lang.Object
com.azure.resourcemanager.desktopvirtualization.fluent.models.SessionHostPatchProperties
SessionHost properties that can be patched.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SessionHostPatchProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowNewSession property: Allow a new session.Get the assignedUser property: User assigned to SessionHost.Get the friendlyName property: Friendly name of SessionHost.voidvalidate()Validates the instance.withAllowNewSession(Boolean allowNewSession) Set the allowNewSession property: Allow a new session.withAssignedUser(String assignedUser) Set the assignedUser property: User assigned to SessionHost.withFriendlyName(String friendlyName) Set the friendlyName property: Friendly name of SessionHost.
-
Constructor Details
-
SessionHostPatchProperties
public SessionHostPatchProperties()Creates an instance of SessionHostPatchProperties class.
-
-
Method Details
-
allowNewSession
Get the allowNewSession property: Allow a new session.- Returns:
- the allowNewSession value.
-
withAllowNewSession
Set the allowNewSession property: Allow a new session.- Parameters:
allowNewSession- the allowNewSession value to set.- Returns:
- the SessionHostPatchProperties object itself.
-
assignedUser
Get the assignedUser property: User assigned to SessionHost.- Returns:
- the assignedUser value.
-
withAssignedUser
Set the assignedUser property: User assigned to SessionHost.- Parameters:
assignedUser- the assignedUser value to set.- Returns:
- the SessionHostPatchProperties object itself.
-
friendlyName
Get the friendlyName property: Friendly name of SessionHost.- Returns:
- the friendlyName value.
-
withFriendlyName
Set the friendlyName property: Friendly name of SessionHost.- Parameters:
friendlyName- the friendlyName value to set.- Returns:
- the SessionHostPatchProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-