Class WindowsMobileMSI

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

    public class WindowsMobileMSI
    extends MobileLobApp
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties and inherited properties for Windows Mobile MSI Line Of Business apps.”
    • Field Detail

      • commandLine

        protected String commandLine
      • identityVersion

        protected String identityVersion
      • ignoreVersionDetection

        protected Boolean ignoreVersionDetection
      • productCode

        protected String productCode
      • productVersion

        protected String productVersion
      • useDeviceContext

        protected Boolean useDeviceContext
    • Constructor Detail

      • WindowsMobileMSI

        protected WindowsMobileMSI()
    • Method Detail

      • odataTypeName

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

        public static WindowsMobileMSI.Builder builderWindowsMobileMSI()
        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
      • getCommandLine

        public Optional<String> getCommandLine()
        “The command line.”
        Returns:
        property commandLine
      • withCommandLine

        public WindowsMobileMSI withCommandLine​(String commandLine)
        Returns an immutable copy of this with just the commandLine 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 command line.”

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

        public Optional<String> getIdentityVersion()
        “The identity version.”
        Returns:
        property identityVersion
      • withIdentityVersion

        public WindowsMobileMSI withIdentityVersion​(String identityVersion)
        Returns an immutable copy of this with just the identityVersion 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 identity version.”

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

        public Optional<Boolean> getIgnoreVersionDetection()
        “A boolean to control whether the app's version will be used to detect the app after it is installed on a device. Set this to true for Windows Mobile MSI Line of Business (LoB) apps that use a self update feature.”
        Returns:
        property ignoreVersionDetection
      • withIgnoreVersionDetection

        public WindowsMobileMSI 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.

        “A boolean to control whether the app's version will be used to detect the app after it is installed on a device. Set this to true for Windows Mobile MSI Line of Business (LoB) apps that use a self update feature.”

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

        public Optional<String> getProductCode()
        “The product code.”
        Returns:
        property productCode
      • withProductCode

        public WindowsMobileMSI withProductCode​(String productCode)
        Returns an immutable copy of this with just the productCode 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 product code.”

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

        public Optional<String> getProductVersion()
        “The product version of Windows Mobile MSI Line of Business (LoB) app.”
        Returns:
        property productVersion
      • withProductVersion

        public WindowsMobileMSI withProductVersion​(String productVersion)
        Returns an immutable copy of this with just the productVersion 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 product version of Windows Mobile MSI Line of Business (LoB) app.”

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

        public Optional<Boolean> getUseDeviceContext()
        “Indicates whether to install a dual-mode MSI in the device context. If true, app will be installed for all users. If false, app will be installed per-user. If null, service will use the MSI package's default install context. In case of dual-mode MSI, this default will be per-user. Cannot be set for non-dual-mode apps. Cannot be changed after initial creation of the application.”
        Returns:
        property useDeviceContext
      • withUseDeviceContext

        public WindowsMobileMSI withUseDeviceContext​(Boolean useDeviceContext)
        Returns an immutable copy of this with just the useDeviceContext 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.

        “Indicates whether to install a dual-mode MSI in the device context. If true, app will be installed for all users. If false, app will be installed per-user. If null, service will use the MSI package's default install context. In case of dual-mode MSI, this default will be per-user. Cannot be set for non-dual-mode apps. Cannot be changed after initial creation of the application.”

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