Class DeviceAppManagement

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

    public class DeviceAppManagement
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Singleton entity that acts as a container for all device app management functionality.”
    • Constructor Detail

      • DeviceAppManagement

        protected DeviceAppManagement()
    • Method Detail

      • odataTypeName

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

        public static DeviceAppManagement.Builder builderDeviceAppManagement()
        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
      • getIsEnabledForMicrosoftStoreForBusiness

        public Optional<Boolean> getIsEnabledForMicrosoftStoreForBusiness()
        “Whether the account is enabled for syncing applications from the Microsoft Store for Business.”
        Returns:
        property isEnabledForMicrosoftStoreForBusiness
      • withIsEnabledForMicrosoftStoreForBusiness

        public DeviceAppManagement withIsEnabledForMicrosoftStoreForBusiness​(Boolean isEnabledForMicrosoftStoreForBusiness)
        Returns an immutable copy of this with just the isEnabledForMicrosoftStoreForBusiness 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.

        “Whether the account is enabled for syncing applications from the Microsoft Store for Business.”

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

        public Optional<String> getMicrosoftStoreForBusinessLanguage()
        “The locale information used to sync applications from the Microsoft Store for Business. Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is &lt;languagecode2 &gt;-&lt;country/regioncode2&gt;, where &lt;languagecode2&gt; is a lowercase two-letter code derived from ISO 639-1 and &lt;country/regioncode2&gt; is an uppercase two-letter code derived from ISO 3166. For example, en-US for English (United States) is a specific culture.”
        Returns:
        property microsoftStoreForBusinessLanguage
      • withMicrosoftStoreForBusinessLanguage

        public DeviceAppManagement withMicrosoftStoreForBusinessLanguage​(String microsoftStoreForBusinessLanguage)
        Returns an immutable copy of this with just the microsoftStoreForBusinessLanguage 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 locale information used to sync applications from the Microsoft Store for Business. Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is &lt;languagecode2 &gt;-&lt;country/regioncode2&gt;, where &lt;languagecode2&gt; is a lowercase two-letter code derived from ISO 639-1 and &lt;country/regioncode2&gt; is an uppercase two-letter code derived from ISO 3166. For example, en-US for English (United States) is a specific culture.”

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

        public Optional<OffsetDateTime> getMicrosoftStoreForBusinessLastCompletedApplicationSyncTime()
        “The last time an application sync from the Microsoft Store for Business was completed.”
        Returns:
        property microsoftStoreForBusinessLastCompletedApplicationSyncTime
      • withMicrosoftStoreForBusinessLastCompletedApplicationSyncTime

        public DeviceAppManagement withMicrosoftStoreForBusinessLastCompletedApplicationSyncTime​(OffsetDateTime microsoftStoreForBusinessLastCompletedApplicationSyncTime)
        Returns an immutable copy of this with just the microsoftStoreForBusinessLastCompletedApplicationSyncTime 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 last time an application sync from the Microsoft Store for Business was completed.”

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

        public Optional<OffsetDateTime> getMicrosoftStoreForBusinessLastSuccessfulSyncDateTime()
        “The last time the apps from the Microsoft Store for Business were synced successfully for the account.”
        Returns:
        property microsoftStoreForBusinessLastSuccessfulSyncDateTime
      • withMicrosoftStoreForBusinessLastSuccessfulSyncDateTime

        public DeviceAppManagement withMicrosoftStoreForBusinessLastSuccessfulSyncDateTime​(OffsetDateTime microsoftStoreForBusinessLastSuccessfulSyncDateTime)
        Returns an immutable copy of this with just the microsoftStoreForBusinessLastSuccessfulSyncDateTime 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 last time the apps from the Microsoft Store for Business were synced successfully for the account.”

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

        public ManagedEBookCollectionRequest getManagedEBooks()
        “The Managed eBook.”
        Returns:
        navigational property managedEBooks
      • getMobileAppCategories

        public MobileAppCategoryCollectionRequest getMobileAppCategories()
        “The mobile app categories.”
        Returns:
        navigational property mobileAppCategories
      • getMobileApps

        public MobileAppCollectionRequest getMobileApps()
        “The mobile apps.”
        Returns:
        navigational property mobileApps
      • getVppTokens

        public VppTokenCollectionRequest getVppTokens()
        “List of Vpp tokens for this organization.”
        Returns:
        navigational property vppTokens
      • getManagedAppPolicies

        public ManagedAppPolicyCollectionRequest getManagedAppPolicies()
        “Managed app policies.”
        Returns:
        navigational property managedAppPolicies
      • getManagedAppRegistrations

        public ManagedAppRegistrationCollectionRequest getManagedAppRegistrations()
        “The managed app registrations.”
        Returns:
        navigational property managedAppRegistrations
      • getManagedAppStatuses

        public ManagedAppStatusCollectionRequest getManagedAppStatuses()
        “The managed app statuses.”
        Returns:
        navigational property managedAppStatuses
      • getMdmWindowsInformationProtectionPolicies

        public MdmWindowsInformationProtectionPolicyCollectionRequest getMdmWindowsInformationProtectionPolicies()
        “Windows information protection for apps running on devices which are MDM enrolled.”
        Returns:
        navigational property mdmWindowsInformationProtectionPolicies
      • getTargetedManagedAppConfigurations

        public TargetedManagedAppConfigurationCollectionRequest getTargetedManagedAppConfigurations()
        “Targeted managed app configurations.”
        Returns:
        navigational property targetedManagedAppConfigurations
      • getWindowsInformationProtectionPolicies

        public WindowsInformationProtectionPolicyCollectionRequest getWindowsInformationProtectionPolicies()
        “Windows information protection for apps running on devices which are not MDM enrolled.”
        Returns:
        navigational property windowsInformationProtectionPolicies
      • withManagedEBooks

        public DeviceAppManagement withManagedEBooks​(List<ManagedEBook> managedEBooks)
        Returns an immutable copy of this with just the managedEBooks 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 Managed eBook.”

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

        public DeviceAppManagement withMobileAppCategories​(List<MobileAppCategory> mobileAppCategories)
        Returns an immutable copy of this with just the mobileAppCategories 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 mobile app categories.”

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

        public DeviceAppManagement withMobileAppConfigurations​(List<ManagedDeviceMobileAppConfiguration> mobileAppConfigurations)
        Returns an immutable copy of this with just the mobileAppConfigurations 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 Managed Device Mobile Application Configurations.”

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

        public DeviceAppManagement withMobileApps​(List<MobileApp> mobileApps)
        Returns an immutable copy of this with just the mobileApps 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 mobile apps.”

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

        public DeviceAppManagement withVppTokens​(List<VppToken> vppTokens)
        Returns an immutable copy of this with just the vppTokens 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.

        “List of Vpp tokens for this organization.”

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

        public DeviceAppManagement withAndroidManagedAppProtections​(List<AndroidManagedAppProtection> androidManagedAppProtections)
        Returns an immutable copy of this with just the androidManagedAppProtections 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.

        “Android managed app policies.”

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

        public DeviceAppManagement withDefaultManagedAppProtections​(List<DefaultManagedAppProtection> defaultManagedAppProtections)
        Returns an immutable copy of this with just the defaultManagedAppProtections 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.

        “Default managed app policies.”

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

        public DeviceAppManagement withIosManagedAppProtections​(List<IosManagedAppProtection> iosManagedAppProtections)
        Returns an immutable copy of this with just the iosManagedAppProtections 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.

        “iOS managed app policies.”

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

        public DeviceAppManagement withManagedAppPolicies​(List<ManagedAppPolicy> managedAppPolicies)
        Returns an immutable copy of this with just the managedAppPolicies 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.

        “Managed app policies.”

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

        public DeviceAppManagement withManagedAppRegistrations​(List<ManagedAppRegistration> managedAppRegistrations)
        Returns an immutable copy of this with just the managedAppRegistrations 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 managed app registrations.”

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

        public DeviceAppManagement withManagedAppStatuses​(List<ManagedAppStatus> managedAppStatuses)
        Returns an immutable copy of this with just the managedAppStatuses 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 managed app statuses.”

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

        public DeviceAppManagement withMdmWindowsInformationProtectionPolicies​(List<MdmWindowsInformationProtectionPolicy> mdmWindowsInformationProtectionPolicies)
        Returns an immutable copy of this with just the mdmWindowsInformationProtectionPolicies 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.

        “Windows information protection for apps running on devices which are MDM enrolled.”

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

        public DeviceAppManagement withTargetedManagedAppConfigurations​(List<TargetedManagedAppConfiguration> targetedManagedAppConfigurations)
        Returns an immutable copy of this with just the targetedManagedAppConfigurations 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.

        “Targeted managed app configurations.”

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

        public DeviceAppManagement withWindowsInformationProtectionPolicies​(List<WindowsInformationProtectionPolicy> windowsInformationProtectionPolicies)
        Returns an immutable copy of this with just the windowsInformationProtectionPolicies 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.

        “Windows information protection for apps running on devices which are not MDM enrolled.”

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

        public com.github.davidmoten.odata.client.ActionRequestNoReturn syncMicrosoftStoreForBusinessApps()