Class MobileAppRelationship

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType
    Direct Known Subclasses:
    MobileAppDependency, MobileAppSupersedence

    public class MobileAppRelationship
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Describes a relationship between two mobile apps.”
    • Constructor Detail

      • MobileAppRelationship

        protected MobileAppRelationship()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getTargetDisplayName

        public Optional<String> getTargetDisplayName()
        “The target mobile app's display name.”
        Returns:
        property targetDisplayName
      • withTargetDisplayName

        public MobileAppRelationship withTargetDisplayName​(String targetDisplayName)
        Returns an immutable copy of this with just the targetDisplayName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The target mobile app's display name.”

        Parameters:
        targetDisplayName - new value of targetDisplayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the targetDisplayName field changed
      • getTargetDisplayVersion

        public Optional<String> getTargetDisplayVersion()
        “The target mobile app's display version.”
        Returns:
        property targetDisplayVersion
      • withTargetDisplayVersion

        public MobileAppRelationship withTargetDisplayVersion​(String targetDisplayVersion)
        Returns an immutable copy of this with just the targetDisplayVersion field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The target mobile app's display version.”

        Parameters:
        targetDisplayVersion - new value of targetDisplayVersion field (as defined in service metadata)
        Returns:
        immutable copy of this with just the targetDisplayVersion field changed
      • getTargetId

        public Optional<String> getTargetId()
        “The target mobile app's app id.”
        Returns:
        property targetId
      • withTargetId

        public MobileAppRelationship withTargetId​(String targetId)
        Returns an immutable copy of this with just the targetId field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The target mobile app's app id.”

        Parameters:
        targetId - new value of targetId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the targetId field changed
      • getTargetPublisher

        public Optional<String> getTargetPublisher()
        “The target mobile app's publisher.”
        Returns:
        property targetPublisher
      • withTargetPublisher

        public MobileAppRelationship withTargetPublisher​(String targetPublisher)
        Returns an immutable copy of this with just the targetPublisher field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The target mobile app's publisher.”

        Parameters:
        targetPublisher - new value of targetPublisher field (as defined in service metadata)
        Returns:
        immutable copy of this with just the targetPublisher field changed
      • getTargetType

        public Optional<MobileAppRelationshipType> getTargetType()
        “The type of relationship indicating whether the target is a parent or child.”
        Returns:
        property targetType
      • withTargetType

        public MobileAppRelationship withTargetType​(MobileAppRelationshipType targetType)
        Returns an immutable copy of this with just the targetType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The type of relationship indicating whether the target is a parent or child.”

        Parameters:
        targetType - new value of targetType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the targetType field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public MobileAppRelationship patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public MobileAppRelationship put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected