SessionHostPatchProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.fluent.models.SessionHostPatchProperties

Implements

public final class SessionHostPatchProperties
implements JsonSerializable<SessionHostPatchProperties>

SessionHost properties that can be patched.

Constructor Summary

Constructor Description
SessionHostPatchProperties()

Creates an instance of SessionHostPatchProperties class.

Method Summary

Modifier and Type Method and Description
Boolean allowNewSession()

Get the allowNewSession property: Allow a new session.

String assignedUser()

Get the assignedUser property: User assigned to SessionHost.

String friendlyName()

Get the friendlyName property: Friendly name of SessionHost.

static SessionHostPatchProperties fromJson(JsonReader jsonReader)

Reads an instance of SessionHostPatchProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SessionHostPatchProperties withAllowNewSession(Boolean allowNewSession)

Set the allowNewSession property: Allow a new session.

SessionHostPatchProperties withAssignedUser(String assignedUser)

Set the assignedUser property: User assigned to SessionHost.

SessionHostPatchProperties withFriendlyName(String friendlyName)

Set the friendlyName property: Friendly name of SessionHost.

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:

the allowNewSession value.

assignedUser

public String assignedUser()

Get the assignedUser property: User assigned to SessionHost.

Returns:

the assignedUser value.

friendlyName

public String friendlyName()

Get the friendlyName property: Friendly name of SessionHost.

Returns:

the friendlyName value.

fromJson

public static SessionHostPatchProperties fromJson(JsonReader jsonReader)

Reads an instance of SessionHostPatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SessionHostPatchProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SessionHostPatchProperties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowNewSession

public SessionHostPatchProperties withAllowNewSession(Boolean allowNewSession)

Set the allowNewSession property: Allow a new session.

Parameters:

allowNewSession - the allowNewSession value to set.

Returns:

the SessionHostPatchProperties object itself.

withAssignedUser

public SessionHostPatchProperties withAssignedUser(String assignedUser)

Set the assignedUser property: User assigned to SessionHost.

Parameters:

assignedUser - the assignedUser value to set.

Returns:

the SessionHostPatchProperties object itself.

withFriendlyName

public SessionHostPatchProperties withFriendlyName(String friendlyName)

Set the friendlyName property: Friendly name of SessionHost.

Parameters:

friendlyName - the friendlyName value to set.

Returns:

the SessionHostPatchProperties object itself.

Applies to