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

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

Original entity name from the Odata EDM: PMRPFlexibleConstraintType

  • Field Details

  • Constructor Details

    • PMRPFlexibleConstraint

      public PMRPFlexibleConstraint()
    • PMRPFlexibleConstraint

      public PMRPFlexibleConstraint(@Nullable String pMRPFlexibleConstraint, @Nullable String pMRPConstraintType, @Nullable String pMRPConstraintCategory, @Nullable String pMRPFlexibleConstraintScope, @Nullable String pMRPConstraintProductSelection, @Nullable String pMRPConstraintPeriodType, @Nullable String product, @Nullable String plant, @Nullable String productionLine, @Nullable String supplier, @Nullable String supplyingPlant, @Nullable String mRPArea, @Nullable String materialGroup, @Nullable String pMRPConstraintBaseUnit, @Nullable Collection<SAP__Message> _Messages, List<Period> to_Period, List<ConstraintProduct> to_Product, List<Text> to_Text)
  • Method Details

    • getType

      @Nonnull public Class<PMRPFlexibleConstraint> getType()
      Specified by:
      getType in class VdmObject<PMRPFlexibleConstraint>
    • 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
    • setPMRPConstraintType

      public void setPMRPConstraintType(@Nullable String pMRPConstraintType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPConstraintType

      Parameters:
      pMRPConstraintType - The pMRPConstraintType to set.
    • setPMRPConstraintCategory

      public void setPMRPConstraintCategory(@Nullable String pMRPConstraintCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPConstraintCategory

      Parameters:
      pMRPConstraintCategory - The pMRPConstraintCategory to set.
    • setPMRPFlexibleConstraintScope

      public void setPMRPFlexibleConstraintScope(@Nullable String pMRPFlexibleConstraintScope)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPFlexibleConstraintScope

      Parameters:
      pMRPFlexibleConstraintScope - Scope of a Constraint (Single or Multiple Materials)
    • setPMRPConstraintProductSelection

      public void setPMRPConstraintProductSelection(@Nullable String pMRPConstraintProductSelection)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPConstraintProductSelection

      Parameters:
      pMRPConstraintProductSelection - Type of Selection Products for a PMRP Constraint
    • setPMRPConstraintPeriodType

      public void setPMRPConstraintPeriodType(@Nullable String pMRPConstraintPeriodType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPConstraintPeriodType

      Parameters:
      pMRPConstraintPeriodType - The pMRPConstraintPeriodType to set.
    • setProduct

      public void setProduct(@Nullable String product)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Parameters:
      product - Material Number
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setProductionLine

      public void setProductionLine(@Nullable String productionLine)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProductionLine

      Parameters:
      productionLine - Production Line for Repetitive Manufacturing
    • setSupplier

      public void setSupplier(@Nullable String supplier)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Parameters:
      supplier - Account Number of Supplier
    • setSupplyingPlant

      public void setSupplyingPlant(@Nullable String supplyingPlant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SupplyingPlant

      Parameters:
      supplyingPlant - Supplying (issuing) plant in case of stock transport order
    • setMRPArea

      public void setMRPArea(@Nullable String mRPArea)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: MRPArea

      Parameters:
      mRPArea - MRP Area
    • setMaterialGroup

      public void setMaterialGroup(@Nullable String materialGroup)
      Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: MaterialGroup

      Parameters:
      materialGroup - Material Group
    • setPMRPConstraintBaseUnit

      public void setPMRPConstraintBaseUnit(@Nullable String pMRPConstraintBaseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PMRPConstraintBaseUnit

      Parameters:
      pMRPConstraintBaseUnit - The pMRPConstraintBaseUnit to set.
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setPeriod(@Nonnull List<Period> value)
      Overwrites the list of associated Period entities for the loaded navigation property _Period.

      If the navigation property _Period of a queried PMRPFlexibleConstraint 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 Period entities.
    • addPeriod

      public void addPeriod(Period... entity)
      Adds elements to the list of associated Period entities. This corresponds to the OData navigation property _Period.

      If the navigation property _Period of a queried PMRPFlexibleConstraint 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 Period entities.
    • getProductIfPresent

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

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

      public void setProduct(@Nonnull List<ConstraintProduct> value)
      Overwrites the list of associated ConstraintProduct entities for the loaded navigation property _Product.

      If the navigation property _Product of a queried PMRPFlexibleConstraint 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 ConstraintProduct entities.
    • addProduct

      public void addProduct(ConstraintProduct... entity)
      Adds elements to the list of associated ConstraintProduct entities. This corresponds to the OData navigation property _Product.

      If the navigation property _Product of a queried PMRPFlexibleConstraint 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 ConstraintProduct entities.
    • getTextIfPresent

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

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

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

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

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

      If the navigation property _Text of a queried PMRPFlexibleConstraint 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 Text entities.
    • definePeriodForDate

      @Nonnull public static BoundAction.SingleToSingle<PMRPFlexibleConstraint,Period> definePeriodForDate(@Nullable LocalDate pMRPFlxblCstrtPerdStrtDte, @Nonnull String pMRPConstraintBaseUnit, @Nonnull BigDecimal pMRPConstraintQtyInBaseUnit)
      Action that can be applied to any entity object of this class.

      Parameters:
      pMRPConstraintBaseUnit - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: PMRPConstraintBaseUnit

      pMRPConstraintQtyInBaseUnit - Constraints: Not nullable, Precision: 13, Scale: 3

      Original parameter name from the Odata EDM: PMRPConstraintQtyInBaseUnit

      pMRPFlxblCstrtPerdStrtDte - Constraints: Nullable

      Original parameter name from the Odata EDM: PMRPFlxblCstrtPerdStrtDte

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

      @Nonnull public static PMRPFlexibleConstraint.PMRPFlexibleConstraintBuilder 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
    • getPMRPConstraintType

      @Nullable public String getPMRPConstraintType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPConstraintType

      Returns:
      The pMRPConstraintType contained in this VdmEntity.
    • getPMRPConstraintCategory

      @Nullable public String getPMRPConstraintCategory()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPConstraintCategory

      Returns:
      The pMRPConstraintCategory contained in this VdmEntity.
    • getPMRPFlexibleConstraintScope

      @Nullable public String getPMRPFlexibleConstraintScope()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPFlexibleConstraintScope

      Returns:
      Scope of a Constraint (Single or Multiple Materials)
    • getPMRPConstraintProductSelection

      @Nullable public String getPMRPConstraintProductSelection()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPConstraintProductSelection

      Returns:
      Type of Selection Products for a PMRP Constraint
    • getPMRPConstraintPeriodType

      @Nullable public String getPMRPConstraintPeriodType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PMRPConstraintPeriodType

      Returns:
      The pMRPConstraintPeriodType contained in this VdmEntity.
    • getProduct

      @Nullable public String getProduct()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Returns:
      Material Number
    • getPlant

      @Nullable public String getPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getProductionLine

      @Nullable public String getProductionLine()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProductionLine

      Returns:
      Production Line for Repetitive Manufacturing
    • getSupplier

      @Nullable public String getSupplier()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Returns:
      Account Number of Supplier
    • getSupplyingPlant

      @Nullable public String getSupplyingPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SupplyingPlant

      Returns:
      Supplying (issuing) plant in case of stock transport order
    • getMRPArea

      @Nullable public String getMRPArea()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: MRPArea

      Returns:
      MRP Area
    • getMaterialGroup

      @Nullable public String getMaterialGroup()
      Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: MaterialGroup

      Returns:
      Material Group
    • getPMRPConstraintBaseUnit

      @Nullable public String getPMRPConstraintBaseUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PMRPConstraintBaseUnit

      Returns:
      The pMRPConstraintBaseUnit contained in this VdmEntity.
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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