Class MacOSLobApp

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

    public class MacOSLobApp
    extends MobileLobApp
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties and inherited properties for the macOS LOB App.”
    • Field Detail

      • buildNumber

        protected String buildNumber
      • bundleId

        protected String bundleId
      • childAppsNextLink

        protected String childAppsNextLink
      • ignoreVersionDetection

        protected Boolean ignoreVersionDetection
      • installAsManaged

        protected Boolean installAsManaged
      • md5HashNextLink

        protected String md5HashNextLink
      • md5HashChunkSize

        protected Integer md5HashChunkSize
      • versionNumber

        protected String versionNumber
    • Constructor Detail

      • MacOSLobApp

        protected MacOSLobApp()
    • Method Detail

      • odataTypeName

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

        public static MacOSLobApp.Builder builderMacOSLobApp()
        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 MobileLobApp
      • postInject

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

        public Optional<String> getBuildNumber()
        “The build number of the package. This should match the package CFBundleShortVersionString of the .pkg file.”
        Returns:
        property buildNumber
      • withBuildNumber

        public MacOSLobApp withBuildNumber​(String buildNumber)
        Returns an immutable copy of this with just the buildNumber 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 build number of the package. This should match the package CFBundleShortVersionString of the .pkg file.”

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

        public Optional<String> getBundleId()
        “The primary bundleId of the package.”
        Returns:
        property bundleId
      • withBundleId

        public MacOSLobApp withBundleId​(String bundleId)
        Returns an immutable copy of this with just the bundleId 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 primary bundleId of the package.”

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

        public com.github.davidmoten.odata.client.CollectionPage<MacOSLobChildApp> getChildApps()
        “List of ComplexType macOSLobChildApp objects. Represents the apps expected to be installed by the package.”
        Returns:
        property childApps
      • withChildApps

        public MacOSLobApp withChildApps​(List<MacOSLobChildApp> childApps)
        Returns an immutable copy of this with just the childApps 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 ComplexType macOSLobChildApp objects. Represents the apps expected to be installed by the package.”

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

        public com.github.davidmoten.odata.client.CollectionPage<MacOSLobChildApp> getChildApps​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of ComplexType macOSLobChildApp objects. Represents the apps expected to be installed by the package.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property childApps
      • getIgnoreVersionDetection

        public Optional<Boolean> getIgnoreVersionDetection()
        “When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. The default value is FALSE.”
        Returns:
        property ignoreVersionDetection
      • withIgnoreVersionDetection

        public MacOSLobApp withIgnoreVersionDetection​(Boolean ignoreVersionDetection)
        Returns an immutable copy of this with just the ignoreVersionDetection 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.

        “When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. The default value is FALSE.”

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

        public Optional<Boolean> getInstallAsManaged()
        “When TRUE, indicates that the app will be installed as managed (requires macOS 11.0 and other managed package restrictions). When FALSE, indicates that the app will be installed as unmanaged. The default value is FALSE.”
        Returns:
        property installAsManaged
      • withInstallAsManaged

        public MacOSLobApp withInstallAsManaged​(Boolean installAsManaged)
        Returns an immutable copy of this with just the installAsManaged 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.

        “When TRUE, indicates that the app will be installed as managed (requires macOS 11.0 and other managed package restrictions). When FALSE, indicates that the app will be installed as unmanaged. The default value is FALSE.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getMd5Hash()
        “The MD5 hash codes. This is empty if the package was uploaded directly. If the Intune App Wrapping Tool is used to create a .intunemac, this value can be found inside the Detection.xml file.”
        Returns:
        property md5Hash
      • withMd5Hash

        public MacOSLobApp withMd5Hash​(List<String> md5Hash)
        Returns an immutable copy of this with just the md5Hash 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 MD5 hash codes. This is empty if the package was uploaded directly. If the Intune App Wrapping Tool is used to create a .intunemac, this value can be found inside the Detection.xml file.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getMd5Hash​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The MD5 hash codes. This is empty if the package was uploaded directly. If the Intune App Wrapping Tool is used to create a .intunemac, this value can be found inside the Detection.xml file.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property md5Hash
      • getMd5HashChunkSize

        public Optional<Integer> getMd5HashChunkSize()
        “The chunk size for MD5 hash. This is '0' or empty if the package was uploaded directly. If the Intune App Wrapping Tool is used to create a .intunemac, this value can be found inside the Detection.xml file.”
        Returns:
        property md5HashChunkSize
      • withMd5HashChunkSize

        public MacOSLobApp withMd5HashChunkSize​(Integer md5HashChunkSize)
        Returns an immutable copy of this with just the md5HashChunkSize 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 chunk size for MD5 hash. This is '0' or empty if the package was uploaded directly. If the Intune App Wrapping Tool is used to create a .intunemac, this value can be found inside the Detection.xml file.”

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

        public Optional<MacOSMinimumOperatingSystem> getMinimumSupportedOperatingSystem()
        “ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application.”
        Returns:
        property minimumSupportedOperatingSystem
      • withMinimumSupportedOperatingSystem

        public MacOSLobApp withMinimumSupportedOperatingSystem​(MacOSMinimumOperatingSystem minimumSupportedOperatingSystem)
        Returns an immutable copy of this with just the minimumSupportedOperatingSystem 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.

        “ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application.”

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

        public Optional<String> getVersionNumber()
        “The version number of the package. This should match the package CFBundleVersion in the packageinfo file.”
        Returns:
        property versionNumber
      • withVersionNumber

        public MacOSLobApp withVersionNumber​(String versionNumber)
        Returns an immutable copy of this with just the versionNumber 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 version number of the package. This should match the package CFBundleVersion in the packageinfo file.”

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

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