Class EBookInstallSummary

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

    public class EBookInstallSummary
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties for the installation summary of a book for a device.”
    • Field Detail

      • failedDeviceCount

        protected Integer failedDeviceCount
      • failedUserCount

        protected Integer failedUserCount
      • installedDeviceCount

        protected Integer installedDeviceCount
      • installedUserCount

        protected Integer installedUserCount
      • notInstalledDeviceCount

        protected Integer notInstalledDeviceCount
      • notInstalledUserCount

        protected Integer notInstalledUserCount
    • Constructor Detail

      • EBookInstallSummary

        protected EBookInstallSummary()
    • Method Detail

      • odataTypeName

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

        public static EBookInstallSummary.Builder builderEBookInstallSummary()
        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
      • getFailedDeviceCount

        public Optional<Integer> getFailedDeviceCount()
        “Number of Devices that have failed to install this book.”
        Returns:
        property failedDeviceCount
      • withFailedDeviceCount

        public EBookInstallSummary withFailedDeviceCount​(Integer failedDeviceCount)
        Returns an immutable copy of this with just the failedDeviceCount 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 Devices that have failed to install this book.”

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

        public Optional<Integer> getFailedUserCount()
        “Number of Users that have 1 or more device that failed to install this book.”
        Returns:
        property failedUserCount
      • withFailedUserCount

        public EBookInstallSummary withFailedUserCount​(Integer failedUserCount)
        Returns an immutable copy of this with just the failedUserCount 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 Users that have 1 or more device that failed to install this book.”

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

        public Optional<Integer> getInstalledDeviceCount()
        “Number of Devices that have successfully installed this book.”
        Returns:
        property installedDeviceCount
      • withInstalledDeviceCount

        public EBookInstallSummary withInstalledDeviceCount​(Integer installedDeviceCount)
        Returns an immutable copy of this with just the installedDeviceCount 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 Devices that have successfully installed this book.”

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

        public Optional<Integer> getInstalledUserCount()
        “Number of Users whose devices have all succeeded to install this book.”
        Returns:
        property installedUserCount
      • withInstalledUserCount

        public EBookInstallSummary withInstalledUserCount​(Integer installedUserCount)
        Returns an immutable copy of this with just the installedUserCount 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 Users whose devices have all succeeded to install this book.”

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

        public Optional<Integer> getNotInstalledDeviceCount()
        “Number of Devices that does not have this book installed.”
        Returns:
        property notInstalledDeviceCount
      • withNotInstalledDeviceCount

        public EBookInstallSummary withNotInstalledDeviceCount​(Integer notInstalledDeviceCount)
        Returns an immutable copy of this with just the notInstalledDeviceCount 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 Devices that does not have this book installed.”

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

        public Optional<Integer> getNotInstalledUserCount()
        “Number of Users that did not install this book.”
        Returns:
        property notInstalledUserCount
      • withNotInstalledUserCount

        public EBookInstallSummary withNotInstalledUserCount​(Integer notInstalledUserCount)
        Returns an immutable copy of this with just the notInstalledUserCount 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 Users that did not install this book.”

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