Package odata.msgraph.client.beta.entity
Class MobileAppSupersedence
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MobileAppRelationship
-
- odata.msgraph.client.beta.entity.MobileAppSupersedence
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MobileAppSupersedence extends MobileAppRelationship implements com.github.davidmoten.odata.client.ODataEntityType
“Describes a supersedence relationship between two mobile apps.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMobileAppSupersedence.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegersupersededAppCountprotected MobileAppSupersedenceTypesupersedenceTypeprotected IntegersupersedingAppCount-
Fields inherited from class odata.msgraph.client.beta.entity.MobileAppRelationship
targetDisplayName, targetDisplayVersion, targetId, targetPublisher, targetType
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMobileAppSupersedence()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MobileAppSupersedence.BuilderbuilderMobileAppSupersedence()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<Integer>getSupersededAppCount()“The total number of apps directly or indirectly superseded by the child app.”Optional<MobileAppSupersedenceType>getSupersedenceType()“The supersedence relationship type between the parent and child apps.”Optional<Integer>getSupersedingAppCount()“The total number of apps directly or indirectly superseding the parent app.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()MobileAppSupersedencepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MobileAppSupersedenceput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MobileAppSupersedencewithSupersededAppCount(Integer supersededAppCount)Returns an immutable copy ofthiswith just thesupersededAppCountfield changed.MobileAppSupersedencewithSupersedenceType(MobileAppSupersedenceType supersedenceType)Returns an immutable copy ofthiswith just thesupersedenceTypefield changed.MobileAppSupersedencewithSupersedingAppCount(Integer supersedingAppCount)Returns an immutable copy ofthiswith just thesupersedingAppCountfield changed.MobileAppSupersedencewithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.MobileAppRelationship
getTargetDisplayName, getTargetDisplayVersion, getTargetId, getTargetPublisher, getTargetType, withTargetDisplayName, withTargetDisplayVersion, withTargetId, withTargetPublisher, withTargetType
-
-
-
-
Field Detail
-
supersededAppCount
protected Integer supersededAppCount
-
supersedenceType
protected MobileAppSupersedenceType supersedenceType
-
supersedingAppCount
protected Integer supersedingAppCount
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classMobileAppRelationship
-
builderMobileAppSupersedence
public static MobileAppSupersedence.Builder builderMobileAppSupersedence()
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 classMobileAppRelationship
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classMobileAppRelationship
-
getSupersededAppCount
public Optional<Integer> getSupersededAppCount()
“The total number of apps directly or indirectly superseded by the child app.”- Returns:
- property supersededAppCount
-
withSupersededAppCount
public MobileAppSupersedence withSupersededAppCount(Integer supersededAppCount)
Returns an immutable copy ofthiswith just thesupersededAppCountfield 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 apps directly or indirectly superseded by the child app.”
- Parameters:
supersededAppCount- new value ofsupersededAppCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesupersededAppCountfield changed
-
getSupersedenceType
public Optional<MobileAppSupersedenceType> getSupersedenceType()
“The supersedence relationship type between the parent and child apps.”- Returns:
- property supersedenceType
-
withSupersedenceType
public MobileAppSupersedence withSupersedenceType(MobileAppSupersedenceType supersedenceType)
Returns an immutable copy ofthiswith just thesupersedenceTypefield 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 supersedence relationship type between the parent and child apps.”
- Parameters:
supersedenceType- new value ofsupersedenceTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesupersedenceTypefield changed
-
getSupersedingAppCount
public Optional<Integer> getSupersedingAppCount()
“The total number of apps directly or indirectly superseding the parent app.”- Returns:
- property supersedingAppCount
-
withSupersedingAppCount
public MobileAppSupersedence withSupersedingAppCount(Integer supersedingAppCount)
Returns an immutable copy ofthiswith just thesupersedingAppCountfield 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 apps directly or indirectly superseding the parent app.”
- Parameters:
supersedingAppCount- new value ofsupersedingAppCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesupersedingAppCountfield changed
-
withUnmappedField
public MobileAppSupersedence withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classMobileAppRelationship
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classMobileAppRelationship
-
patch
public MobileAppSupersedence patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classMobileAppRelationship- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public MobileAppSupersedence put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classMobileAppRelationship- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classMobileAppRelationship
-
-