Class OsVersionCount

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

    public class OsVersionCount
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “Count of devices with malware for each OS version”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • deviceCount

        protected Integer deviceCount
      • osVersion

        protected String osVersion
    • Constructor Detail

      • OsVersionCount

        protected OsVersionCount()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getDeviceCount

        public Optional<Integer> getDeviceCount()
        “Count of devices with malware for the OS version”
        Returns:
        property deviceCount
      • withDeviceCount

        public OsVersionCount withDeviceCount​(Integer deviceCount)
        Returns an immutable copy of this with just the deviceCount 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.

        “Count of devices with malware for the OS version”

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

        public Optional<OffsetDateTime> getLastUpdateDateTime()
        “The Timestamp of the last update for the device count in UTC”
        Returns:
        property lastUpdateDateTime
      • withLastUpdateDateTime

        public OsVersionCount withLastUpdateDateTime​(OffsetDateTime lastUpdateDateTime)
        Returns an immutable copy of this with just the lastUpdateDateTime 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 Timestamp of the last update for the device count in UTC”

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

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

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

        “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
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

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

        public static OsVersionCount.Builder builder()
        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