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.ProxyResourceRepresents a SessionHost definition.
-
-
Constructor Summary
Constructors Constructor Description SessionHostInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringagentVersion()Get the agentVersion property: Version of agent on SessionHost.BooleanallowNewSession()Get the allowNewSession property: Allow a new session.StringassignedUser()Get the assignedUser property: User assigned to SessionHost.OffsetDateTimelastHeartBeat()Get the lastHeartBeat property: Last heart beat from SessionHost.OffsetDateTimelastUpdateTime()Get the lastUpdateTime property: The timestamp of the last update.StringobjectId()Get the objectId property: ObjectId of SessionHost.StringosVersion()Get the osVersion property: The version of the OS on the session host.StringresourceId()Get the resourceId property: Resource Id of SessionHost's underlying virtual machine.List<SessionHostHealthCheckReport>sessionHostHealthCheckResults()Get the sessionHostHealthCheckResults property: List of SessionHostHealthCheckReports.Integersessions()Get the sessions property: Number of sessions on SessionHost.Statusstatus()Get the status property: Status for a SessionHost.OffsetDateTimestatusTimestamp()Get the statusTimestamp property: The timestamp of the status.StringsxSStackVersion()Get the sxSStackVersion property: The version of the side by side stack on the session host.com.azure.core.management.SystemDatasystemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.StringupdateErrorMessage()Get the updateErrorMessage property: The error message.UpdateStateupdateState()Get the updateState property: Update state of a SessionHost.voidvalidate()Validates the instance.StringvirtualMachineId()Get the virtualMachineId property: Virtual Machine Id of SessionHost's underlying virtual machine.SessionHostInnerwithAgentVersion(String agentVersion)Set the agentVersion property: Version of agent on SessionHost.SessionHostInnerwithAllowNewSession(Boolean allowNewSession)Set the allowNewSession property: Allow a new session.SessionHostInnerwithAssignedUser(String assignedUser)Set the assignedUser property: User assigned to SessionHost.SessionHostInnerwithLastHeartBeat(OffsetDateTime lastHeartBeat)Set the lastHeartBeat property: Last heart beat from SessionHost.SessionHostInnerwithOsVersion(String osVersion)Set the osVersion property: The version of the OS on the session host.SessionHostInnerwithSessions(Integer sessions)Set the sessions property: Number of sessions on SessionHost.SessionHostInnerwithStatus(Status status)Set the status property: Status for a SessionHost.SessionHostInnerwithSxSStackVersion(String sxSStackVersion)Set the sxSStackVersion property: The version of the side by side stack on the session host.SessionHostInnerwithUpdateErrorMessage(String updateErrorMessage)Set the updateErrorMessage property: The error message.SessionHostInnerwithUpdateState(UpdateState updateState)Set the updateState property: Update state of a SessionHost.
-
-
-
Method Detail
-
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
public String objectId()
Get the objectId property: ObjectId of SessionHost. (internal use).- Returns:
- the objectId value.
-
lastHeartBeat
public OffsetDateTime lastHeartBeat()
Get the lastHeartBeat property: Last heart beat from SessionHost.- Returns:
- the lastHeartBeat value.
-
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.
-
sessions
public Integer sessions()
Get the sessions property: Number of sessions on SessionHost.- Returns:
- the sessions value.
-
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.
-
agentVersion
public String agentVersion()
Get the agentVersion property: Version of agent on SessionHost.- Returns:
- the agentVersion 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.
-
allowNewSession
public Boolean allowNewSession()
Get the allowNewSession property: Allow a new session.- Returns:
- the allowNewSession value.
-
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.
-
virtualMachineId
public String virtualMachineId()
Get the virtualMachineId property: Virtual Machine Id of SessionHost's underlying virtual machine.- Returns:
- the virtualMachineId value.
-
resourceId
public String resourceId()
Get the resourceId property: Resource Id of SessionHost's underlying virtual machine.- Returns:
- the resourceId value.
-
assignedUser
public String assignedUser()
Get the assignedUser property: User assigned to SessionHost.- Returns:
- the assignedUser value.
-
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.
-
status
public Status status()
Get the status property: Status for a SessionHost.- Returns:
- the status value.
-
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.
-
statusTimestamp
public OffsetDateTime statusTimestamp()
Get the statusTimestamp property: The timestamp of the status.- Returns:
- the statusTimestamp value.
-
osVersion
public String osVersion()
Get the osVersion property: The version of the OS on the session host.- Returns:
- the osVersion value.
-
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.
-
sxSStackVersion
public String sxSStackVersion()
Get the sxSStackVersion property: The version of the side by side stack on the session host.- Returns:
- the sxSStackVersion value.
-
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.
-
updateState
public UpdateState updateState()
Get the updateState property: Update state of a SessionHost.- Returns:
- the updateState value.
-
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.
-
lastUpdateTime
public OffsetDateTime lastUpdateTime()
Get the lastUpdateTime property: The timestamp of the last update.- Returns:
- the lastUpdateTime value.
-
updateErrorMessage
public String updateErrorMessage()
Get the updateErrorMessage property: The error message.- Returns:
- the updateErrorMessage value.
-
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.
-
sessionHostHealthCheckResults
public List<SessionHostHealthCheckReport> 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.
-
-