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

public class Text extends VdmEntity<Text> implements VdmEntitySet
Flexible Constraint Text

Original entity name from the Odata EDM: TextType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setPMRPFlexibleConstraint(@Nullable String pMRPFlexibleConstraint)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PMRPFlexibleConstraint

      Parameters:
      pMRPFlexibleConstraint - pMRP Unique ID for Flexible Constraints
    • setLanguage

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

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language Key
    • setPMRPConstraintText

      public void setPMRPConstraintText(@Nullable String pMRPConstraintText)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: PMRPConstraintText

      Parameters:
      pMRPConstraintText - pMRP: Text for Flexible Constraints
    • getEntityCollection

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

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

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

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

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

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

      @Nonnull public io.vavr.control.Option<PMRPFlexibleConstraint> getConstraintIfPresent()
      Retrieval of associated PMRPFlexibleConstraint entity (one to one). This corresponds to the OData navigation property _Constraint.

      If the navigation property for an entity Text 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 _Constraint is already loaded, the result will contain the PMRPFlexibleConstraint entity. If not, an Option with result state empty is returned.
    • setConstraint

      public void setConstraint(PMRPFlexibleConstraint value)
      Overwrites the associated PMRPFlexibleConstraint entity for the loaded navigation property _Constraint.
      Parameters:
      value - New PMRPFlexibleConstraint entity.
    • builder

      @Nonnull public static Text.TextBuilder builder()
    • getPMRPFlexibleConstraint

      @Nullable public String getPMRPFlexibleConstraint()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PMRPFlexibleConstraint

      Returns:
      pMRP Unique ID for Flexible Constraints
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getPMRPConstraintText

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

      Original property name from the Odata EDM: PMRPConstraintText

      Returns:
      pMRP: Text for Flexible Constraints
    • toString

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

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

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

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

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