Class MacOSSoftwareUpdateCategorySummary

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

    public class MacOSSoftwareUpdateCategorySummary
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “MacOS software update category summary report for a device and user”
    • Constructor Detail

      • MacOSSoftwareUpdateCategorySummary

        protected MacOSSoftwareUpdateCategorySummary()
    • Method Detail

      • odataTypeName

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

        public static MacOSSoftwareUpdateCategorySummary.Builder builderMacOSSoftwareUpdateCategorySummary()
        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
      • getDeviceId

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

        public MacOSSoftwareUpdateCategorySummary 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 device ID.”

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

        public Optional<String> getDisplayName()
        “The name of the report”
        Returns:
        property displayName
      • withDisplayName

        public MacOSSoftwareUpdateCategorySummary withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName 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 name of the report”

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

        public Optional<Integer> getFailedUpdateCount()
        “Number of failed updates on the device”
        Returns:
        property failedUpdateCount
      • withFailedUpdateCount

        public MacOSSoftwareUpdateCategorySummary withFailedUpdateCount​(Integer failedUpdateCount)
        Returns an immutable copy of this with just the failedUpdateCount 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.

        “Number of failed updates on the device”

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

        public Optional<OffsetDateTime> getLastUpdatedDateTime()
        “Last date time the report for this device was updated.”
        Returns:
        property lastUpdatedDateTime
      • withLastUpdatedDateTime

        public MacOSSoftwareUpdateCategorySummary withLastUpdatedDateTime​(OffsetDateTime lastUpdatedDateTime)
        Returns an immutable copy of this with just the lastUpdatedDateTime 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 the report for this device was updated.”

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

        public Optional<Integer> getSuccessfulUpdateCount()
        “Number of successful updates on the device”
        Returns:
        property successfulUpdateCount
      • withSuccessfulUpdateCount

        public MacOSSoftwareUpdateCategorySummary withSuccessfulUpdateCount​(Integer successfulUpdateCount)
        Returns an immutable copy of this with just the successfulUpdateCount 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.

        “Number of successful updates on the device”

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

        public Optional<Integer> getTotalUpdateCount()
        “Number of total updates on the device”
        Returns:
        property totalUpdateCount
      • withTotalUpdateCount

        public MacOSSoftwareUpdateCategorySummary withTotalUpdateCount​(Integer totalUpdateCount)
        Returns an immutable copy of this with just the totalUpdateCount 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.

        “Number of total updates on the device”

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

        public MacOSSoftwareUpdateCategorySummary withUpdateCategory​(MacOSSoftwareUpdateCategory updateCategory)
        Returns an immutable copy of this with just the updateCategory 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.

        “Software update type”

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

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

        public MacOSSoftwareUpdateCategorySummary 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 user ID.”

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