SessionHostInner Class

public final class SessionHostInner
extends ProxyResource

Represents a SessionHost definition.

Constructor Summary

Constructor Description
SessionHostInner()

Creates an instance of SessionHostInner class.

Method Summary

Modifier and Type Method and Description
String agentVersion()

Get the agentVersion property: Version of agent on SessionHost.

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

Reads an instance of SessionHostInner from the JsonReader.

String id()

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

OffsetDateTime lastHeartBeat()

Get the lastHeartBeat property: Last heart beat from SessionHost.

OffsetDateTime lastUpdateTime()

Get the lastUpdateTime property: The timestamp of the last update.

String name()

Get the name property: The name of the resource.

String objectId()

Get the objectId property: ObjectId of SessionHost.

String osVersion()

Get the osVersion property: The version of the OS on the session host.

String resourceId()

Get the resourceId property: Resource Id of SessionHost's underlying virtual machine.

List<SessionHostHealthCheckReport> sessionHostHealthCheckResults()

Get the sessionHostHealthCheckResults property: List of SessionHostHealthCheckReports.

Integer sessions()

Get the sessions property: Number of sessions on SessionHost.

Status status()

Get the status property: Status for a SessionHost.

OffsetDateTime statusTimestamp()

Get the statusTimestamp property: The timestamp of the status.

String sxSStackVersion()

Get the sxSStackVersion property: The version of the side by side stack on the session host.

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.

String updateErrorMessage()

Get the updateErrorMessage property: The error message.

UpdateState updateState()

Get the updateState property: Update state of a SessionHost.

void validate()

Validates the instance.

String virtualMachineId()

Get the virtualMachineId property: Virtual Machine Id of SessionHost's underlying virtual machine.

SessionHostInner withAgentVersion(String agentVersion)

Set the agentVersion property: Version of agent on SessionHost.

SessionHostInner withAllowNewSession(Boolean allowNewSession)

Set the allowNewSession property: Allow a new session.

SessionHostInner withAssignedUser(String assignedUser)

Set the assignedUser property: User assigned to SessionHost.

SessionHostInner withFriendlyName(String friendlyName)

Set the friendlyName property: Friendly name of SessionHost.

SessionHostInner withLastHeartBeat(OffsetDateTime lastHeartBeat)

Set the lastHeartBeat property: Last heart beat from SessionHost.

SessionHostInner withOsVersion(String osVersion)

Set the osVersion property: The version of the OS on the session host.

SessionHostInner withSessions(Integer sessions)

Set the sessions property: Number of sessions on SessionHost.

SessionHostInner withStatus(Status status)

Set the status property: Status for a SessionHost.

SessionHostInner withSxSStackVersion(String sxSStackVersion)

Set the sxSStackVersion property: The version of the side by side stack on the session host.

SessionHostInner withUpdateErrorMessage(String updateErrorMessage)

Set the updateErrorMessage property: The error message.

SessionHostInner withUpdateState(UpdateState updateState)

Set the updateState property: Update state of a SessionHost.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SessionHostInner

public SessionHostInner()

Creates an instance of SessionHostInner class.

Method Details

agentVersion

public String agentVersion()

Get the agentVersion property: Version of agent on SessionHost.

Returns:

the agentVersion value.

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

Reads an instance of SessionHostInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SessionHostInner 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:

SessionHostInner.id()

Returns:

the id value.

lastHeartBeat

public OffsetDateTime lastHeartBeat()

Get the lastHeartBeat property: Last heart beat from SessionHost.

Returns:

the lastHeartBeat value.

lastUpdateTime

public OffsetDateTime lastUpdateTime()

Get the lastUpdateTime property: The timestamp of the last update.

Returns:

the lastUpdateTime value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SessionHostInner.name()

Returns:

the name value.

objectId

public String objectId()

Get the objectId property: ObjectId of SessionHost. (internal use).

Returns:

the objectId value.

osVersion

public String osVersion()

Get the osVersion property: The version of the OS on the session host.

Returns:

the osVersion value.

resourceId

public String resourceId()

Get the resourceId property: Resource Id of SessionHost's underlying virtual machine.

Returns:

the resourceId value.

sessionHostHealthCheckResults

public List<SessionHostHealthCheckReport> sessionHostHealthCheckResults()

Get the sessionHostHealthCheckResults property: List of SessionHostHealthCheckReports.

Returns:

the sessionHostHealthCheckResults value.

sessions

public Integer sessions()

Get the sessions property: Number of sessions on SessionHost.

Returns:

the sessions value.

status

public Status status()

Get the status property: Status for a SessionHost.

Returns:

the status value.

statusTimestamp

public OffsetDateTime statusTimestamp()

Get the statusTimestamp property: The timestamp of the status.

Returns:

the statusTimestamp value.

sxSStackVersion

public String sxSStackVersion()

Get the sxSStackVersion property: The version of the side by side stack on the session host.

Returns:

the sxSStackVersion 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:

SessionHostInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SessionHostInner.type()

Returns:

the type value.

updateErrorMessage

public String updateErrorMessage()

Get the updateErrorMessage property: The error message.

Returns:

the updateErrorMessage value.

updateState

public UpdateState updateState()

Get the updateState property: Update state of a SessionHost.

Returns:

the updateState value.

validate

public void validate()

Validates the instance.

virtualMachineId

public String virtualMachineId()

Get the virtualMachineId property: Virtual Machine Id of SessionHost's underlying virtual machine.

Returns:

the virtualMachineId value.

withAgentVersion

public SessionHostInner withAgentVersion(String agentVersion)

Set the agentVersion property: Version of agent on SessionHost.

Parameters:

agentVersion - the agentVersion value to set.

Returns:

the SessionHostInner object itself.

withAllowNewSession

public SessionHostInner withAllowNewSession(Boolean allowNewSession)

Set the allowNewSession property: Allow a new session.

Parameters:

allowNewSession - the allowNewSession value to set.

Returns:

the SessionHostInner object itself.

withAssignedUser

public SessionHostInner withAssignedUser(String assignedUser)

Set the assignedUser property: User assigned to SessionHost.

Parameters:

assignedUser - the assignedUser value to set.

Returns:

the SessionHostInner object itself.

withFriendlyName

public SessionHostInner withFriendlyName(String friendlyName)

Set the friendlyName property: Friendly name of SessionHost.

Parameters:

friendlyName - the friendlyName value to set.

Returns:

the SessionHostInner object itself.

withLastHeartBeat

public SessionHostInner withLastHeartBeat(OffsetDateTime lastHeartBeat)

Set the lastHeartBeat property: Last heart beat from SessionHost.

Parameters:

lastHeartBeat - the lastHeartBeat value to set.

Returns:

the SessionHostInner object itself.

withOsVersion

public SessionHostInner withOsVersion(String osVersion)

Set the osVersion property: The version of the OS on the session host.

Parameters:

osVersion - the osVersion value to set.

Returns:

the SessionHostInner object itself.

withSessions

public SessionHostInner withSessions(Integer sessions)

Set the sessions property: Number of sessions on SessionHost.

Parameters:

sessions - the sessions value to set.

Returns:

the SessionHostInner object itself.

withStatus

public SessionHostInner withStatus(Status status)

Set the status property: Status for a SessionHost.

Parameters:

status - the status value to set.

Returns:

the SessionHostInner object itself.

withSxSStackVersion

public SessionHostInner withSxSStackVersion(String sxSStackVersion)

Set the sxSStackVersion property: The version of the side by side stack on the session host.

Parameters:

sxSStackVersion - the sxSStackVersion value to set.

Returns:

the SessionHostInner object itself.

withUpdateErrorMessage

public SessionHostInner withUpdateErrorMessage(String updateErrorMessage)

Set the updateErrorMessage property: The error message.

Parameters:

updateErrorMessage - the updateErrorMessage value to set.

Returns:

the SessionHostInner object itself.

withUpdateState

public SessionHostInner withUpdateState(UpdateState updateState)

Set the updateState property: Update state of a SessionHost.

Parameters:

updateState - the updateState value to set.

Returns:

the SessionHostInner object itself.

Applies to