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

public class MRPChangeRequestReason extends VdmEntity<MRPChangeRequestReason> implements VdmEntitySet
MRP Change Request Reason

Original entity name from the Odata EDM: MRPChangeRequestReason_Type

  • Field Details

  • Constructor Details

    • MRPChangeRequestReason

      public MRPChangeRequestReason()
    • MRPChangeRequestReason

      public MRPChangeRequestReason(@Nullable String mRPRequestReason, @Nullable String mRPRequestReasonName, List<MRPChangeRequestReasonTxt> to_Text)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: MRPRequestReason

      Parameters:
      mRPRequestReason - Reason Code for MRP Change Request
    • setMRPRequestReasonName

      public void setMRPRequestReasonName(@Nullable String mRPRequestReasonName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MRPRequestReasonName

      Parameters:
      mRPRequestReasonName - Description for MRP Change Request Reason
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity MRPChangeRequestReason 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 MRPChangeRequestReasonTxt entities. If not, an Option with result state empty is returned.
    • setText

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

      If the navigation property _Text of a queried MRPChangeRequestReason 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 MRPChangeRequestReasonTxt entities.
    • addText

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

      If the navigation property _Text of a queried MRPChangeRequestReason 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 MRPChangeRequestReasonTxt entities.
    • builder

      @Nonnull public static MRPChangeRequestReason.MRPChangeRequestReasonBuilder builder()
    • getMRPRequestReason

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

      Original property name from the Odata EDM: MRPRequestReason

      Returns:
      Reason Code for MRP Change Request
    • getMRPRequestReasonName

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

      Original property name from the Odata EDM: MRPRequestReasonName

      Returns:
      Description for MRP Change Request Reason
    • toString

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

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

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

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

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