Class WindowsProtectionState

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

    public class WindowsProtectionState
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Device protection status entity.”
    • Field Detail

      • antiMalwareVersion

        protected String antiMalwareVersion
      • engineVersion

        protected String engineVersion
      • fullScanOverdue

        protected Boolean fullScanOverdue
      • fullScanRequired

        protected Boolean fullScanRequired
      • isVirtualMachine

        protected Boolean isVirtualMachine
      • lastFullScanSignatureVersion

        protected String lastFullScanSignatureVersion
      • lastQuickScanDateTime

        protected OffsetDateTime lastQuickScanDateTime
      • lastQuickScanSignatureVersion

        protected String lastQuickScanSignatureVersion
      • malwareProtectionEnabled

        protected Boolean malwareProtectionEnabled
      • networkInspectionSystemEnabled

        protected Boolean networkInspectionSystemEnabled
      • quickScanOverdue

        protected Boolean quickScanOverdue
      • realTimeProtectionEnabled

        protected Boolean realTimeProtectionEnabled
      • rebootRequired

        protected Boolean rebootRequired
      • signatureUpdateOverdue

        protected Boolean signatureUpdateOverdue
      • signatureVersion

        protected String signatureVersion
      • tamperProtectionEnabled

        protected Boolean tamperProtectionEnabled
    • Constructor Detail

      • WindowsProtectionState

        protected WindowsProtectionState()
    • Method Detail

      • odataTypeName

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

        public static WindowsProtectionState.Builder builderWindowsProtectionState()
        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
      • getAntiMalwareVersion

        public Optional<String> getAntiMalwareVersion()
        “Current anti malware version”
        Returns:
        property antiMalwareVersion
      • withAntiMalwareVersion

        public WindowsProtectionState withAntiMalwareVersion​(String antiMalwareVersion)
        Returns an immutable copy of this with just the antiMalwareVersion 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.

        “Current anti malware version”

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

        public Optional<WindowsDeviceHealthState> getDeviceState()
        “Indicates device's health state. Possible values are: clean, fullScanPending, rebootPending, manualStepsPending, offlineScanPending, critical.”
        Returns:
        property deviceState
      • withDeviceState

        public WindowsProtectionState withDeviceState​(WindowsDeviceHealthState deviceState)
        Returns an immutable copy of this with just the deviceState 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.

        “Indicates device's health state. Possible values are: clean, fullScanPending, rebootPending, manualStepsPending, offlineScanPending, critical.”

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

        public Optional<String> getEngineVersion()
        “Current endpoint protection engine's version”
        Returns:
        property engineVersion
      • withEngineVersion

        public WindowsProtectionState withEngineVersion​(String engineVersion)
        Returns an immutable copy of this with just the engineVersion 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.

        “Current endpoint protection engine's version”

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

        public Optional<Boolean> getFullScanOverdue()
        “When TRUE indicates full scan is overdue, when FALSE indicates full scan is not overdue. Defaults to setting on client device.”
        Returns:
        property fullScanOverdue
      • withFullScanOverdue

        public WindowsProtectionState withFullScanOverdue​(Boolean fullScanOverdue)
        Returns an immutable copy of this with just the fullScanOverdue 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.

        “When TRUE indicates full scan is overdue, when FALSE indicates full scan is not overdue. Defaults to setting on client device.”

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

        public Optional<Boolean> getFullScanRequired()
        “When TRUE indicates full scan is required, when FALSE indicates full scan is not required. Defaults to setting on client device.”
        Returns:
        property fullScanRequired
      • withFullScanRequired

        public WindowsProtectionState withFullScanRequired​(Boolean fullScanRequired)
        Returns an immutable copy of this with just the fullScanRequired 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.

        “When TRUE indicates full scan is required, when FALSE indicates full scan is not required. Defaults to setting on client device.”

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

        public Optional<Boolean> getIsVirtualMachine()
        “When TRUE indicates the device is a virtual machine, when FALSE indicates the device is not a virtual machine. Defaults to setting on client device.”
        Returns:
        property isVirtualMachine
      • withIsVirtualMachine

        public WindowsProtectionState withIsVirtualMachine​(Boolean isVirtualMachine)
        Returns an immutable copy of this with just the isVirtualMachine 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.

        “When TRUE indicates the device is a virtual machine, when FALSE indicates the device is not a virtual machine. Defaults to setting on client device.”

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

        public Optional<OffsetDateTime> getLastFullScanDateTime()
        “Last quick scan datetime”
        Returns:
        property lastFullScanDateTime
      • withLastFullScanDateTime

        public WindowsProtectionState withLastFullScanDateTime​(OffsetDateTime lastFullScanDateTime)
        Returns an immutable copy of this with just the lastFullScanDateTime 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 quick scan datetime”

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

        public Optional<String> getLastFullScanSignatureVersion()
        “Last full scan signature version”
        Returns:
        property lastFullScanSignatureVersion
      • withLastFullScanSignatureVersion

        public WindowsProtectionState withLastFullScanSignatureVersion​(String lastFullScanSignatureVersion)
        Returns an immutable copy of this with just the lastFullScanSignatureVersion 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 full scan signature version”

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

        public Optional<OffsetDateTime> getLastQuickScanDateTime()
        “Last quick scan datetime”
        Returns:
        property lastQuickScanDateTime
      • withLastQuickScanDateTime

        public WindowsProtectionState withLastQuickScanDateTime​(OffsetDateTime lastQuickScanDateTime)
        Returns an immutable copy of this with just the lastQuickScanDateTime 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 quick scan datetime”

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

        public Optional<String> getLastQuickScanSignatureVersion()
        “Last quick scan signature version”
        Returns:
        property lastQuickScanSignatureVersion
      • withLastQuickScanSignatureVersion

        public WindowsProtectionState withLastQuickScanSignatureVersion​(String lastQuickScanSignatureVersion)
        Returns an immutable copy of this with just the lastQuickScanSignatureVersion 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 quick scan signature version”

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

        public Optional<OffsetDateTime> getLastReportedDateTime()
        “Last device health status reported time”
        Returns:
        property lastReportedDateTime
      • withLastReportedDateTime

        public WindowsProtectionState withLastReportedDateTime​(OffsetDateTime lastReportedDateTime)
        Returns an immutable copy of this with just the lastReportedDateTime 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 device health status reported time”

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

        public Optional<Boolean> getMalwareProtectionEnabled()
        “When TRUE indicates anti malware is enabled when FALSE indicates anti malware is not enabled.”
        Returns:
        property malwareProtectionEnabled
      • withMalwareProtectionEnabled

        public WindowsProtectionState withMalwareProtectionEnabled​(Boolean malwareProtectionEnabled)
        Returns an immutable copy of this with just the malwareProtectionEnabled 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.

        “When TRUE indicates anti malware is enabled when FALSE indicates anti malware is not enabled.”

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

        public Optional<Boolean> getNetworkInspectionSystemEnabled()
        “When TRUE indicates network inspection system enabled, when FALSE indicates network inspection system is not enabled. Defaults to setting on client device.”
        Returns:
        property networkInspectionSystemEnabled
      • withNetworkInspectionSystemEnabled

        public WindowsProtectionState withNetworkInspectionSystemEnabled​(Boolean networkInspectionSystemEnabled)
        Returns an immutable copy of this with just the networkInspectionSystemEnabled 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.

        “When TRUE indicates network inspection system enabled, when FALSE indicates network inspection system is not enabled. Defaults to setting on client device.”

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

        public Optional<WindowsDefenderProductStatus> getProductStatus()
        “Product Status of Windows Defender Antivirus. Possible values are: noStatus, serviceNotRunning, serviceStartedWithoutMalwareProtection, pendingFullScanDueToThreatAction, pendingRebootDueToThreatAction, pendingManualStepsDueToThreatAction, avSignaturesOutOfDate, asSignaturesOutOfDate, noQuickScanHappenedForSpecifiedPeriod, noFullScanHappenedForSpecifiedPeriod, systemInitiatedScanInProgress, systemInitiatedCleanInProgress, samplesPendingSubmission, productRunningInEvaluationMode, productRunningInNonGenuineMode, productExpired, offlineScanRequired, serviceShutdownAsPartOfSystemShutdown, threatRemediationFailedCritically, threatRemediationFailedNonCritically, noStatusFlagsSet, platformOutOfDate, platformUpdateInProgress, platformAboutToBeOutdated, signatureOrPlatformEndOfLifeIsPastOrIsImpending, windowsSModeSignaturesInUseOnNonWin10SInstall.”
        Returns:
        property productStatus
      • withProductStatus

        public WindowsProtectionState withProductStatus​(WindowsDefenderProductStatus productStatus)
        Returns an immutable copy of this with just the productStatus 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.

        “Product Status of Windows Defender Antivirus. Possible values are: noStatus, serviceNotRunning, serviceStartedWithoutMalwareProtection, pendingFullScanDueToThreatAction, pendingRebootDueToThreatAction, pendingManualStepsDueToThreatAction, avSignaturesOutOfDate, asSignaturesOutOfDate, noQuickScanHappenedForSpecifiedPeriod, noFullScanHappenedForSpecifiedPeriod, systemInitiatedScanInProgress, systemInitiatedCleanInProgress, samplesPendingSubmission, productRunningInEvaluationMode, productRunningInNonGenuineMode, productExpired, offlineScanRequired, serviceShutdownAsPartOfSystemShutdown, threatRemediationFailedCritically, threatRemediationFailedNonCritically, noStatusFlagsSet, platformOutOfDate, platformUpdateInProgress, platformAboutToBeOutdated, signatureOrPlatformEndOfLifeIsPastOrIsImpending, windowsSModeSignaturesInUseOnNonWin10SInstall.”

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

        public Optional<Boolean> getQuickScanOverdue()
        “When TRUE indicates quick scan is overdue, when FALSE indicates quick scan is not overdue. Defaults to setting on client device.”
        Returns:
        property quickScanOverdue
      • withQuickScanOverdue

        public WindowsProtectionState withQuickScanOverdue​(Boolean quickScanOverdue)
        Returns an immutable copy of this with just the quickScanOverdue 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.

        “When TRUE indicates quick scan is overdue, when FALSE indicates quick scan is not overdue. Defaults to setting on client device.”

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

        public Optional<Boolean> getRealTimeProtectionEnabled()
        “When TRUE indicates real time protection is enabled, when FALSE indicates real time protection is not enabled. Defaults to setting on client device.”
        Returns:
        property realTimeProtectionEnabled
      • withRealTimeProtectionEnabled

        public WindowsProtectionState withRealTimeProtectionEnabled​(Boolean realTimeProtectionEnabled)
        Returns an immutable copy of this with just the realTimeProtectionEnabled 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.

        “When TRUE indicates real time protection is enabled, when FALSE indicates real time protection is not enabled. Defaults to setting on client device.”

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

        public Optional<Boolean> getRebootRequired()
        “When TRUE indicates reboot is required, when FALSE indicates when TRUE indicates reboot is not required. Defaults to setting on client device.”
        Returns:
        property rebootRequired
      • withRebootRequired

        public WindowsProtectionState withRebootRequired​(Boolean rebootRequired)
        Returns an immutable copy of this with just the rebootRequired 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.

        “When TRUE indicates reboot is required, when FALSE indicates when TRUE indicates reboot is not required. Defaults to setting on client device.”

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

        public Optional<Boolean> getSignatureUpdateOverdue()
        “When TRUE indicates signature is out of date, when FALSE indicates signature is not out of date. Defaults to setting on client device.”
        Returns:
        property signatureUpdateOverdue
      • withSignatureUpdateOverdue

        public WindowsProtectionState withSignatureUpdateOverdue​(Boolean signatureUpdateOverdue)
        Returns an immutable copy of this with just the signatureUpdateOverdue 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.

        “When TRUE indicates signature is out of date, when FALSE indicates signature is not out of date. Defaults to setting on client device.”

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

        public Optional<String> getSignatureVersion()
        “Current malware definitions version”
        Returns:
        property signatureVersion
      • withSignatureVersion

        public WindowsProtectionState withSignatureVersion​(String signatureVersion)
        Returns an immutable copy of this with just the signatureVersion 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.

        “Current malware definitions version”

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

        public Optional<Boolean> getTamperProtectionEnabled()
        “When TRUE indicates the Windows Defender tamper protection feature is enabled, when FALSE indicates the Windows Defender tamper protection feature is not enabled. Defaults to setting on client device.”
        Returns:
        property tamperProtectionEnabled
      • withTamperProtectionEnabled

        public WindowsProtectionState withTamperProtectionEnabled​(Boolean tamperProtectionEnabled)
        Returns an immutable copy of this with just the tamperProtectionEnabled 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.

        “When TRUE indicates the Windows Defender tamper protection feature is enabled, when FALSE indicates the Windows Defender tamper protection feature is not enabled. Defaults to setting on client device.”

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