Class MacOsVppApp

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

    public class MacOsVppApp
    extends MobileApp
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties and inherited properties for MacOS Volume-Purchased Program (VPP) Apps.”
    • Constructor Detail

      • MacOsVppApp

        protected MacOsVppApp()
    • Method Detail

      • odataTypeName

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

        public static MacOsVppApp.Builder builderMacOsVppApp()
        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
      • getAppStoreUrl

        public Optional<String> getAppStoreUrl()
        “The store URL.”
        Returns:
        property appStoreUrl
      • withAppStoreUrl

        public MacOsVppApp withAppStoreUrl​(String appStoreUrl)
        Returns an immutable copy of this with just the appStoreUrl 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 store URL.”

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

        public Optional<String> getBundleId()
        “The Identity Name.”
        Returns:
        property bundleId
      • withBundleId

        public MacOsVppApp 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 Identity Name.”

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

        public Optional<VppLicensingType> getLicensingType()
        “The supported License Type.”
        Returns:
        property licensingType
      • withLicensingType

        public MacOsVppApp withLicensingType​(VppLicensingType licensingType)
        Returns an immutable copy of this with just the licensingType 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 supported License Type.”

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

        public Optional<OffsetDateTime> getReleaseDateTime()
        “The VPP application release date and time.”
        Returns:
        property releaseDateTime
      • withReleaseDateTime

        public MacOsVppApp withReleaseDateTime​(OffsetDateTime releaseDateTime)
        Returns an immutable copy of this with just the releaseDateTime 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 VPP application release date and time.”

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

        public com.github.davidmoten.odata.client.CollectionPage<MacOsVppAppRevokeLicensesActionResult> getRevokeLicenseActionResults()
        “Results of revoke license actions on this app.”
        Returns:
        property revokeLicenseActionResults
      • withRevokeLicenseActionResults

        public MacOsVppApp withRevokeLicenseActionResults​(List<MacOsVppAppRevokeLicensesActionResult> revokeLicenseActionResults)
        Returns an immutable copy of this with just the revokeLicenseActionResults 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.

        “Results of revoke license actions on this app.”

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

        public com.github.davidmoten.odata.client.CollectionPage<MacOsVppAppRevokeLicensesActionResult> getRevokeLicenseActionResults​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Results of revoke license actions on this app.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property revokeLicenseActionResults
      • getTotalLicenseCount

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

        public MacOsVppApp 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 VPP 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 VPP licenses in use.”
        Returns:
        property usedLicenseCount
      • withUsedLicenseCount

        public MacOsVppApp 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 VPP 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
      • getVppTokenAccountType

        public Optional<VppTokenAccountType> getVppTokenAccountType()
        “The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`.”
        Returns:
        property vppTokenAccountType
      • withVppTokenAccountType

        public MacOsVppApp withVppTokenAccountType​(VppTokenAccountType vppTokenAccountType)
        Returns an immutable copy of this with just the vppTokenAccountType 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 type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`.”

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

        public Optional<String> getVppTokenAppleId()
        “The Apple Id associated with the given Apple Volume Purchase Program Token.”
        Returns:
        property vppTokenAppleId
      • withVppTokenAppleId

        public MacOsVppApp withVppTokenAppleId​(String vppTokenAppleId)
        Returns an immutable copy of this with just the vppTokenAppleId 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 Apple Id associated with the given Apple Volume Purchase Program Token.”

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

        public Optional<String> getVppTokenId()
        “Identifier of the VPP token associated with this app.”
        Returns:
        property vppTokenId
      • withVppTokenId

        public MacOsVppApp withVppTokenId​(String vppTokenId)
        Returns an immutable copy of this with just the vppTokenId 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.

        “Identifier of the VPP token associated with this app.”

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

        public Optional<String> getVppTokenOrganizationName()
        “The organization associated with the Apple Volume Purchase Program Token”
        Returns:
        property vppTokenOrganizationName
      • withVppTokenOrganizationName

        public MacOsVppApp withVppTokenOrganizationName​(String vppTokenOrganizationName)
        Returns an immutable copy of this with just the vppTokenOrganizationName 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 organization associated with the Apple Volume Purchase Program Token”

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