SessionHostPatch Class

public final class SessionHostPatch
extends ProxyResource

SessionHost properties that can be patched.

Constructor Summary

Constructor Description
SessionHostPatch()

Creates an instance of SessionHostPatch 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 SessionHostPatch fromJson(JsonReader jsonReader)

Reads an instance of SessionHostPatch from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SessionHostPatch withAllowNewSession(Boolean allowNewSession)

Set the allowNewSession property: Allow a new session.

SessionHostPatch withAssignedUser(String assignedUser)

Set the assignedUser property: User assigned to SessionHost.

SessionHostPatch withFriendlyName(String friendlyName)

Set the friendlyName property: Friendly name of SessionHost.

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:

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 SessionHostPatch fromJson(JsonReader jsonReader)

Reads an instance of SessionHostPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SessionHostPatch.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SessionHostPatch.name()

Returns:

the name value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SessionHostPatch.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SessionHostPatch.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

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.

withFriendlyName

public SessionHostPatch withFriendlyName(String friendlyName)

Set the friendlyName property: Friendly name of SessionHost.

Parameters:

friendlyName - the friendlyName value to set.

Returns:

the SessionHostPatch object itself.

Applies to