Package odata.msgraph.client.entity
Class MicrosoftStoreForBusinessApp
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.MobileApp
-
- odata.msgraph.client.entity.MicrosoftStoreForBusinessApp
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MicrosoftStoreForBusinessApp extends MobileApp implements com.github.davidmoten.odata.client.ODataEntityType
“Microsoft Store for Business Apps. This class does not support Create, Delete, or Update.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMicrosoftStoreForBusinessApp.Builder
-
Field Summary
Fields Modifier and Type Field Description protected MicrosoftStoreForBusinessLicenseTypelicenseTypeprotected StringpackageIdentityNameprotected StringproductKeyprotected IntegertotalLicenseCountprotected IntegerusedLicenseCount-
Fields inherited from class odata.msgraph.client.entity.MobileApp
assignments, createdDateTime, description, developer, displayName, informationUrl, isFeatured, largeIcon, lastModifiedDateTime, notes, owner, privacyInformationUrl, publisher, publishingState
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMicrosoftStoreForBusinessApp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MicrosoftStoreForBusinessApp.BuilderbuilderMicrosoftStoreForBusinessApp()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<MicrosoftStoreForBusinessLicenseType>getLicenseType()“The app license type”Optional<String>getPackageIdentityName()“The app package identifier”Optional<String>getProductKey()“The app product key”Optional<Integer>getTotalLicenseCount()“The total number of Microsoft Store for Business licenses.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Integer>getUsedLicenseCount()“The number of Microsoft Store for Business licenses in use.”StringodataTypeName()MicrosoftStoreForBusinessApppatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MicrosoftStoreForBusinessAppput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MicrosoftStoreForBusinessAppwithLicenseType(MicrosoftStoreForBusinessLicenseType licenseType)Returns an immutable copy ofthiswith just thelicenseTypefield changed.MicrosoftStoreForBusinessAppwithPackageIdentityName(String packageIdentityName)Returns an immutable copy ofthiswith just thepackageIdentityNamefield changed.MicrosoftStoreForBusinessAppwithProductKey(String productKey)Returns an immutable copy ofthiswith just theproductKeyfield changed.MicrosoftStoreForBusinessAppwithTotalLicenseCount(Integer totalLicenseCount)Returns an immutable copy ofthiswith just thetotalLicenseCountfield changed.MicrosoftStoreForBusinessAppwithUnmappedField(String name, Object value)MicrosoftStoreForBusinessAppwithUsedLicenseCount(Integer usedLicenseCount)Returns an immutable copy ofthiswith just theusedLicenseCountfield changed.-
Methods inherited from class odata.msgraph.client.entity.MobileApp
assign, getAssignments, getCategories, getCreatedDateTime, getDescription, getDeveloper, getDisplayName, getInformationUrl, getIsFeatured, getLargeIcon, getLastModifiedDateTime, getNotes, getOwner, getPrivacyInformationUrl, getPublisher, getPublishingState, withAssignments, withCreatedDateTime, withDescription, withDeveloper, withDisplayName, withInformationUrl, withIsFeatured, withLargeIcon, withLastModifiedDateTime, withNotes, withOwner, withPrivacyInformationUrl, withPublisher, withPublishingState
-
-
-
-
Field Detail
-
licenseType
protected MicrosoftStoreForBusinessLicenseType licenseType
-
packageIdentityName
protected String packageIdentityName
-
productKey
protected String productKey
-
totalLicenseCount
protected Integer totalLicenseCount
-
usedLicenseCount
protected Integer usedLicenseCount
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classMobileApp
-
builderMicrosoftStoreForBusinessApp
public static MicrosoftStoreForBusinessApp.Builder builderMicrosoftStoreForBusinessApp()
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
-
getLicenseType
public Optional<MicrosoftStoreForBusinessLicenseType> getLicenseType()
“The app license type”- Returns:
- property licenseType
-
withLicenseType
public MicrosoftStoreForBusinessApp withLicenseType(MicrosoftStoreForBusinessLicenseType licenseType)
Returns an immutable copy ofthiswith just thelicenseTypefield 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 app license type”
- Parameters:
licenseType- new value oflicenseTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelicenseTypefield changed
-
getPackageIdentityName
public Optional<String> getPackageIdentityName()
“The app package identifier”- Returns:
- property packageIdentityName
-
withPackageIdentityName
public MicrosoftStoreForBusinessApp withPackageIdentityName(String packageIdentityName)
Returns an immutable copy ofthiswith just thepackageIdentityNamefield 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 app package identifier”
- Parameters:
packageIdentityName- new value ofpackageIdentityNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepackageIdentityNamefield changed
-
getProductKey
public Optional<String> getProductKey()
“The app product key”- Returns:
- property productKey
-
withProductKey
public MicrosoftStoreForBusinessApp withProductKey(String productKey)
Returns an immutable copy ofthiswith just theproductKeyfield 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 app product key”
- Parameters:
productKey- new value ofproductKeyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproductKeyfield changed
-
getTotalLicenseCount
public Optional<Integer> getTotalLicenseCount()
“The total number of Microsoft Store for Business licenses.”- Returns:
- property totalLicenseCount
-
withTotalLicenseCount
public MicrosoftStoreForBusinessApp 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 Microsoft Store for Business 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 Microsoft Store for Business licenses in use.”- Returns:
- property usedLicenseCount
-
withUsedLicenseCount
public MicrosoftStoreForBusinessApp 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 Microsoft Store for Business licenses in use.”
- Parameters:
usedLicenseCount- new value ofusedLicenseCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theusedLicenseCountfield changed
-
withUnmappedField
public MicrosoftStoreForBusinessApp withUnmappedField(String name, Object 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 MicrosoftStoreForBusinessApp patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MicrosoftStoreForBusinessApp put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-