Package odata.msgraph.client.beta.entity
Class MobileAppDependency
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MobileAppRelationship
-
- odata.msgraph.client.beta.entity.MobileAppDependency
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MobileAppDependency extends MobileAppRelationship implements com.github.davidmoten.odata.client.ODataEntityType
“Describes a dependency type between two mobile apps.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMobileAppDependency.Builder
-
Field Summary
Fields Modifier and Type Field Description protected MobileAppDependencyTypedependencyTypeprotected IntegerdependentAppCountprotected IntegerdependsOnAppCount-
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 protectedMobileAppDependency()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MobileAppDependency.BuilderbuilderMobileAppDependency()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<MobileAppDependencyType>getDependencyType()“The type of dependency relationship between the parent and child apps.”Optional<Integer>getDependentAppCount()“The total number of apps that directly or indirectly depend on the parent app.”Optional<Integer>getDependsOnAppCount()“The total number of apps the child app directly or indirectly depends on.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()MobileAppDependencypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MobileAppDependencyput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MobileAppDependencywithDependencyType(MobileAppDependencyType dependencyType)Returns an immutable copy ofthiswith just thedependencyTypefield changed.MobileAppDependencywithDependentAppCount(Integer dependentAppCount)Returns an immutable copy ofthiswith just thedependentAppCountfield changed.MobileAppDependencywithDependsOnAppCount(Integer dependsOnAppCount)Returns an immutable copy ofthiswith just thedependsOnAppCountfield changed.MobileAppDependencywithUnmappedField(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
-
dependencyType
protected MobileAppDependencyType dependencyType
-
dependentAppCount
protected Integer dependentAppCount
-
dependsOnAppCount
protected Integer dependsOnAppCount
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classMobileAppRelationship
-
builderMobileAppDependency
public static MobileAppDependency.Builder builderMobileAppDependency()
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
-
getDependencyType
public Optional<MobileAppDependencyType> getDependencyType()
“The type of dependency relationship between the parent and child apps.”- Returns:
- property dependencyType
-
withDependencyType
public MobileAppDependency withDependencyType(MobileAppDependencyType dependencyType)
Returns an immutable copy ofthiswith just thedependencyTypefield 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 dependency relationship between the parent and child apps.”
- Parameters:
dependencyType- new value ofdependencyTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedependencyTypefield changed
-
getDependentAppCount
public Optional<Integer> getDependentAppCount()
“The total number of apps that directly or indirectly depend on the parent app.”- Returns:
- property dependentAppCount
-
withDependentAppCount
public MobileAppDependency withDependentAppCount(Integer dependentAppCount)
Returns an immutable copy ofthiswith just thedependentAppCountfield 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 that directly or indirectly depend on the parent app.”
- Parameters:
dependentAppCount- new value ofdependentAppCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedependentAppCountfield changed
-
getDependsOnAppCount
public Optional<Integer> getDependsOnAppCount()
“The total number of apps the child app directly or indirectly depends on.”- Returns:
- property dependsOnAppCount
-
withDependsOnAppCount
public MobileAppDependency withDependsOnAppCount(Integer dependsOnAppCount)
Returns an immutable copy ofthiswith just thedependsOnAppCountfield 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 the child app directly or indirectly depends on.”
- Parameters:
dependsOnAppCount- new value ofdependsOnAppCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedependsOnAppCountfield changed
-
withUnmappedField
public MobileAppDependency 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 MobileAppDependency 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 MobileAppDependency 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
-
-