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

public class ProductPlantStorage extends VdmEntity<ProductPlantStorage> implements VdmEntitySet
Product Plant Storage

Original entity name from the Odata EDM: ProductPlantStorage_Type

  • Field Details

  • Constructor Details

    • ProductPlantStorage

      public ProductPlantStorage()
    • ProductPlantStorage

      public ProductPlantStorage(@Nullable String product, @Nullable String plant, @Nullable String physInventoryForCycleCounting, @Nullable BigDecimal maximumStoragePeriod, @Nullable String prodMaximumStoragePeriodUnit, @Nullable String maximumStoragePeriodISOUnit, @Nullable Boolean cycleCountingIndicatorIsFixed, @Nullable Product to_Product, @Nullable ProductPlant to_ProductPlant)
  • Method Details

    • getType

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

      public void setPhysInventoryForCycleCounting(@Nullable String physInventoryForCycleCounting)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PhysInventoryForCycleCounting

      Parameters:
      physInventoryForCycleCounting - Physical Inventory Indicator for Cycle Counting
    • setMaximumStoragePeriod

      public void setMaximumStoragePeriod(@Nullable BigDecimal maximumStoragePeriod)
      Constraints: Not nullable, Precision: 5

      Original property name from the Odata EDM: MaximumStoragePeriod

      Parameters:
      maximumStoragePeriod - Maximum Storage Period
    • setProdMaximumStoragePeriodUnit

      public void setProdMaximumStoragePeriodUnit(@Nullable String prodMaximumStoragePeriodUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ProdMaximumStoragePeriodUnit

      Parameters:
      prodMaximumStoragePeriodUnit - Unit for maximum storage period
    • setMaximumStoragePeriodISOUnit

      public void setMaximumStoragePeriodISOUnit(@Nullable String maximumStoragePeriodISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: MaximumStoragePeriodISOUnit

      Parameters:
      maximumStoragePeriodISOUnit - Unit for the maximum storage period in ISO code
    • setCycleCountingIndicatorIsFixed

      public void setCycleCountingIndicatorIsFixed(@Nullable Boolean cycleCountingIndicatorIsFixed)
      Constraints: Not nullable

      Original property name from the Odata EDM: CycleCountingIndicatorIsFixed

      Parameters:
      cycleCountingIndicatorIsFixed - CC indicator is fixed
    • getEntityCollection

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

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ProductPlantStorage>
    • 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 ProductPlantStorage 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 ProductPlantStorage 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 ProductPlantStorage.ProductPlantStorageBuilder 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
    • getPhysInventoryForCycleCounting

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

      Original property name from the Odata EDM: PhysInventoryForCycleCounting

      Returns:
      Physical Inventory Indicator for Cycle Counting
    • getMaximumStoragePeriod

      @Nullable public BigDecimal getMaximumStoragePeriod()
      Constraints: Not nullable, Precision: 5

      Original property name from the Odata EDM: MaximumStoragePeriod

      Returns:
      Maximum Storage Period
    • getProdMaximumStoragePeriodUnit

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

      Original property name from the Odata EDM: ProdMaximumStoragePeriodUnit

      Returns:
      Unit for maximum storage period
    • getMaximumStoragePeriodISOUnit

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

      Original property name from the Odata EDM: MaximumStoragePeriodISOUnit

      Returns:
      Unit for the maximum storage period in ISO code
    • getCycleCountingIndicatorIsFixed

      @Nullable public Boolean getCycleCountingIndicatorIsFixed()
      Constraints: Not nullable

      Original property name from the Odata EDM: CycleCountingIndicatorIsFixed

      Returns:
      CC indicator is fixed
    • toString

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

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

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

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

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