Class ProductUnitOfMeasureEAN

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

public class ProductUnitOfMeasureEAN extends VdmEntity<ProductUnitOfMeasureEAN> implements VdmEntitySet
Product Unit of Measure EAN

Original entity name from the Odata EDM: ProductUnitOfMeasureEAN_Type

  • Field Details

  • Constructor Details

    • ProductUnitOfMeasureEAN

      public ProductUnitOfMeasureEAN()
    • ProductUnitOfMeasureEAN

      public ProductUnitOfMeasureEAN(@Nullable String product, @Nullable String alternativeUnit, @Nullable String consecutiveNumber, @Nullable String productStandardID, @Nullable String internationalArticleNumberCat, @Nullable Boolean isMainGlobalTradeItemNumber, @Nullable Product to_Product, @Nullable ProductUnitOfMeasure to_ProductUnitOfMeasure)
  • Method Details

    • getType

      @Nonnull public Class<ProductUnitOfMeasureEAN> getType()
      Specified by:
      getType in class VdmObject<ProductUnitOfMeasureEAN>
    • 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 - Material Number
    • setAlternativeUnit

      public void setAlternativeUnit(@Nullable String alternativeUnit)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AlternativeUnit

      Parameters:
      alternativeUnit - Unit of Measure for Display
    • setConsecutiveNumber

      public void setConsecutiveNumber(@Nullable String consecutiveNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConsecutiveNumber

      Parameters:
      consecutiveNumber - Consecutive Number
    • setProductStandardID

      public void setProductStandardID(@Nullable String productStandardID)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: ProductStandardID

      Parameters:
      productStandardID - International Article Number (EAN/UPC)
    • setInternationalArticleNumberCat

      public void setInternationalArticleNumberCat(@Nullable String internationalArticleNumberCat)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: InternationalArticleNumberCat

      Parameters:
      internationalArticleNumberCat - Category of Global Trade Item Number (GTIN)
    • setIsMainGlobalTradeItemNumber

      public void setIsMainGlobalTradeItemNumber(@Nullable Boolean isMainGlobalTradeItemNumber)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsMainGlobalTradeItemNumber

      Parameters:
      isMainGlobalTradeItemNumber - Indicator: Main EAN
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ProductUnitOfMeasureEAN 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 _ProductUnitOfMeasure is already loaded, the result will contain the ProductUnitOfMeasure entity. If not, an Option with result state empty is returned.
    • setProductUnitOfMeasure

      public void setProductUnitOfMeasure(ProductUnitOfMeasure value)
      Overwrites the associated ProductUnitOfMeasure entity for the loaded navigation property _ProductUnitOfMeasure.
      Parameters:
      value - New ProductUnitOfMeasure entity.
    • builder

    • getProduct

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

      Original property name from the Odata EDM: Product

      Returns:
      Material Number
    • getAlternativeUnit

      @Nullable public String getAlternativeUnit()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AlternativeUnit

      Returns:
      Unit of Measure for Display
    • getConsecutiveNumber

      @Nullable public String getConsecutiveNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConsecutiveNumber

      Returns:
      Consecutive Number
    • getProductStandardID

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

      Original property name from the Odata EDM: ProductStandardID

      Returns:
      International Article Number (EAN/UPC)
    • getInternationalArticleNumberCat

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

      Original property name from the Odata EDM: InternationalArticleNumberCat

      Returns:
      Category of Global Trade Item Number (GTIN)
    • getIsMainGlobalTradeItemNumber

      @Nullable public Boolean getIsMainGlobalTradeItemNumber()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsMainGlobalTradeItemNumber

      Returns:
      Indicator: Main EAN
    • toString

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

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

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

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

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