Class VppToken.Builder

  • Enclosing class:
    VppToken

    public static final class VppToken.Builder
    extends Object
    • Method Detail

      • appleId

        public VppToken.Builder appleId​(String appleId)
        “The apple Id associated with the given Apple Volume Purchase Program Token.”
        Parameters:
        appleId - value of appleId property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • automaticallyUpdateApps

        public VppToken.Builder automaticallyUpdateApps​(Boolean automaticallyUpdateApps)
        “Whether or not apps for the VPP token will be automatically updated.”
        Parameters:
        automaticallyUpdateApps - value of automaticallyUpdateApps property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • claimTokenManagementFromExternalMdm

        public VppToken.Builder claimTokenManagementFromExternalMdm​(Boolean claimTokenManagementFromExternalMdm)
        “Admin consent to allow claiming token management from external MDM.”
        Parameters:
        claimTokenManagementFromExternalMdm - value of claimTokenManagementFromExternalMdm property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • countryOrRegion

        public VppToken.Builder countryOrRegion​(String countryOrRegion)
        “Whether or not apps for the VPP token will be automatically updated.”
        Parameters:
        countryOrRegion - value of countryOrRegion property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • dataSharingConsentGranted

        public VppToken.Builder dataSharingConsentGranted​(Boolean dataSharingConsentGranted)
        “Consent granted for data sharing with the Apple Volume Purchase Program.”
        Parameters:
        dataSharingConsentGranted - value of dataSharingConsentGranted property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • displayName

        public VppToken.Builder displayName​(String displayName)
        “An admin specified token friendly name.”
        Parameters:
        displayName - value of displayName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • expirationDateTime

        public VppToken.Builder expirationDateTime​(OffsetDateTime expirationDateTime)
        “The expiration date time of the Apple Volume Purchase Program Token.”
        Parameters:
        expirationDateTime - value of expirationDateTime property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • lastModifiedDateTime

        public VppToken.Builder lastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        “Last modification date time associated with the Apple Volume Purchase Program Token.”
        Parameters:
        lastModifiedDateTime - value of lastModifiedDateTime property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • lastSyncDateTime

        public VppToken.Builder lastSyncDateTime​(OffsetDateTime lastSyncDateTime)
        “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 - value of lastSyncDateTime property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • lastSyncStatus

        public VppToken.Builder lastSyncStatus​(VppTokenSyncStatus lastSyncStatus)
        “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 - value of lastSyncStatus property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • locationName

        public VppToken.Builder locationName​(String locationName)
        “Token location returned from Apple VPP.”
        Parameters:
        locationName - value of locationName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • organizationName

        public VppToken.Builder organizationName​(String organizationName)
        “The organization associated with the Apple Volume Purchase Program Token”
        Parameters:
        organizationName - value of organizationName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • roleScopeTagIds

        public VppToken.Builder roleScopeTagIds​(List<String> roleScopeTagIds)
        “Role Scope Tags IDs assigned to this entity.”
        Parameters:
        roleScopeTagIds - value of roleScopeTagIds property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • roleScopeTagIds

        public VppToken.Builder roleScopeTagIds​(String... roleScopeTagIds)
        “Role Scope Tags IDs assigned to this entity.”
        Parameters:
        roleScopeTagIds - value of roleScopeTagIds property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • roleScopeTagIdsNextLink

        public VppToken.Builder roleScopeTagIdsNextLink​(String roleScopeTagIdsNextLink)
        “Role Scope Tags IDs assigned to this entity.”
        Parameters:
        roleScopeTagIdsNextLink - value of roleScopeTagIds@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • state

        public VppToken.Builder state​(VppTokenState state)
        “Current state of the Apple Volume Purchase Program Token. Possible values are: ` unknown`, `valid`, `expired`, `invalid`, `assignedToExternalMDM`.”
        Parameters:
        state - value of state property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • token

        public VppToken.Builder token​(String token)
        “The Apple Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program.”
        Parameters:
        token - value of token property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • tokenActionResults

        public VppToken.Builder tokenActionResults​(List<VppTokenActionResult> tokenActionResults)
        “The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.”
        Parameters:
        tokenActionResults - value of tokenActionResults property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • tokenActionResults

        public VppToken.Builder tokenActionResults​(VppTokenActionResult... tokenActionResults)
        “The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.”
        Parameters:
        tokenActionResults - value of tokenActionResults property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • tokenActionResultsNextLink

        public VppToken.Builder tokenActionResultsNextLink​(String tokenActionResultsNextLink)
        “The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.”
        Parameters:
        tokenActionResultsNextLink - value of tokenActionResults@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • vppTokenAccountType

        public VppToken.Builder vppTokenAccountType​(VppTokenAccountType vppTokenAccountType)
        “The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`.”
        Parameters:
        vppTokenAccountType - value of vppTokenAccountType property (as defined in service metadata)
        Returns:
        this (for method chaining)