java.lang.Object
com.azure.resourcemanager.desktopvirtualization.fluent.models.SessionHostProperties

public final class SessionHostProperties extends Object
Schema for SessionHost properties.
  • Constructor Details

    • SessionHostProperties

      public SessionHostProperties()
  • Method Details

    • 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 SessionHostProperties withLastHeartBeat(OffsetDateTime lastHeartBeat)
      Set the lastHeartBeat property: Last heart beat from SessionHost.
      Parameters:
      lastHeartBeat - the lastHeartBeat value to set.
      Returns:
      the SessionHostProperties object itself.
    • sessions

      public Integer sessions()
      Get the sessions property: Number of sessions on SessionHost.
      Returns:
      the sessions value.
    • withSessions

      public SessionHostProperties withSessions(Integer sessions)
      Set the sessions property: Number of sessions on SessionHost.
      Parameters:
      sessions - the sessions value to set.
      Returns:
      the SessionHostProperties object itself.
    • agentVersion

      public String agentVersion()
      Get the agentVersion property: Version of agent on SessionHost.
      Returns:
      the agentVersion value.
    • withAgentVersion

      public SessionHostProperties withAgentVersion(String agentVersion)
      Set the agentVersion property: Version of agent on SessionHost.
      Parameters:
      agentVersion - the agentVersion value to set.
      Returns:
      the SessionHostProperties object itself.
    • allowNewSession

      public Boolean allowNewSession()
      Get the allowNewSession property: Allow a new session.
      Returns:
      the allowNewSession value.
    • withAllowNewSession

      public SessionHostProperties withAllowNewSession(Boolean allowNewSession)
      Set the allowNewSession property: Allow a new session.
      Parameters:
      allowNewSession - the allowNewSession value to set.
      Returns:
      the SessionHostProperties 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 SessionHostProperties withAssignedUser(String assignedUser)
      Set the assignedUser property: User assigned to SessionHost.
      Parameters:
      assignedUser - the assignedUser value to set.
      Returns:
      the SessionHostProperties object itself.
    • status

      public Status status()
      Get the status property: Status for a SessionHost.
      Returns:
      the status value.
    • withStatus

      public SessionHostProperties withStatus(Status status)
      Set the status property: Status for a SessionHost.
      Parameters:
      status - the status value to set.
      Returns:
      the SessionHostProperties 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 SessionHostProperties 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 SessionHostProperties 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 SessionHostProperties 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 SessionHostProperties object itself.
    • updateState

      public UpdateState updateState()
      Get the updateState property: Update state of a SessionHost.
      Returns:
      the updateState value.
    • withUpdateState

      public SessionHostProperties withUpdateState(UpdateState updateState)
      Set the updateState property: Update state of a SessionHost.
      Parameters:
      updateState - the updateState value to set.
      Returns:
      the SessionHostProperties 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 SessionHostProperties withUpdateErrorMessage(String updateErrorMessage)
      Set the updateErrorMessage property: The error message.
      Parameters:
      updateErrorMessage - the updateErrorMessage value to set.
      Returns:
      the SessionHostProperties 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.