Class ManagedApp

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType
    Direct Known Subclasses:
    ManagedAndroidStoreApp, ManagedIOSStoreApp, ManagedMobileLobApp

    public class ManagedApp
    extends MobileApp
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Abstract class that contains properties and inherited properties for apps that you can manage with an Intune app protection policy.”
    • Constructor Detail

      • ManagedApp

        protected ManagedApp()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class MobileApp
      • 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 MobileApp
      • postInject

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

        public Optional<ManagedAppAvailability> getAppAvailability()
        “The Application's availability.”
        Returns:
        property appAvailability
      • withAppAvailability

        public ManagedApp withAppAvailability​(ManagedAppAvailability appAvailability)
        Returns an immutable copy of this with just the appAvailability 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 Application's availability.”

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

        public Optional<String> getVersion()
        “The Application's version.”
        Returns:
        property version
      • withVersion

        public ManagedApp withVersion​(String version)
        Returns an immutable copy of this with just the version 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 Application's version.”

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

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