Class WindowsDriverUpdateInventory

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

    public class WindowsDriverUpdateInventory
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “A new entity to represent driver inventories.”
    • Constructor Detail

      • WindowsDriverUpdateInventory

        protected WindowsDriverUpdateInventory()
    • Method Detail

      • odataTypeName

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

        public static WindowsDriverUpdateInventory.Builder builderWindowsDriverUpdateInventory()
        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
      • getApplicableDeviceCount

        public Optional<Integer> getApplicableDeviceCount()
        “The number of devices for which this driver is applicable.”
        Returns:
        property applicableDeviceCount
      • withApplicableDeviceCount

        public WindowsDriverUpdateInventory withApplicableDeviceCount​(Integer applicableDeviceCount)
        Returns an immutable copy of this with just the applicableDeviceCount 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 number of devices for which this driver is applicable.”

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

        public Optional<DriverApprovalStatus> getApprovalStatus()
        “The approval status for this driver.”
        Returns:
        property approvalStatus
      • withApprovalStatus

        public WindowsDriverUpdateInventory withApprovalStatus​(DriverApprovalStatus approvalStatus)
        Returns an immutable copy of this with just the approvalStatus 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 approval status for this driver.”

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

        public Optional<DriverCategory> getCategory()
        “The category for this driver.”
        Returns:
        property category
      • withCategory

        public WindowsDriverUpdateInventory withCategory​(DriverCategory category)
        Returns an immutable copy of this with just the category 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 category for this driver.”

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

        public Optional<OffsetDateTime> getDeployDateTime()
        “The date time when a driver should be deployed if approvalStatus is approved.”
        Returns:
        property deployDateTime
      • withDeployDateTime

        public WindowsDriverUpdateInventory withDeployDateTime​(OffsetDateTime deployDateTime)
        Returns an immutable copy of this with just the deployDateTime 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 when a driver should be deployed if approvalStatus is approved.”

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

        public Optional<String> getDriverClass()
        “The class of the driver.”
        Returns:
        property driverClass
      • withDriverClass

        public WindowsDriverUpdateInventory withDriverClass​(String driverClass)
        Returns an immutable copy of this with just the driverClass 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 class of the driver.”

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

        public Optional<String> getManufacturer()
        “The manufacturer of the driver.”
        Returns:
        property manufacturer
      • withManufacturer

        public WindowsDriverUpdateInventory withManufacturer​(String manufacturer)
        Returns an immutable copy of this with just the manufacturer 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 manufacturer of the driver.”

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

        public Optional<String> getName()
        “The name of the driver.”
        Returns:
        property name
      • withName

        public WindowsDriverUpdateInventory withName​(String name)
        Returns an immutable copy of this with just the name 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 driver.”

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

        public Optional<OffsetDateTime> getReleaseDateTime()
        “The release date time of the driver.”
        Returns:
        property releaseDateTime
      • withReleaseDateTime

        public WindowsDriverUpdateInventory withReleaseDateTime​(OffsetDateTime releaseDateTime)
        Returns an immutable copy of this with just the releaseDateTime 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 release date time of the driver.”

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

        public Optional<String> getVersion()
        “The version of the driver.”
        Returns:
        property version
      • withVersion

        public WindowsDriverUpdateInventory withVersion​(String version)
        Returns an immutable copy of this with just the version 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 version of the driver.”

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