Class SessionHostInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.desktopvirtualization.fluent.models.SessionHostInner
public final class SessionHostInner
extends com.azure.core.management.ProxyResource
Represents a SessionHost definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the agentVersion property: Version of agent on SessionHost.Get the allowNewSession property: Allow a new session.Get the assignedUser property: User assigned to SessionHost.Get the friendlyName property: Friendly name of SessionHost.Get the lastHeartBeat property: Last heart beat from SessionHost.Get the lastUpdateTime property: The timestamp of the last update.objectId()Get the objectId property: ObjectId of SessionHost.Get the osVersion property: The version of the OS on the session host.Get the resourceId property: Resource Id of SessionHost's underlying virtual machine.Get the sessionHostHealthCheckResults property: List of SessionHostHealthCheckReports.sessions()Get the sessions property: Number of sessions on SessionHost.status()Get the status property: Status for a SessionHost.Get the statusTimestamp property: The timestamp of the status.Get the sxSStackVersion property: The version of the side by side stack on the session host.com.azure.core.management.SystemDataGet the systemData property: Metadata pertaining to creation and last modification of the resource.Get the updateErrorMessage property: The error message.Get the updateState property: Update state of a SessionHost.voidvalidate()Validates the instance.Get the virtualMachineId property: Virtual Machine Id of SessionHost's underlying virtual machine.withAgentVersion(String agentVersion) Set the agentVersion property: Version of agent on SessionHost.withAllowNewSession(Boolean allowNewSession) Set the allowNewSession property: Allow a new session.withAssignedUser(String assignedUser) Set the assignedUser property: User assigned to SessionHost.withFriendlyName(String friendlyName) Set the friendlyName property: Friendly name of SessionHost.withLastHeartBeat(OffsetDateTime lastHeartBeat) Set the lastHeartBeat property: Last heart beat from SessionHost.withOsVersion(String osVersion) Set the osVersion property: The version of the OS on the session host.withSessions(Integer sessions) Set the sessions property: Number of sessions on SessionHost.withStatus(Status status) Set the status property: Status for a SessionHost.withSxSStackVersion(String sxSStackVersion) Set the sxSStackVersion property: The version of the side by side stack on the session host.withUpdateErrorMessage(String updateErrorMessage) Set the updateErrorMessage property: The error message.withUpdateState(UpdateState updateState) Set the updateState property: Update state of a SessionHost.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
SessionHostInner
public SessionHostInner()Creates an instance of SessionHostInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
objectId
Get the objectId property: ObjectId of SessionHost. (internal use).- Returns:
- the objectId value.
-
lastHeartBeat
Get the lastHeartBeat property: Last heart beat from SessionHost.- Returns:
- the lastHeartBeat value.
-
withLastHeartBeat
Set the lastHeartBeat property: Last heart beat from SessionHost.- Parameters:
lastHeartBeat- the lastHeartBeat value to set.- Returns:
- the SessionHostInner object itself.
-
sessions
Get the sessions property: Number of sessions on SessionHost.- Returns:
- the sessions value.
-
withSessions
Set the sessions property: Number of sessions on SessionHost.- Parameters:
sessions- the sessions value to set.- Returns:
- the SessionHostInner object itself.
-
agentVersion
Get the agentVersion property: Version of agent on SessionHost.- Returns:
- the agentVersion value.
-
withAgentVersion
Set the agentVersion property: Version of agent on SessionHost.- Parameters:
agentVersion- the agentVersion value to set.- Returns:
- the SessionHostInner object itself.
-
allowNewSession
Get the allowNewSession property: Allow a new session.- Returns:
- the allowNewSession value.
-
withAllowNewSession
Set the allowNewSession property: Allow a new session.- Parameters:
allowNewSession- the allowNewSession value to set.- Returns:
- the SessionHostInner object itself.
-
virtualMachineId
Get the virtualMachineId property: Virtual Machine Id of SessionHost's underlying virtual machine.- Returns:
- the virtualMachineId value.
-
resourceId
Get the resourceId property: Resource Id of SessionHost's underlying virtual machine.- Returns:
- the resourceId value.
-
assignedUser
Get the assignedUser property: User assigned to SessionHost.- Returns:
- the assignedUser value.
-
withAssignedUser
Set the assignedUser property: User assigned to SessionHost.- Parameters:
assignedUser- the assignedUser value to set.- Returns:
- the SessionHostInner object itself.
-
friendlyName
Get the friendlyName property: Friendly name of SessionHost.- Returns:
- the friendlyName value.
-
withFriendlyName
Set the friendlyName property: Friendly name of SessionHost.- Parameters:
friendlyName- the friendlyName value to set.- Returns:
- the SessionHostInner object itself.
-
status
Get the status property: Status for a SessionHost.- Returns:
- the status value.
-
withStatus
Set the status property: Status for a SessionHost.- Parameters:
status- the status value to set.- Returns:
- the SessionHostInner object itself.
-
statusTimestamp
Get the statusTimestamp property: The timestamp of the status.- Returns:
- the statusTimestamp value.
-
osVersion
Get the osVersion property: The version of the OS on the session host.- Returns:
- the osVersion value.
-
withOsVersion
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.
-
sxSStackVersion
Get the sxSStackVersion property: The version of the side by side stack on the session host.- Returns:
- the sxSStackVersion value.
-
withSxSStackVersion
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.
-
updateState
Get the updateState property: Update state of a SessionHost.- Returns:
- the updateState value.
-
withUpdateState
Set the updateState property: Update state of a SessionHost.- Parameters:
updateState- the updateState value to set.- Returns:
- the SessionHostInner object itself.
-
lastUpdateTime
Get the lastUpdateTime property: The timestamp of the last update.- Returns:
- the lastUpdateTime value.
-
updateErrorMessage
Get the updateErrorMessage property: The error message.- Returns:
- the updateErrorMessage value.
-
withUpdateErrorMessage
Set the updateErrorMessage property: The error message.- Parameters:
updateErrorMessage- the updateErrorMessage value to set.- Returns:
- the SessionHostInner object itself.
-
sessionHostHealthCheckResults
Get the sessionHostHealthCheckResults property: List of SessionHostHealthCheckReports.- Returns:
- the sessionHostHealthCheckResults value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-