Class WindowsUpdateState

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

    public class WindowsUpdateState
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    • Field Detail

      • deviceDisplayName

        protected String deviceDisplayName
      • deviceId

        protected String deviceId
      • featureUpdateVersion

        protected String featureUpdateVersion
      • qualityUpdateVersion

        protected String qualityUpdateVersion
      • userId

        protected String userId
      • userPrincipalName

        protected String userPrincipalName
    • Constructor Detail

      • WindowsUpdateState

        protected WindowsUpdateState()
    • Method Detail

      • odataTypeName

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

        public static WindowsUpdateState.Builder builderWindowsUpdateState()
        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
      • getDeviceDisplayName

        public Optional<String> getDeviceDisplayName()
        “Device display name.”
        Returns:
        property deviceDisplayName
      • withDeviceDisplayName

        public WindowsUpdateState withDeviceDisplayName​(String deviceDisplayName)
        Returns an immutable copy of this with just the deviceDisplayName 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.

        “Device display name.”

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

        public Optional<String> getDeviceId()
        “The id of the device.”
        Returns:
        property deviceId
      • withDeviceId

        public WindowsUpdateState withDeviceId​(String deviceId)
        Returns an immutable copy of this with just the deviceId 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.

        “The id of the device.”

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

        public Optional<String> getFeatureUpdateVersion()
        “The current feature update version of the device.”
        Returns:
        property featureUpdateVersion
      • withFeatureUpdateVersion

        public WindowsUpdateState withFeatureUpdateVersion​(String featureUpdateVersion)
        Returns an immutable copy of this with just the featureUpdateVersion 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.

        “The current feature update version of the device.”

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

        public Optional<OffsetDateTime> getLastScanDateTime()
        “The date time that the Windows Update Agent did a successful scan.”
        Returns:
        property lastScanDateTime
      • withLastScanDateTime

        public WindowsUpdateState withLastScanDateTime​(OffsetDateTime lastScanDateTime)
        Returns an immutable copy of this with just the lastScanDateTime 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.

        “The date time that the Windows Update Agent did a successful scan.”

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

        public Optional<OffsetDateTime> getLastSyncDateTime()
        “Last date time that the device sync with with Microsoft Intune.”
        Returns:
        property lastSyncDateTime
      • withLastSyncDateTime

        public WindowsUpdateState withLastSyncDateTime​(OffsetDateTime lastSyncDateTime)
        Returns an immutable copy of this with just the lastSyncDateTime 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.

        “Last date time that the device sync with with Microsoft Intune.”

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

        public Optional<String> getQualityUpdateVersion()
        “The Quality Update Version of the device.”
        Returns:
        property qualityUpdateVersion
      • withQualityUpdateVersion

        public WindowsUpdateState withQualityUpdateVersion​(String qualityUpdateVersion)
        Returns an immutable copy of this with just the qualityUpdateVersion 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.

        “The Quality Update Version of the device.”

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

        public WindowsUpdateState withStatus​(WindowsUpdateStatus status)
        Returns an immutable copy of this with just the status 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 udpate status.”

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

        public Optional<String> getUserId()
        “The id of the user.”
        Returns:
        property userId
      • withUserId

        public WindowsUpdateState withUserId​(String userId)
        Returns an immutable copy of this with just the userId 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.

        “The id of the user.”

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

        public Optional<String> getUserPrincipalName()
        “User principal name.”
        Returns:
        property userPrincipalName
      • withUserPrincipalName

        public WindowsUpdateState withUserPrincipalName​(String userPrincipalName)
        Returns an immutable copy of this with just the userPrincipalName 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.

        “User principal name.”

        Parameters:
        userPrincipalName - new value of userPrincipalName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userPrincipalName 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 WindowsUpdateState 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 WindowsUpdateState 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