Class AppVulnerabilityTask

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

    public class AppVulnerabilityTask
    extends DeviceAppManagementTask
    implements com.github.davidmoten.odata.client.ODataEntityType
    “An app vulnerability task.”
    • Constructor Detail

      • AppVulnerabilityTask

        protected AppVulnerabilityTask()
    • Method Detail

      • builderAppVulnerabilityTask

        public static AppVulnerabilityTask.Builder builderAppVulnerabilityTask()
        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 DeviceAppManagementTask
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class DeviceAppManagementTask
      • getAppName

        public Optional<String> getAppName()
        “The app name.”
        Returns:
        property appName
      • withAppName

        public AppVulnerabilityTask withAppName​(String appName)
        Returns an immutable copy of this with just the appName 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 app name.”

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

        public Optional<String> getAppPublisher()
        “The app publisher.”
        Returns:
        property appPublisher
      • withAppPublisher

        public AppVulnerabilityTask withAppPublisher​(String appPublisher)
        Returns an immutable copy of this with just the appPublisher 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 app publisher.”

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

        public Optional<String> getAppVersion()
        “The app version.”
        Returns:
        property appVersion
      • withAppVersion

        public AppVulnerabilityTask withAppVersion​(String appVersion)
        Returns an immutable copy of this with just the appVersion 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 app version.”

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

        public Optional<String> getInsights()
        “Information about the mitigation.”
        Returns:
        property insights
      • withInsights

        public AppVulnerabilityTask withInsights​(String insights)
        Returns an immutable copy of this with just the insights 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.

        “Information about the mitigation.”

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

        public Optional<Integer> getManagedDeviceCount()
        “The number of vulnerable devices.”
        Returns:
        property managedDeviceCount
      • withManagedDeviceCount

        public AppVulnerabilityTask withManagedDeviceCount​(Integer managedDeviceCount)
        Returns an immutable copy of this with just the managedDeviceCount 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 number of vulnerable devices.”

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

        public AppVulnerabilityTask withMitigationType​(AppVulnerabilityTaskMitigationType mitigationType)
        Returns an immutable copy of this with just the mitigationType 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 mitigation type.”

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

        public Optional<Integer> getMobileAppCount()
        “The number of vulnerable mobile apps.”
        Returns:
        property mobileAppCount
      • withMobileAppCount

        public AppVulnerabilityTask withMobileAppCount​(Integer mobileAppCount)
        Returns an immutable copy of this with just the mobileAppCount 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 number of vulnerable mobile apps.”

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

        public Optional<String> getRemediation()
        “The remediation steps.”
        Returns:
        property remediation
      • withRemediation

        public AppVulnerabilityTask withRemediation​(String remediation)
        Returns an immutable copy of this with just the remediation 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 remediation steps.”

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

        public AppVulnerabilityTask patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class DeviceAppManagementTask
        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 AppVulnerabilityTask 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 DeviceAppManagementTask
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected