Class SecurityConfigurationTask

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

    public class SecurityConfigurationTask
    extends DeviceAppManagementTask
    implements com.github.davidmoten.odata.client.ODataEntityType
    “A security configuration task.”
    • Constructor Detail

      • SecurityConfigurationTask

        protected SecurityConfigurationTask()
    • Method Detail

      • builderSecurityConfigurationTask

        public static SecurityConfigurationTask.Builder builderSecurityConfigurationTask()
        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
      • withApplicablePlatform

        public SecurityConfigurationTask withApplicablePlatform​(EndpointSecurityConfigurationApplicablePlatform applicablePlatform)
        Returns an immutable copy of this with just the applicablePlatform 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 applicable platform.”

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

        public SecurityConfigurationTask withEndpointSecurityPolicy​(EndpointSecurityConfigurationType endpointSecurityPolicy)
        Returns an immutable copy of this with just the endpointSecurityPolicy 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 endpoint security policy type.”

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

        public SecurityConfigurationTask withEndpointSecurityPolicyProfile​(EndpointSecurityConfigurationProfileType endpointSecurityPolicyProfile)
        Returns an immutable copy of this with just the endpointSecurityPolicyProfile 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 endpoint security policy profile.”

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

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

        public SecurityConfigurationTask 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
      • getIntendedSettings

        public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getIntendedSettings()
        “The intended settings and their values.”
        Returns:
        property intendedSettings
      • withIntendedSettings

        public SecurityConfigurationTask withIntendedSettings​(List<KeyValuePair> intendedSettings)
        Returns an immutable copy of this with just the intendedSettings 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 intended settings and their values.”

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

        public com.github.davidmoten.odata.client.CollectionPage<KeyValuePair> getIntendedSettings​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The intended settings and their values.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property intendedSettings
      • getManagedDeviceCount

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

        public SecurityConfigurationTask 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
      • 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 SecurityConfigurationTask 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 SecurityConfigurationTask 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