Class VppToken
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.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 StringcountryOrRegionprotected OffsetDateTimeexpirationDateTimeprotected OffsetDateTimelastModifiedDateTimeprotected OffsetDateTimelastSyncDateTimeprotected VppTokenSyncStatuslastSyncStatusprotected StringorganizationNameprotected VppTokenStatestateprotected Stringtokenprotected VppTokenAccountTypevppTokenAccountType-
Fields inherited from class odata.msgraph.client.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<String>getCountryOrRegion()“Whether or not apps for the VPP token will be automatically updated.”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>getOrganizationName()“The organization associated with the Apple Volume Purchase Program Token”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.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.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.VppTokenwithCountryOrRegion(String countryOrRegion)Returns an immutable copy ofthiswith just thecountryOrRegionfield 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.VppTokenwithOrganizationName(String organizationName)Returns an immutable copy ofthiswith just theorganizationNamefield changed.VppTokenwithState(VppTokenState state)Returns an immutable copy ofthiswith just thestatefield changed.VppTokenwithToken(String token)Returns an immutable copy ofthiswith just thetokenfield changed.VppTokenwithUnmappedField(String name, Object value)VppTokenwithVppTokenAccountType(VppTokenAccountType vppTokenAccountType)Returns an immutable copy ofthiswith just thevppTokenAccountTypefield changed.
-
-
-
Field Detail
-
appleId
protected String appleId
-
automaticallyUpdateApps
protected Boolean automaticallyUpdateApps
-
countryOrRegion
protected String countryOrRegion
-
expirationDateTime
protected OffsetDateTime expirationDateTime
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
lastSyncDateTime
protected OffsetDateTime lastSyncDateTime
-
lastSyncStatus
protected VppTokenSyncStatus lastSyncStatus
-
organizationName
protected String organizationName
-
state
protected VppTokenState state
-
token
protected String token
-
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
-
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
-
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
-
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
-
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
-
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, Object 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).
-
syncLicenses
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<VppToken> syncLicenses()
-
-