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

public class ProductPlantForecast extends VdmEntity<ProductPlantForecast> implements VdmEntitySet
Product Plant Forecast

Original entity name from the Odata EDM: ProductPlantForecast_Type

  • Field Details

  • Constructor Details

    • ProductPlantForecast

      public ProductPlantForecast()
    • ProductPlantForecast

      public ProductPlantForecast(@Nullable String product, @Nullable String plant, @Nullable LocalDate consumptionRefUsageEndDate, @Nullable BigDecimal cnsmpnQuantityMultiplierValue, @Nullable String consumptionReferenceProduct, @Nullable String consumptionReferencePlant, @Nullable Boolean correctionFactorIsRequired, @Nullable Boolean forecastModelIsReset, @Nullable Product to_Product, @Nullable ProductPlant to_ProductPlant)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product Number
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setConsumptionRefUsageEndDate

      public void setConsumptionRefUsageEndDate(@Nullable LocalDate consumptionRefUsageEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ConsumptionRefUsageEndDate

      Parameters:
      consumptionRefUsageEndDate - To date of the material to be copied for consumption
    • setCnsmpnQuantityMultiplierValue

      public void setCnsmpnQuantityMultiplierValue(@Nullable BigDecimal cnsmpnQuantityMultiplierValue)
      Constraints: Not nullable, Precision: 4, Scale: 2

      Original property name from the Odata EDM: CnsmpnQuantityMultiplierValue

      Parameters:
      cnsmpnQuantityMultiplierValue - Multiplier for reference material for consumption
    • setConsumptionReferenceProduct

      public void setConsumptionReferenceProduct(@Nullable String consumptionReferenceProduct)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ConsumptionReferenceProduct

      Parameters:
      consumptionReferenceProduct - Reference material for consumption
    • setConsumptionReferencePlant

      public void setConsumptionReferencePlant(@Nullable String consumptionReferencePlant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ConsumptionReferencePlant

      Parameters:
      consumptionReferencePlant - Reference plant for consumption
    • setCorrectionFactorIsRequired

      public void setCorrectionFactorIsRequired(@Nullable Boolean correctionFactorIsRequired)
      Constraints: Not nullable

      Original property name from the Odata EDM: CorrectionFactorIsRequired

      Parameters:
      correctionFactorIsRequired - Indicator: take correction factors into account
    • setForecastModelIsReset

      public void setForecastModelIsReset(@Nullable Boolean forecastModelIsReset)
      Constraints: Not nullable

      Original property name from the Odata EDM: ForecastModelIsReset

      Parameters:
      forecastModelIsReset - Reset Forecast Model Automatically
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ProductPlantForecast 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 Product entity. If not, an Option with result state empty is returned.
    • setProduct

      public void setProduct(Product value)
      Overwrites the associated Product entity for the loaded navigation property _Product.
      Parameters:
      value - New Product entity.
    • getProductPlantIfPresent

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

      If the navigation property for an entity ProductPlantForecast 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 _ProductPlant is already loaded, the result will contain the ProductPlant entity. If not, an Option with result state empty is returned.
    • setProductPlant

      public void setProductPlant(ProductPlant value)
      Overwrites the associated ProductPlant entity for the loaded navigation property _ProductPlant.
      Parameters:
      value - New ProductPlant entity.
    • builder

      @Nonnull public static ProductPlantForecast.ProductPlantForecastBuilder builder()
    • getProduct

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

      Original property name from the Odata EDM: Product

      Returns:
      Product Number
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getConsumptionRefUsageEndDate

      @Nullable public LocalDate getConsumptionRefUsageEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ConsumptionRefUsageEndDate

      Returns:
      To date of the material to be copied for consumption
    • getCnsmpnQuantityMultiplierValue

      @Nullable public BigDecimal getCnsmpnQuantityMultiplierValue()
      Constraints: Not nullable, Precision: 4, Scale: 2

      Original property name from the Odata EDM: CnsmpnQuantityMultiplierValue

      Returns:
      Multiplier for reference material for consumption
    • getConsumptionReferenceProduct

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

      Original property name from the Odata EDM: ConsumptionReferenceProduct

      Returns:
      Reference material for consumption
    • getConsumptionReferencePlant

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

      Original property name from the Odata EDM: ConsumptionReferencePlant

      Returns:
      Reference plant for consumption
    • getCorrectionFactorIsRequired

      @Nullable public Boolean getCorrectionFactorIsRequired()
      Constraints: Not nullable

      Original property name from the Odata EDM: CorrectionFactorIsRequired

      Returns:
      Indicator: take correction factors into account
    • getForecastModelIsReset

      @Nullable public Boolean getForecastModelIsReset()
      Constraints: Not nullable

      Original property name from the Odata EDM: ForecastModelIsReset

      Returns:
      Reset Forecast Model Automatically
    • toString

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

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

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

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

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