Class MacOSSoftwareUpdateAccountSummary

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

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

      • deviceId

        protected String deviceId
      • deviceName

        protected String deviceName
      • displayName

        protected String displayName
      • failedUpdateCount

        protected Integer failedUpdateCount
      • osVersion

        protected String osVersion
      • successfulUpdateCount

        protected Integer successfulUpdateCount
      • totalUpdateCount

        protected Integer totalUpdateCount
      • userId

        protected String userId
      • userPrincipalName

        protected String userPrincipalName
    • Constructor Detail

      • MacOSSoftwareUpdateAccountSummary

        protected MacOSSoftwareUpdateAccountSummary()
    • Method Detail

      • odataTypeName

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

        public static MacOSSoftwareUpdateAccountSummary.Builder builderMacOSSoftwareUpdateAccountSummary()
        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 MacOSSoftwareUpdateAccountSummary 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
      • getDeviceName

        public Optional<String> getDeviceName()
        “The device name.”
        Returns:
        property deviceName
      • withDeviceName

        public MacOSSoftwareUpdateAccountSummary 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.

        “The device name.”

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

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

        public MacOSSoftwareUpdateAccountSummary 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 MacOSSoftwareUpdateAccountSummary 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 MacOSSoftwareUpdateAccountSummary 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
      • getOsVersion

        public Optional<String> getOsVersion()
        “The OS version.”
        Returns:
        property osVersion
      • withOsVersion

        public MacOSSoftwareUpdateAccountSummary withOsVersion​(String osVersion)
        Returns an immutable copy of this with just the osVersion 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 OS version.”

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

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

        public MacOSSoftwareUpdateAccountSummary 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 MacOSSoftwareUpdateAccountSummary 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
      • getUserId

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

        public MacOSSoftwareUpdateAccountSummary 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
      • getUserPrincipalName

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

        public MacOSSoftwareUpdateAccountSummary 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.

        “The 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 MacOSSoftwareUpdateAccountSummary 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 MacOSSoftwareUpdateAccountSummary 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