Class Win32LobAppProductCodeRule

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

    public class Win32LobAppProductCodeRule
    extends Win32LobAppRule
    implements com.github.davidmoten.odata.client.ODataType
    “A complex type to store the product code and version rule data for a Win32 LOB app. This rule is not supported as a requirement rule.”
    • Constructor Detail

      • Win32LobAppProductCodeRule

        protected Win32LobAppProductCodeRule()
    • Method Detail

      • odataTypeName

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

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

        public Win32LobAppProductCodeRule 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 of the app.”

        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 comparison value.”
        Returns:
        property productVersion
      • withProductVersion

        public Win32LobAppProductCodeRule 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 comparison value.”

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

        public Optional<Win32LobAppRuleOperator> getProductVersionOperator()
        “The product version comparison operator.”
        Returns:
        property productVersionOperator
      • withProductVersionOperator

        public Win32LobAppProductCodeRule withProductVersionOperator​(Win32LobAppRuleOperator productVersionOperator)
        Returns an immutable copy of this with just the productVersionOperator 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 comparison operator.”

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

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

        public static Win32LobAppProductCodeRule.Builder builderWin32LobAppProductCodeRule()
        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