Package odata.msgraph.client.beta.entity
Class AndroidForWorkApp
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MobileApp
-
- odata.msgraph.client.beta.entity.AndroidForWorkApp
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AndroidForWorkApp extends MobileApp implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties and inherited properties for Android for Work (AFW) Apps.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidForWorkApp.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringappIdentifierprotected StringappStoreUrlprotected StringpackageIdprotected IntegertotalLicenseCountprotected IntegerusedLicenseCount-
Fields inherited from class odata.msgraph.client.beta.entity.MobileApp
createdDateTime, dependentAppCount, description, developer, displayName, informationUrl, isAssigned, isFeatured, largeIcon, lastModifiedDateTime, notes, owner, privacyInformationUrl, publisher, publishingState, roleScopeTagIds, roleScopeTagIdsNextLink, supersededAppCount, supersedingAppCount, uploadState
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidForWorkApp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidForWorkApp.BuilderbuilderAndroidForWorkApp()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAppIdentifier()“The Identity Name.”Optional<String>getAppStoreUrl()“The Play for Work Store app URL.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getPackageId()“The package identifier.”Optional<Integer>getTotalLicenseCount()“The total number of VPP licenses.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Integer>getUsedLicenseCount()“The number of VPP licenses in use.”StringodataTypeName()AndroidForWorkApppatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AndroidForWorkAppput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AndroidForWorkAppwithAppIdentifier(String appIdentifier)Returns an immutable copy ofthiswith just theappIdentifierfield changed.AndroidForWorkAppwithAppStoreUrl(String appStoreUrl)Returns an immutable copy ofthiswith just theappStoreUrlfield changed.AndroidForWorkAppwithPackageId(String packageId)Returns an immutable copy ofthiswith just thepackageIdfield changed.AndroidForWorkAppwithTotalLicenseCount(Integer totalLicenseCount)Returns an immutable copy ofthiswith just thetotalLicenseCountfield changed.AndroidForWorkAppwithUnmappedField(String name, String value)AndroidForWorkAppwithUsedLicenseCount(Integer usedLicenseCount)Returns an immutable copy ofthiswith just theusedLicenseCountfield changed.-
Methods inherited from class odata.msgraph.client.beta.entity.MobileApp
assign, getAssignments, getCategories, getCreatedDateTime, getDependentAppCount, getDescription, getDeveloper, getDeviceStatuses, getDisplayName, getInformationUrl, getInstallSummary, getIsAssigned, getIsFeatured, getLargeIcon, getLastModifiedDateTime, getNotes, getOwner, getPrivacyInformationUrl, getPublisher, getPublishingState, getRelatedAppStates, getRelationships, getRoleScopeTagIds, getRoleScopeTagIds, getSupersededAppCount, getSupersedingAppCount, getUploadState, getUserStatuses, updateRelationships, withCreatedDateTime, withDependentAppCount, withDescription, withDeveloper, withDisplayName, withInformationUrl, withIsAssigned, withIsFeatured, withLargeIcon, withLastModifiedDateTime, withNotes, withOwner, withPrivacyInformationUrl, withPublisher, withPublishingState, withRoleScopeTagIds, withSupersededAppCount, withSupersedingAppCount, withUploadState
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classMobileApp
-
builderAndroidForWorkApp
public static AndroidForWorkApp.Builder builderAndroidForWorkApp()
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 classMobileApp
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classMobileApp
-
getAppIdentifier
public Optional<String> getAppIdentifier()
“The Identity Name.”- Returns:
- property appIdentifier
-
withAppIdentifier
public AndroidForWorkApp withAppIdentifier(String appIdentifier)
Returns an immutable copy ofthiswith just theappIdentifierfield 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 Identity Name.”
- Parameters:
appIdentifier- new value ofappIdentifierfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappIdentifierfield changed
-
getAppStoreUrl
public Optional<String> getAppStoreUrl()
“The Play for Work Store app URL.”- Returns:
- property appStoreUrl
-
withAppStoreUrl
public AndroidForWorkApp withAppStoreUrl(String appStoreUrl)
Returns an immutable copy ofthiswith just theappStoreUrlfield 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 Play for Work Store app URL.”
- Parameters:
appStoreUrl- new value ofappStoreUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappStoreUrlfield changed
-
getPackageId
public Optional<String> getPackageId()
“The package identifier.”- Returns:
- property packageId
-
withPackageId
public AndroidForWorkApp withPackageId(String packageId)
Returns an immutable copy ofthiswith just thepackageIdfield 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 package identifier.”
- Parameters:
packageId- new value ofpackageIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepackageIdfield changed
-
getTotalLicenseCount
public Optional<Integer> getTotalLicenseCount()
“The total number of VPP licenses.”- Returns:
- property totalLicenseCount
-
withTotalLicenseCount
public AndroidForWorkApp withTotalLicenseCount(Integer totalLicenseCount)
Returns an immutable copy ofthiswith just thetotalLicenseCountfield 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 total number of VPP licenses.”
- Parameters:
totalLicenseCount- new value oftotalLicenseCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetotalLicenseCountfield changed
-
getUsedLicenseCount
public Optional<Integer> getUsedLicenseCount()
“The number of VPP licenses in use.”- Returns:
- property usedLicenseCount
-
withUsedLicenseCount
public AndroidForWorkApp withUsedLicenseCount(Integer usedLicenseCount)
Returns an immutable copy ofthiswith just theusedLicenseCountfield 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 number of VPP licenses in use.”
- Parameters:
usedLicenseCount- new value ofusedLicenseCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theusedLicenseCountfield changed
-
withUnmappedField
public AndroidForWorkApp withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classMobileApp
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classMobileApp
-
patch
public AndroidForWorkApp patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public AndroidForWorkApp put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-