Class SessionHostPatch
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.desktopvirtualization.models.SessionHostPatch
-
public final class SessionHostPatch extends com.azure.core.management.ProxyResourceSessionHost properties that can be patched.
-
-
Constructor Summary
Constructors Constructor Description SessionHostPatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallowNewSession()Get the allowNewSession property: Allow a new session.StringassignedUser()Get the assignedUser property: User assigned to SessionHost.voidvalidate()Validates the instance.SessionHostPatchwithAllowNewSession(Boolean allowNewSession)Set the allowNewSession property: Allow a new session.SessionHostPatchwithAssignedUser(String assignedUser)Set the assignedUser property: User assigned to SessionHost.
-
-
-
Method Detail
-
allowNewSession
public Boolean allowNewSession()
Get the allowNewSession property: Allow a new session.- Returns:
- the allowNewSession value.
-
withAllowNewSession
public SessionHostPatch withAllowNewSession(Boolean allowNewSession)
Set the allowNewSession property: Allow a new session.- Parameters:
allowNewSession- the allowNewSession value to set.- Returns:
- the SessionHostPatch object itself.
-
assignedUser
public String assignedUser()
Get the assignedUser property: User assigned to SessionHost.- Returns:
- the assignedUser value.
-
withAssignedUser
public SessionHostPatch withAssignedUser(String assignedUser)
Set the assignedUser property: User assigned to SessionHost.- Parameters:
assignedUser- the assignedUser value to set.- Returns:
- the SessionHostPatch object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-