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

public class MRPChangeRequestRejection extends VdmEntity<MRPChangeRequestRejection> implements VdmEntitySet
MRP Change Request Rejection

Original entity name from the Odata EDM: MRPChangeRequestRejection_Type

  • Field Details

  • Constructor Details

    • MRPChangeRequestRejection

      public MRPChangeRequestRejection()
    • MRPChangeRequestRejection

      public MRPChangeRequestRejection(@Nullable String mRPRequestRejection, @Nullable String mRPRequestRejectionName, List<MRPChangeRequestRejectionTxt> to_Text)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: MRPRequestRejection

      Parameters:
      mRPRequestRejection - Rejection Code for MRP Change Request
    • setMRPRequestRejectionName

      public void setMRPRequestRejectionName(@Nullable String mRPRequestRejectionName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MRPRequestRejectionName

      Parameters:
      mRPRequestRejectionName - Description for MRP Change Request Rejection
    • getEntityCollection

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

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

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

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

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

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

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

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

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

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

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

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

    • getMRPRequestRejection

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

      Original property name from the Odata EDM: MRPRequestRejection

      Returns:
      Rejection Code for MRP Change Request
    • getMRPRequestRejectionName

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

      Original property name from the Odata EDM: MRPRequestRejectionName

      Returns:
      Description for MRP Change Request Rejection
    • toString

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

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

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

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

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