Class DeviceHealthScriptDeviceState

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

    public class DeviceHealthScriptDeviceState
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties for device run state of the device health script.”
    • Field Detail

      • assignmentFilterIds

        protected List<String> assignmentFilterIds
      • assignmentFilterIdsNextLink

        protected String assignmentFilterIdsNextLink
      • detectionState

        protected RunState detectionState
      • expectedStateUpdateDateTime

        protected OffsetDateTime expectedStateUpdateDateTime
      • lastStateUpdateDateTime

        protected OffsetDateTime lastStateUpdateDateTime
      • postRemediationDetectionScriptError

        protected String postRemediationDetectionScriptError
      • postRemediationDetectionScriptOutput

        protected String postRemediationDetectionScriptOutput
      • preRemediationDetectionScriptError

        protected String preRemediationDetectionScriptError
      • preRemediationDetectionScriptOutput

        protected String preRemediationDetectionScriptOutput
      • remediationScriptError

        protected String remediationScriptError
    • Constructor Detail

      • DeviceHealthScriptDeviceState

        protected DeviceHealthScriptDeviceState()
    • Method Detail

      • odataTypeName

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

        public static DeviceHealthScriptDeviceState.Builder builderDeviceHealthScriptDeviceState()
        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
      • getAssignmentFilterIds

        public com.github.davidmoten.odata.client.CollectionPage<String> getAssignmentFilterIds()
        “A list of the assignment filter ids used for health script applicability evaluation”
        Returns:
        property assignmentFilterIds
      • withAssignmentFilterIds

        public DeviceHealthScriptDeviceState withAssignmentFilterIds​(List<String> assignmentFilterIds)
        Returns an immutable copy of this with just the assignmentFilterIds 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.

        “A list of the assignment filter ids used for health script applicability evaluation”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getAssignmentFilterIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “A list of the assignment filter ids used for health script applicability evaluation”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property assignmentFilterIds
      • getDetectionState

        public Optional<RunState> getDetectionState()
        “Detection state from the lastest device health script execution”
        Returns:
        property detectionState
      • withDetectionState

        public DeviceHealthScriptDeviceState withDetectionState​(RunState detectionState)
        Returns an immutable copy of this with just the detectionState 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.

        “Detection state from the lastest device health script execution”

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

        public Optional<OffsetDateTime> getExpectedStateUpdateDateTime()
        “The next timestamp of when the device health script is expected to execute”
        Returns:
        property expectedStateUpdateDateTime
      • withExpectedStateUpdateDateTime

        public DeviceHealthScriptDeviceState withExpectedStateUpdateDateTime​(OffsetDateTime expectedStateUpdateDateTime)
        Returns an immutable copy of this with just the expectedStateUpdateDateTime 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 next timestamp of when the device health script is expected to execute”

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

        public Optional<OffsetDateTime> getLastStateUpdateDateTime()
        “The last timestamp of when the device health script executed”
        Returns:
        property lastStateUpdateDateTime
      • withLastStateUpdateDateTime

        public DeviceHealthScriptDeviceState withLastStateUpdateDateTime​(OffsetDateTime lastStateUpdateDateTime)
        Returns an immutable copy of this with just the lastStateUpdateDateTime 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 last timestamp of when the device health script executed”

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

        public Optional<OffsetDateTime> getLastSyncDateTime()
        “The last time that Intune Managment Extension synced with Intune”
        Returns:
        property lastSyncDateTime
      • withLastSyncDateTime

        public DeviceHealthScriptDeviceState withLastSyncDateTime​(OffsetDateTime lastSyncDateTime)
        Returns an immutable copy of this with just the lastSyncDateTime 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 last time that Intune Managment Extension synced with Intune”

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

        public Optional<String> getPostRemediationDetectionScriptError()
        “Error from the detection script after remediation”
        Returns:
        property postRemediationDetectionScriptError
      • withPostRemediationDetectionScriptError

        public DeviceHealthScriptDeviceState withPostRemediationDetectionScriptError​(String postRemediationDetectionScriptError)
        Returns an immutable copy of this with just the postRemediationDetectionScriptError 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.

        “Error from the detection script after remediation”

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

        public Optional<String> getPostRemediationDetectionScriptOutput()
        “Detection script output after remediation”
        Returns:
        property postRemediationDetectionScriptOutput
      • withPostRemediationDetectionScriptOutput

        public DeviceHealthScriptDeviceState withPostRemediationDetectionScriptOutput​(String postRemediationDetectionScriptOutput)
        Returns an immutable copy of this with just the postRemediationDetectionScriptOutput 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.

        “Detection script output after remediation”

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

        public Optional<String> getPreRemediationDetectionScriptError()
        “Error from the detection script before remediation”
        Returns:
        property preRemediationDetectionScriptError
      • withPreRemediationDetectionScriptError

        public DeviceHealthScriptDeviceState withPreRemediationDetectionScriptError​(String preRemediationDetectionScriptError)
        Returns an immutable copy of this with just the preRemediationDetectionScriptError 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.

        “Error from the detection script before remediation”

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

        public Optional<String> getPreRemediationDetectionScriptOutput()
        “Output of the detection script before remediation”
        Returns:
        property preRemediationDetectionScriptOutput
      • withPreRemediationDetectionScriptOutput

        public DeviceHealthScriptDeviceState withPreRemediationDetectionScriptOutput​(String preRemediationDetectionScriptOutput)
        Returns an immutable copy of this with just the preRemediationDetectionScriptOutput 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.

        “Output of the detection script before remediation”

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

        public Optional<String> getRemediationScriptError()
        “Error output of the remediation script”
        Returns:
        property remediationScriptError
      • withRemediationScriptError

        public DeviceHealthScriptDeviceState withRemediationScriptError​(String remediationScriptError)
        Returns an immutable copy of this with just the remediationScriptError 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.

        “Error output of the remediation script”

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

        public Optional<RemediationState> getRemediationState()
        “Remediation state from the lastest device health script execution”
        Returns:
        property remediationState
      • withRemediationState

        public DeviceHealthScriptDeviceState withRemediationState​(RemediationState remediationState)
        Returns an immutable copy of this with just the remediationState 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.

        “Remediation state from the lastest device health script execution”

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

        public ManagedDeviceRequest getManagedDevice()
        “The managed device on which the device health script executed”
        Returns:
        navigational property managedDevice
      • 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 DeviceHealthScriptDeviceState 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 DeviceHealthScriptDeviceState 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