SessionHostPatchProperties Class
- java.
lang. Object - com.
azure. resourcemanager. desktopvirtualization. fluent. models. SessionHostPatchProperties
- com.
Implements
public final class SessionHostPatchProperties
implements JsonSerializable<SessionHostPatchProperties>
SessionHost properties that can be patched.
Constructor Summary
| Constructor | Description |
|---|---|
| SessionHostPatchProperties() |
Creates an instance of Session |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
allowNewSession()
Get the allow |
| String |
assignedUser()
Get the assigned |
| String |
friendlyName()
Get the friendly |
|
static
Session |
fromJson(JsonReader jsonReader)
Reads an instance of Session |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Session |
withAllowNewSession(Boolean allowNewSession)
Set the allow |
|
Session |
withAssignedUser(String assignedUser)
Set the assigned |
|
Session |
withFriendlyName(String friendlyName)
Set the friendly |
Methods inherited from java.lang.Object
Constructor Details
SessionHostPatchProperties
public SessionHostPatchProperties()
Creates an instance of SessionHostPatchProperties class.
Method Details
allowNewSession
public Boolean allowNewSession()
Get the allowNewSession property: Allow a new session.
Returns:
assignedUser
public String assignedUser()
Get the assignedUser property: User assigned to SessionHost.
Returns:
friendlyName
public String friendlyName()
Get the friendlyName property: Friendly name of SessionHost.
Returns:
fromJson
public static SessionHostPatchProperties fromJson(JsonReader jsonReader)
Reads an instance of SessionHostPatchProperties from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withAllowNewSession
public SessionHostPatchProperties withAllowNewSession(Boolean allowNewSession)
Set the allowNewSession property: Allow a new session.
Parameters:
Returns:
withAssignedUser
public SessionHostPatchProperties withAssignedUser(String assignedUser)
Set the assignedUser property: User assigned to SessionHost.
Parameters:
Returns:
withFriendlyName
public SessionHostPatchProperties withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of SessionHost.
Parameters:
Returns: