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

public class ProductStorage extends VdmEntity<ProductStorage> implements VdmEntitySet
Product Storage

Original entity name from the Odata EDM: ProductStorage_Type

  • Field Details

  • Constructor Details

    • ProductStorage

      public ProductStorage()
    • ProductStorage

      public ProductStorage(@Nullable String product, @Nullable String storageConditions, @Nullable String prodTemperatureConditionCode, @Nullable String hazardousProduct, @Nullable BigDecimal nmbrOfGROrGISlipsToPrintQty, @Nullable String labelType, @Nullable String labelForm, @Nullable BigDecimal minRemainingShelfLife, @Nullable String productExpirationDateType, @Nullable String storageBinInstruction, @Nullable String shelfLifeExpirationDatePeriod, @Nullable String shelfLifeExprtnDateRndngRule, @Nullable BigDecimal totalShelfLifeStoragePercent, @Nullable BigDecimal totalShelfLife, @Nullable String baseUnit, @Nullable String baseISOUnit, @Nullable Product to_Product)
  • Method Details

    • getType

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

      public void setStorageConditions(@Nullable String storageConditions)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: StorageConditions

      Parameters:
      storageConditions - Storage conditions
    • setProdTemperatureConditionCode

      public void setProdTemperatureConditionCode(@Nullable String prodTemperatureConditionCode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProdTemperatureConditionCode

      Parameters:
      prodTemperatureConditionCode - Temperature conditions indicator
    • setHazardousProduct

      public void setHazardousProduct(@Nullable String hazardousProduct)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: HazardousProduct

      Parameters:
      hazardousProduct - Hazardous material number
    • setNmbrOfGROrGISlipsToPrintQty

      public void setNmbrOfGROrGISlipsToPrintQty(@Nullable BigDecimal nmbrOfGROrGISlipsToPrintQty)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: NmbrOfGROrGISlipsToPrintQty

      Parameters:
      nmbrOfGROrGISlipsToPrintQty - Quantity: Number of GR/GI slips to be printed
    • setLabelType

      public void setLabelType(@Nullable String labelType)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: LabelType

      Parameters:
      labelType - Label type
    • setLabelForm

      public void setLabelForm(@Nullable String labelForm)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: LabelForm

      Parameters:
      labelForm - Label form
    • setMinRemainingShelfLife

      public void setMinRemainingShelfLife(@Nullable BigDecimal minRemainingShelfLife)
      Constraints: Not nullable, Precision: 4

      Original property name from the Odata EDM: MinRemainingShelfLife

      Parameters:
      minRemainingShelfLife - Minimum Remaining Shelf Life
    • setProductExpirationDateType

      public void setProductExpirationDateType(@Nullable String productExpirationDateType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductExpirationDateType

      Parameters:
      productExpirationDateType - Expiration Date
    • setStorageBinInstruction

      public void setStorageBinInstruction(@Nullable String storageBinInstruction)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: StorageBinInstruction

      Parameters:
      storageBinInstruction - Container requirements
    • setShelfLifeExpirationDatePeriod

      public void setShelfLifeExpirationDatePeriod(@Nullable String shelfLifeExpirationDatePeriod)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ShelfLifeExpirationDatePeriod

      Parameters:
      shelfLifeExpirationDatePeriod - Period Indicator for Shelf Life Expiration Date
    • setShelfLifeExprtnDateRndngRule

      public void setShelfLifeExprtnDateRndngRule(@Nullable String shelfLifeExprtnDateRndngRule)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ShelfLifeExprtnDateRndngRule

      Parameters:
      shelfLifeExprtnDateRndngRule - Rounding rule for calculation of SLED
    • setTotalShelfLifeStoragePercent

      public void setTotalShelfLifeStoragePercent(@Nullable BigDecimal totalShelfLifeStoragePercent)
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: TotalShelfLifeStoragePercent

      Parameters:
      totalShelfLifeStoragePercent - Storage percentage
    • setTotalShelfLife

      public void setTotalShelfLife(@Nullable BigDecimal totalShelfLife)
      Constraints: Not nullable, Precision: 4

      Original property name from the Odata EDM: TotalShelfLife

      Parameters:
      totalShelfLife - Total shelf life
    • setBaseUnit

      public void setBaseUnit(@Nullable String baseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Parameters:
      baseUnit - Base Unit of Measure
    • setBaseISOUnit

      public void setBaseISOUnit(@Nullable String baseISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseISOUnit

      Parameters:
      baseISOUnit - Base unit of measure in ISO code
    • getEntityCollection

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

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

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

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

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

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

      @Nonnull public static ProductStorage.ProductStorageBuilder 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
    • getStorageConditions

      @Nullable public String getStorageConditions()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: StorageConditions

      Returns:
      Storage conditions
    • getProdTemperatureConditionCode

      @Nullable public String getProdTemperatureConditionCode()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProdTemperatureConditionCode

      Returns:
      Temperature conditions indicator
    • getHazardousProduct

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

      Original property name from the Odata EDM: HazardousProduct

      Returns:
      Hazardous material number
    • getNmbrOfGROrGISlipsToPrintQty

      @Nullable public BigDecimal getNmbrOfGROrGISlipsToPrintQty()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: NmbrOfGROrGISlipsToPrintQty

      Returns:
      Quantity: Number of GR/GI slips to be printed
    • getLabelType

      @Nullable public String getLabelType()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: LabelType

      Returns:
      Label type
    • getLabelForm

      @Nullable public String getLabelForm()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: LabelForm

      Returns:
      Label form
    • getMinRemainingShelfLife

      @Nullable public BigDecimal getMinRemainingShelfLife()
      Constraints: Not nullable, Precision: 4

      Original property name from the Odata EDM: MinRemainingShelfLife

      Returns:
      Minimum Remaining Shelf Life
    • getProductExpirationDateType

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

      Original property name from the Odata EDM: ProductExpirationDateType

      Returns:
      Expiration Date
    • getStorageBinInstruction

      @Nullable public String getStorageBinInstruction()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: StorageBinInstruction

      Returns:
      Container requirements
    • getShelfLifeExpirationDatePeriod

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

      Original property name from the Odata EDM: ShelfLifeExpirationDatePeriod

      Returns:
      Period Indicator for Shelf Life Expiration Date
    • getShelfLifeExprtnDateRndngRule

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

      Original property name from the Odata EDM: ShelfLifeExprtnDateRndngRule

      Returns:
      Rounding rule for calculation of SLED
    • getTotalShelfLifeStoragePercent

      @Nullable public BigDecimal getTotalShelfLifeStoragePercent()
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: TotalShelfLifeStoragePercent

      Returns:
      Storage percentage
    • getTotalShelfLife

      @Nullable public BigDecimal getTotalShelfLife()
      Constraints: Not nullable, Precision: 4

      Original property name from the Odata EDM: TotalShelfLife

      Returns:
      Total shelf life
    • getBaseUnit

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

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • getBaseISOUnit

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

      Original property name from the Odata EDM: BaseISOUnit

      Returns:
      Base unit of measure in ISO code
    • toString

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

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

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

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

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