Class DeviceComplianceScriptRunSummary

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

    public class DeviceComplianceScriptRunSummary
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties for the run summary of a device management script.”
    • Field Detail

      • detectionScriptErrorDeviceCount

        protected Integer detectionScriptErrorDeviceCount
      • detectionScriptPendingDeviceCount

        protected Integer detectionScriptPendingDeviceCount
      • issueDetectedDeviceCount

        protected Integer issueDetectedDeviceCount
      • lastScriptRunDateTime

        protected OffsetDateTime lastScriptRunDateTime
      • noIssueDetectedDeviceCount

        protected Integer noIssueDetectedDeviceCount
    • Constructor Detail

      • DeviceComplianceScriptRunSummary

        protected DeviceComplianceScriptRunSummary()
    • Method Detail

      • odataTypeName

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

        public static DeviceComplianceScriptRunSummary.Builder builderDeviceComplianceScriptRunSummary()
        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
      • getDetectionScriptErrorDeviceCount

        public Optional<Integer> getDetectionScriptErrorDeviceCount()
        “Number of devices on which the detection script execution encountered an error and did not complete. Valid values -2147483648 to 2147483647”
        Returns:
        property detectionScriptErrorDeviceCount
      • withDetectionScriptErrorDeviceCount

        public DeviceComplianceScriptRunSummary withDetectionScriptErrorDeviceCount​(Integer detectionScriptErrorDeviceCount)
        Returns an immutable copy of this with just the detectionScriptErrorDeviceCount 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 on which the detection script execution encountered an error and did not complete. Valid values -2147483648 to 2147483647”

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

        public Optional<Integer> getDetectionScriptPendingDeviceCount()
        “Number of devices which have not yet run the latest version of the device compliance script. Valid values -2147483648 to 2147483647”
        Returns:
        property detectionScriptPendingDeviceCount
      • withDetectionScriptPendingDeviceCount

        public DeviceComplianceScriptRunSummary withDetectionScriptPendingDeviceCount​(Integer detectionScriptPendingDeviceCount)
        Returns an immutable copy of this with just the detectionScriptPendingDeviceCount 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 which have not yet run the latest version of the device compliance script. Valid values -2147483648 to 2147483647”

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

        public Optional<Integer> getIssueDetectedDeviceCount()
        “Number of devices for which the detection script found an issue. Valid values - 2147483648 to 2147483647”
        Returns:
        property issueDetectedDeviceCount
      • withIssueDetectedDeviceCount

        public DeviceComplianceScriptRunSummary withIssueDetectedDeviceCount​(Integer issueDetectedDeviceCount)
        Returns an immutable copy of this with just the issueDetectedDeviceCount 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 for which the detection script found an issue. Valid values - 2147483648 to 2147483647”

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

        public Optional<OffsetDateTime> getLastScriptRunDateTime()
        “Last run time for the script across all devices”
        Returns:
        property lastScriptRunDateTime
      • withLastScriptRunDateTime

        public DeviceComplianceScriptRunSummary withLastScriptRunDateTime​(OffsetDateTime lastScriptRunDateTime)
        Returns an immutable copy of this with just the lastScriptRunDateTime 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 run time for the script across all devices”

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

        public Optional<Integer> getNoIssueDetectedDeviceCount()
        “Number of devices for which the detection script did not find an issue and the device is healthy. Valid values -2147483648 to 2147483647”
        Returns:
        property noIssueDetectedDeviceCount
      • withNoIssueDetectedDeviceCount

        public DeviceComplianceScriptRunSummary withNoIssueDetectedDeviceCount​(Integer noIssueDetectedDeviceCount)
        Returns an immutable copy of this with just the noIssueDetectedDeviceCount 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 for which the detection script did not find an issue and the device is healthy. Valid values -2147483648 to 2147483647”

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