Class WindowsManagementAppHealthState

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class WindowsManagementAppHealthState
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Windows management app health state entity.”
    • Field Detail

      • deviceName

        protected String deviceName
      • deviceOSVersion

        protected String deviceOSVersion
      • installedVersion

        protected String installedVersion
    • Constructor Detail

      • WindowsManagementAppHealthState

        protected WindowsManagementAppHealthState()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderWindowsManagementAppHealthState

        public static WindowsManagementAppHealthState.Builder builderWindowsManagementAppHealthState()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getDeviceName

        public Optional<String> getDeviceName()
        “Name of the device on which Windows management app is installed.”
        Returns:
        property deviceName
      • withDeviceName

        public WindowsManagementAppHealthState withDeviceName​(String deviceName)
        Returns an immutable copy of this with just the deviceName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Name of the device on which Windows management app is installed.”

        Parameters:
        deviceName - new value of deviceName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceName field changed
      • getDeviceOSVersion

        public Optional<String> getDeviceOSVersion()
        “Windows 10 OS version of the device on which Windows management app is installed .”
        Returns:
        property deviceOSVersion
      • withDeviceOSVersion

        public WindowsManagementAppHealthState withDeviceOSVersion​(String deviceOSVersion)
        Returns an immutable copy of this with just the deviceOSVersion field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Windows 10 OS version of the device on which Windows management app is installed .”

        Parameters:
        deviceOSVersion - new value of deviceOSVersion field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceOSVersion field changed
      • getHealthState

        public Optional<HealthState> getHealthState()
        “Windows management app health state.”
        Returns:
        property healthState
      • withHealthState

        public WindowsManagementAppHealthState withHealthState​(HealthState healthState)
        Returns an immutable copy of this with just the healthState field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Windows management app health state.”

        Parameters:
        healthState - new value of healthState field (as defined in service metadata)
        Returns:
        immutable copy of this with just the healthState field changed
      • getInstalledVersion

        public Optional<String> getInstalledVersion()
        “Windows management app installed version.”
        Returns:
        property installedVersion
      • withInstalledVersion

        public WindowsManagementAppHealthState withInstalledVersion​(String installedVersion)
        Returns an immutable copy of this with just the installedVersion field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Windows management app installed version.”

        Parameters:
        installedVersion - new value of installedVersion field (as defined in service metadata)
        Returns:
        immutable copy of this with just the installedVersion field changed
      • getLastCheckInDateTime

        public Optional<OffsetDateTime> getLastCheckInDateTime()
        “Windows management app last check-in time.”
        Returns:
        property lastCheckInDateTime
      • withLastCheckInDateTime

        public WindowsManagementAppHealthState withLastCheckInDateTime​(OffsetDateTime lastCheckInDateTime)
        Returns an immutable copy of this with just the lastCheckInDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Windows management app last check-in time.”

        Parameters:
        lastCheckInDateTime - new value of lastCheckInDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastCheckInDateTime field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public WindowsManagementAppHealthState patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public WindowsManagementAppHealthState put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected