Class MicrosoftStoreForBusinessApp

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

    public class MicrosoftStoreForBusinessApp
    extends MobileApp
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Microsoft Store for Business Apps. This class does not support Create, Delete, or Update.”
    • Constructor Detail

      • MicrosoftStoreForBusinessApp

        protected MicrosoftStoreForBusinessApp()
    • Method Detail

      • odataTypeName

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

        public static MicrosoftStoreForBusinessApp.Builder builderMicrosoftStoreForBusinessApp()
        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 MobileApp
      • postInject

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

        public MicrosoftStoreForBusinessApp withLicenseType​(MicrosoftStoreForBusinessLicenseType licenseType)
        Returns an immutable copy of this with just the licenseType 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 app license type”

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

        public Optional<String> getPackageIdentityName()
        “The app package identifier”
        Returns:
        property packageIdentityName
      • withPackageIdentityName

        public MicrosoftStoreForBusinessApp withPackageIdentityName​(String packageIdentityName)
        Returns an immutable copy of this with just the packageIdentityName 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 app package identifier”

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

        public Optional<String> getProductKey()
        “The app product key”
        Returns:
        property productKey
      • withProductKey

        public MicrosoftStoreForBusinessApp withProductKey​(String productKey)
        Returns an immutable copy of this with just the productKey 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 app product key”

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

        public Optional<Integer> getTotalLicenseCount()
        “The total number of Microsoft Store for Business licenses.”
        Returns:
        property totalLicenseCount
      • withTotalLicenseCount

        public MicrosoftStoreForBusinessApp withTotalLicenseCount​(Integer totalLicenseCount)
        Returns an immutable copy of this with just the totalLicenseCount 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 total number of Microsoft Store for Business licenses.”

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

        public Optional<Integer> getUsedLicenseCount()
        “The number of Microsoft Store for Business licenses in use.”
        Returns:
        property usedLicenseCount
      • withUsedLicenseCount

        public MicrosoftStoreForBusinessApp withUsedLicenseCount​(Integer usedLicenseCount)
        Returns an immutable copy of this with just the usedLicenseCount 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 number of Microsoft Store for Business licenses in use.”

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