SessionHostPatch Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. desktopvirtualization. models. SessionHostPatch
- com.
- com.
public final class SessionHostPatch
extends ProxyResource
SessionHost properties that can be patched.
Constructor Summary
| Constructor | Description |
|---|---|
| SessionHostPatch() |
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 |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| 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 ProxyResource
Methods inherited from java.lang.Object
Constructor Details
SessionHostPatch
public SessionHostPatch()
Creates an instance of SessionHostPatch 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 SessionHostPatch fromJson(JsonReader jsonReader)
Reads an instance of SessionHostPatch from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SessionHostPatch.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SessionHostPatch.name()Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SessionHostPatch.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SessionHostPatch.type()Returns:
validate
public void validate()
Validates the instance.
withAllowNewSession
public SessionHostPatch withAllowNewSession(Boolean allowNewSession)
Set the allowNewSession property: Allow a new session.
Parameters:
Returns:
withAssignedUser
public SessionHostPatch withAssignedUser(String assignedUser)
Set the assignedUser property: User assigned to SessionHost.
Parameters:
Returns:
withFriendlyName
public SessionHostPatch withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of SessionHost.
Parameters:
Returns: