Class VppToken
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVppToken.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringappleIdprotected BooleanautomaticallyUpdateAppsprotected BooleanclaimTokenManagementFromExternalMdmprotected StringcountryOrRegionprotected BooleandataSharingConsentGrantedprotected StringdisplayNameprotected OffsetDateTimeexpirationDateTimeprotected OffsetDateTimelastModifiedDateTimeprotected OffsetDateTimelastSyncDateTimeprotected VppTokenSyncStatuslastSyncStatusprotected StringlocationNameprotected StringorganizationNameprotected List<String>roleScopeTagIdsprotected StringroleScopeTagIdsNextLinkprotected VppTokenStatestateprotected Stringtokenprotected List<VppTokenActionResult>tokenActionResultsprotected StringtokenActionResultsNextLinkprotected VppTokenAccountTypevppTokenAccountType-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVppToken()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VppToken.BuilderbuilderVppToken()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAppleId()“The apple Id associated with the given Apple Volume Purchase Program Token.”Optional<Boolean>getAutomaticallyUpdateApps()“Whether or not apps for the VPP token will be automatically updated.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getClaimTokenManagementFromExternalMdm()“Admin consent to allow claiming token management from external MDM.”Optional<String>getCountryOrRegion()“Whether or not apps for the VPP token will be automatically updated.”Optional<Boolean>getDataSharingConsentGranted()“Consent granted for data sharing with the Apple Volume Purchase Program.”Optional<String>getDisplayName()“An admin specified token friendly name.”Optional<OffsetDateTime>getExpirationDateTime()“The expiration date time of the Apple Volume Purchase Program Token.”Optional<OffsetDateTime>getLastModifiedDateTime()“Last modification date time associated with the Apple Volume Purchase Program Token.”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.”Optional<VppTokenSyncStatus>getLastSyncStatus()“Current sync status of the last application sync which was triggered using the Apple Volume Purchase Program Token.Optional<String>getLocationName()“Token location returned from Apple VPP.”Optional<String>getOrganizationName()“The organization associated with the Apple Volume Purchase Program Token”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds()“Role Scope Tags IDs assigned to this entity.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“Role Scope Tags IDs assigned to this entity.”Optional<VppTokenState>getState()“Current state of the Apple Volume Purchase Program Token.Optional<String>getToken()“The Apple Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program.”com.github.davidmoten.odata.client.CollectionPage<VppTokenActionResult>getTokenActionResults()“The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.”com.github.davidmoten.odata.client.CollectionPage<VppTokenActionResult>getTokenActionResults(com.github.davidmoten.odata.client.HttpRequestOptions options)“The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<VppTokenAccountType>getVppTokenAccountType()“The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with.StringodataTypeName()VppTokenpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)VppTokenput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnrevokeLicenses(Boolean notifyManagedDevices, Boolean revokeUntrackedLicenses)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<VppToken>syncLicenses()StringtoString()VppTokenwithAppleId(String appleId)Returns an immutable copy ofthiswith just theappleIdfield changed.VppTokenwithAutomaticallyUpdateApps(Boolean automaticallyUpdateApps)Returns an immutable copy ofthiswith just theautomaticallyUpdateAppsfield changed.VppTokenwithClaimTokenManagementFromExternalMdm(Boolean claimTokenManagementFromExternalMdm)Returns an immutable copy ofthiswith just theclaimTokenManagementFromExternalMdmfield changed.VppTokenwithCountryOrRegion(String countryOrRegion)Returns an immutable copy ofthiswith just thecountryOrRegionfield changed.VppTokenwithDataSharingConsentGranted(Boolean dataSharingConsentGranted)Returns an immutable copy ofthiswith just thedataSharingConsentGrantedfield changed.VppTokenwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.VppTokenwithExpirationDateTime(OffsetDateTime expirationDateTime)Returns an immutable copy ofthiswith just theexpirationDateTimefield changed.VppTokenwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.VppTokenwithLastSyncDateTime(OffsetDateTime lastSyncDateTime)Returns an immutable copy ofthiswith just thelastSyncDateTimefield changed.VppTokenwithLastSyncStatus(VppTokenSyncStatus lastSyncStatus)Returns an immutable copy ofthiswith just thelastSyncStatusfield changed.VppTokenwithLocationName(String locationName)Returns an immutable copy ofthiswith just thelocationNamefield changed.VppTokenwithOrganizationName(String organizationName)Returns an immutable copy ofthiswith just theorganizationNamefield changed.VppTokenwithRoleScopeTagIds(List<String> roleScopeTagIds)Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed.VppTokenwithState(VppTokenState state)Returns an immutable copy ofthiswith just thestatefield changed.VppTokenwithToken(String token)Returns an immutable copy ofthiswith just thetokenfield changed.VppTokenwithTokenActionResults(List<VppTokenActionResult> tokenActionResults)Returns an immutable copy ofthiswith just thetokenActionResultsfield changed.VppTokenwithUnmappedField(String name, String value)VppTokenwithVppTokenAccountType(VppTokenAccountType vppTokenAccountType)Returns an immutable copy ofthiswith just thevppTokenAccountTypefield changed.
-
-
-
Field Detail
-
appleId
protected String appleId
-
automaticallyUpdateApps
protected Boolean automaticallyUpdateApps
-
claimTokenManagementFromExternalMdm
protected Boolean claimTokenManagementFromExternalMdm
-
countryOrRegion
protected String countryOrRegion
-
dataSharingConsentGranted
protected Boolean dataSharingConsentGranted
-
displayName
protected String displayName
-
expirationDateTime
protected OffsetDateTime expirationDateTime
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
lastSyncDateTime
protected OffsetDateTime lastSyncDateTime
-
lastSyncStatus
protected VppTokenSyncStatus lastSyncStatus
-
locationName
protected String locationName
-
organizationName
protected String organizationName
-
roleScopeTagIdsNextLink
protected String roleScopeTagIdsNextLink
-
state
protected VppTokenState state
-
token
protected String token
-
tokenActionResults
protected List<VppTokenActionResult> tokenActionResults
-
tokenActionResultsNextLink
protected String tokenActionResultsNextLink
-
vppTokenAccountType
protected VppTokenAccountType vppTokenAccountType
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
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 ofthiswith just theappleIdfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofappleIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappleIdfield 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 ofthiswith just theautomaticallyUpdateAppsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofautomaticallyUpdateAppsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theautomaticallyUpdateAppsfield changed
-
getClaimTokenManagementFromExternalMdm
public Optional<Boolean> getClaimTokenManagementFromExternalMdm()
“Admin consent to allow claiming token management from external MDM.”- Returns:
- property claimTokenManagementFromExternalMdm
-
withClaimTokenManagementFromExternalMdm
public VppToken withClaimTokenManagementFromExternalMdm(Boolean claimTokenManagementFromExternalMdm)
Returns an immutable copy ofthiswith just theclaimTokenManagementFromExternalMdmfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Admin consent to allow claiming token management from external MDM.”
- Parameters:
claimTokenManagementFromExternalMdm- new value ofclaimTokenManagementFromExternalMdmfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theclaimTokenManagementFromExternalMdmfield 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 ofthiswith just thecountryOrRegionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofcountryOrRegionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecountryOrRegionfield changed
-
getDataSharingConsentGranted
public Optional<Boolean> getDataSharingConsentGranted()
“Consent granted for data sharing with the Apple Volume Purchase Program.”- Returns:
- property dataSharingConsentGranted
-
withDataSharingConsentGranted
public VppToken withDataSharingConsentGranted(Boolean dataSharingConsentGranted)
Returns an immutable copy ofthiswith just thedataSharingConsentGrantedfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Consent granted for data sharing with the Apple Volume Purchase Program.”
- Parameters:
dataSharingConsentGranted- new value ofdataSharingConsentGrantedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedataSharingConsentGrantedfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“An admin specified token friendly name.”- Returns:
- property displayName
-
withDisplayName
public VppToken withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“An admin specified token friendly name.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield 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 ofthiswith just theexpirationDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofexpirationDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexpirationDateTimefield 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 ofthiswith just thelastModifiedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield 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 ofthiswith just thelastSyncDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 oflastSyncDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastSyncDateTimefield 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 ofthiswith just thelastSyncStatusfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 oflastSyncStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastSyncStatusfield changed
-
getLocationName
public Optional<String> getLocationName()
“Token location returned from Apple VPP.”- Returns:
- property locationName
-
withLocationName
public VppToken withLocationName(String locationName)
Returns an immutable copy ofthiswith just thelocationNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Token location returned from Apple VPP.”
- Parameters:
locationName- new value oflocationNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelocationNamefield 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 ofthiswith just theorganizationNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 oforganizationNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theorganizationNamefield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
“Role Scope Tags IDs assigned to this entity.”- Returns:
- property roleScopeTagIds
-
withRoleScopeTagIds
public VppToken withRoleScopeTagIds(List<String> roleScopeTagIds)
Returns an immutable copy ofthiswith just theroleScopeTagIdsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Role Scope Tags IDs assigned to this entity.”
- Parameters:
roleScopeTagIds- new value ofroleScopeTagIdsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theroleScopeTagIdsfield changed
-
getRoleScopeTagIds
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Role Scope Tags IDs assigned to this entity.”- Parameters:
options- specify connect and read timeouts- Returns:
- property roleScopeTagIds
-
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 ofthiswith just thestatefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield 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 ofthiswith just thetokenfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 oftokenfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetokenfield changed
-
getTokenActionResults
public com.github.davidmoten.odata.client.CollectionPage<VppTokenActionResult> getTokenActionResults()
“The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.”- Returns:
- property tokenActionResults
-
withTokenActionResults
public VppToken withTokenActionResults(List<VppTokenActionResult> tokenActionResults)
Returns an immutable copy ofthiswith just thetokenActionResultsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.”
- Parameters:
tokenActionResults- new value oftokenActionResultsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetokenActionResultsfield changed
-
getTokenActionResults
public com.github.davidmoten.odata.client.CollectionPage<VppTokenActionResult> getTokenActionResults(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.”- Parameters:
options- specify connect and read timeouts- Returns:
- property tokenActionResults
-
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 ofthiswith just thevppTokenAccountTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofvppTokenAccountTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevppTokenAccountTypefield changed
-
withUnmappedField
public VppToken withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public VppToken patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public VppToken put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
revokeLicenses
public com.github.davidmoten.odata.client.ActionRequestNoReturn revokeLicenses(Boolean notifyManagedDevices, Boolean revokeUntrackedLicenses)
-
syncLicenses
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<VppToken> syncLicenses()
-
-