Class DeviceComplianceScriptDeviceState

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

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

      • detectionState

        protected RunState detectionState
      • expectedStateUpdateDateTime

        protected OffsetDateTime expectedStateUpdateDateTime
      • lastStateUpdateDateTime

        protected OffsetDateTime lastStateUpdateDateTime
      • scriptError

        protected String scriptError
      • scriptOutput

        protected String scriptOutput
    • Constructor Detail

      • DeviceComplianceScriptDeviceState

        protected DeviceComplianceScriptDeviceState()
    • Method Detail

      • odataTypeName

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

        public static DeviceComplianceScriptDeviceState.Builder builderDeviceComplianceScriptDeviceState()
        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
      • getDetectionState

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

        public DeviceComplianceScriptDeviceState 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 compliance 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 compliance script is expected to execute”
        Returns:
        property expectedStateUpdateDateTime
      • withExpectedStateUpdateDateTime

        public DeviceComplianceScriptDeviceState 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 compliance 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 compliance script executed”
        Returns:
        property lastStateUpdateDateTime
      • withLastStateUpdateDateTime

        public DeviceComplianceScriptDeviceState 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 compliance 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 DeviceComplianceScriptDeviceState 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
      • getScriptError

        public Optional<String> getScriptError()
        “Error from the detection script”
        Returns:
        property scriptError
      • withScriptError

        public DeviceComplianceScriptDeviceState withScriptError​(String scriptError)
        Returns an immutable copy of this with just the scriptError 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”

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

        public Optional<String> getScriptOutput()
        “Output of the detection script”
        Returns:
        property scriptOutput
      • withScriptOutput

        public DeviceComplianceScriptDeviceState withScriptOutput​(String scriptOutput)
        Returns an immutable copy of this with just the scriptOutput 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”

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

        public ManagedDeviceRequest getManagedDevice()
        “The managed device on which the device compliance 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 DeviceComplianceScriptDeviceState 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 DeviceComplianceScriptDeviceState 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