Class VppToken

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

    public class VppToken
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “You purchase multiple licenses for iOS apps through the Apple Volume Purchase Program for Business or Education. This involves setting up an Apple VPP account from the Apple website and uploading the Apple VPP Business or Education token to Intune. You can then synchronize your volume purchase information with Intune and track your volume-purchased app use. You can upload multiple Apple VPP Business or Education tokens.”
    • Constructor Detail

      • VppToken

        protected VppToken()
    • Method Detail

      • odataTypeName

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

        public static VppToken.Builder builderVppToken()
        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 Entity
      • postInject

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

        public Optional<String> getAppleId()
        “The apple Id associated with the given Apple Volume Purchase Program Token.”
        Returns:
        property appleId
      • withAppleId

        public VppToken withAppleId​(String appleId)
        Returns an immutable copy of this with just the appleId 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:
        appleId - new value of appleId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the appleId field changed
      • getAutomaticallyUpdateApps

        public Optional<Boolean> getAutomaticallyUpdateApps()
        “Whether or not apps for the VPP token will be automatically updated.”
        Returns:
        property automaticallyUpdateApps
      • withAutomaticallyUpdateApps

        public VppToken withAutomaticallyUpdateApps​(Boolean automaticallyUpdateApps)
        Returns an immutable copy of this with just the automaticallyUpdateApps 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.

        “Whether or not apps for the VPP token will be automatically updated.”

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

        public Optional<String> getCountryOrRegion()
        “Whether or not apps for the VPP token will be automatically updated.”
        Returns:
        property countryOrRegion
      • withCountryOrRegion

        public VppToken withCountryOrRegion​(String countryOrRegion)
        Returns an immutable copy of this with just the countryOrRegion 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.

        “Whether or not apps for the VPP token will be automatically updated.”

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

        public Optional<OffsetDateTime> getExpirationDateTime()
        “The expiration date time of the Apple Volume Purchase Program Token.”
        Returns:
        property expirationDateTime
      • withExpirationDateTime

        public VppToken withExpirationDateTime​(OffsetDateTime expirationDateTime)
        Returns an immutable copy of this with just the expirationDateTime 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 expiration date time of the Apple Volume Purchase Program Token.”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “Last modification date time associated with the Apple Volume Purchase Program Token.”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public VppToken withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime 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.

        “Last modification date time associated with the Apple Volume Purchase Program Token.”

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

        public Optional<OffsetDateTime> getLastSyncDateTime()
        “The last time when an application sync was done with the Apple volume purchase program service using the the Apple Volume Purchase Program Token.”
        Returns:
        property lastSyncDateTime
      • withLastSyncDateTime

        public VppToken withLastSyncDateTime​(OffsetDateTime lastSyncDateTime)
        Returns an immutable copy of this with just the lastSyncDateTime 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 last time when an application sync was done with the Apple volume purchase program service using the the Apple Volume Purchase Program Token.”

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

        public Optional<VppTokenSyncStatus> getLastSyncStatus()
        “Current sync status of the last application sync which was triggered using the Apple Volume Purchase Program Token. Possible values are: `none`, `inProgress`, `completed`, `failed`.”
        Returns:
        property lastSyncStatus
      • withLastSyncStatus

        public VppToken withLastSyncStatus​(VppTokenSyncStatus lastSyncStatus)
        Returns an immutable copy of this with just the lastSyncStatus 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.

        “Current sync status of the last application sync which was triggered using the Apple Volume Purchase Program Token. Possible values are: `none`, `inProgress`, `completed`, `failed`.”

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

        public Optional<String> getOrganizationName()
        “The organization associated with the Apple Volume Purchase Program Token”
        Returns:
        property organizationName
      • withOrganizationName

        public VppToken withOrganizationName​(String organizationName)
        Returns an immutable copy of this with just the organizationName 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:
        organizationName - new value of organizationName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the organizationName field changed
      • getState

        public Optional<VppTokenState> getState()
        “Current state of the Apple Volume Purchase Program Token. Possible values are: ` unknown`, `valid`, `expired`, `invalid`, `assignedToExternalMDM`.”
        Returns:
        property state
      • withState

        public VppToken withState​(VppTokenState state)
        Returns an immutable copy of this with just the state 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.

        “Current state of the Apple Volume Purchase Program Token. Possible values are: ` unknown`, `valid`, `expired`, `invalid`, `assignedToExternalMDM`.”

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

        public Optional<String> getToken()
        “The Apple Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program.”
        Returns:
        property token
      • withToken

        public VppToken withToken​(String token)
        Returns an immutable copy of this with just the token 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 Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program.”

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

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

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

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<VppToken> syncLicenses()