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()
        “Computer's state (like clean or pending full scan or pending reboot etc)”
        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.

        “Computer's state (like clean or pending full scan or pending reboot etc)”

        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()
        “Full scan overdue or not?”
        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.

        “Full scan overdue or not?”

        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()
        “Full scan required or not?”
        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.

        “Full scan required or not?”

        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()
        “Indicates whether the device is a virtual machine.”
        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.

        “Indicates whether the device is a virtual machine.”

        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()
        “Anti malware is enabled or not”
        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.

        “Anti malware is enabled or not”

        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()
        “Network inspection system enabled or not?”
        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.

        “Network inspection system enabled or not?”

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

        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()
        “Quick scan overdue or not?”
        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.

        “Quick scan overdue or not?”

        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()
        “Real time protection is enabled or not?”
        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.

        “Real time protection is enabled or not?”

        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()
        “Reboot required or not?”
        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.

        “Reboot required or not?”

        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()
        “Signature out of date or not?”
        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.

        “Signature out of date or not?”

        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()
        “Indicates whether the Windows Defender tamper protection feature is enabled.”
        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.

        “Indicates whether the Windows Defender tamper protection feature is enabled.”

        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