java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<MRPChangeRequestPriority>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.mrpchangerequestpriority.MRPChangeRequestPriority
All Implemented Interfaces:
VdmEntitySet

public class MRPChangeRequestPriority extends VdmEntity<MRPChangeRequestPriority> implements VdmEntitySet
MRP Change Request Priority

Original entity name from the Odata EDM: MRPChangeRequestPriority_Type

  • Field Details

  • Constructor Details

    • MRPChangeRequestPriority

      public MRPChangeRequestPriority()
    • MRPChangeRequestPriority

      public MRPChangeRequestPriority(@Nullable String mRPRequestPriority, @Nullable String mRPRequestPriorityName, List<MRPChangeRequestPriorityTxt> to_Text)
  • Method Details

    • getType

      @Nonnull public Class<MRPChangeRequestPriority> getType()
      Specified by:
      getType in class VdmObject<MRPChangeRequestPriority>
    • setMRPRequestPriority

      public void setMRPRequestPriority(@Nullable String mRPRequestPriority)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: MRPRequestPriority

      Parameters:
      mRPRequestPriority - MRP Change Request Priority
    • setMRPRequestPriorityName

      public void setMRPRequestPriorityName(@Nullable String mRPRequestPriorityName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MRPRequestPriorityName

      Parameters:
      mRPRequestPriorityName - Description of MRP Change Request Priority
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<MRPChangeRequestPriority>
    • getKey

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<MRPChangeRequestPriority>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<MRPChangeRequestPriority>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<MRPChangeRequestPriority>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<MRPChangeRequestPriority>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<MRPChangeRequestPriority>
    • getTextIfPresent

      @Nonnull public io.vavr.control.Option<List<MRPChangeRequestPriorityTxt>> getTextIfPresent()
      Retrieval of associated MRPChangeRequestPriorityTxt entities (one to many). This corresponds to the OData navigation property _Text.

      If the navigation property for an entity MRPChangeRequestPriority has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _Text is already loaded, the result will contain the MRPChangeRequestPriorityTxt entities. If not, an Option with result state empty is returned.
    • setText

      public void setText(@Nonnull List<MRPChangeRequestPriorityTxt> value)
      Overwrites the list of associated MRPChangeRequestPriorityTxt entities for the loaded navigation property _Text.

      If the navigation property _Text of a queried MRPChangeRequestPriority is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of MRPChangeRequestPriorityTxt entities.
    • addText

      public void addText(MRPChangeRequestPriorityTxt... entity)
      Adds elements to the list of associated MRPChangeRequestPriorityTxt entities. This corresponds to the OData navigation property _Text.

      If the navigation property _Text of a queried MRPChangeRequestPriority is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of MRPChangeRequestPriorityTxt entities.
    • builder

    • getMRPRequestPriority

      @Nullable public String getMRPRequestPriority()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: MRPRequestPriority

      Returns:
      MRP Change Request Priority
    • getMRPRequestPriorityName

      @Nullable public String getMRPRequestPriorityName()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MRPRequestPriorityName

      Returns:
      Description of MRP Change Request Priority
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<MRPChangeRequestPriority>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<MRPChangeRequestPriority>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<MRPChangeRequestPriority>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<MRPChangeRequestPriority>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<MRPChangeRequestPriority>