Class ProdPlntInternationalTrade

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

public class ProdPlntInternationalTrade extends VdmEntity<ProdPlntInternationalTrade> implements VdmEntitySet
Product Plant International Trade

Original entity name from the Odata EDM: ProdPlntInternationalTrade_Type

  • Field Details

  • Constructor Details

    • ProdPlntInternationalTrade

      public ProdPlntInternationalTrade()
    • ProdPlntInternationalTrade

      public ProdPlntInternationalTrade(@Nullable String product, @Nullable String plant, @Nullable String countryOfOrigin, @Nullable String regionOfOrigin, @Nullable String consumptionTaxCtrlCode, @Nullable String exportAndImportProductGroup, @Nullable String productCASNumber, @Nullable String prodIntlTradeClassification, @Nullable Product to_Product, @Nullable ProductPlant to_ProductPlant)
  • Method Details

    • getType

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

      public void setCountryOfOrigin(@Nullable String countryOfOrigin)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CountryOfOrigin

      Parameters:
      countryOfOrigin - Country/Region of Origin of Product
    • setRegionOfOrigin

      public void setRegionOfOrigin(@Nullable String regionOfOrigin)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: RegionOfOrigin

      Parameters:
      regionOfOrigin - Region of Origin
    • setConsumptionTaxCtrlCode

      public void setConsumptionTaxCtrlCode(@Nullable String consumptionTaxCtrlCode)
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: ConsumptionTaxCtrlCode

      Parameters:
      consumptionTaxCtrlCode - Control code for consumption taxes in foreign trade
    • setExportAndImportProductGroup

      public void setExportAndImportProductGroup(@Nullable String exportAndImportProductGroup)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ExportAndImportProductGroup

      Parameters:
      exportAndImportProductGroup - Material Group for Intrastat
    • setProductCASNumber

      public void setProductCASNumber(@Nullable String productCASNumber)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: ProductCASNumber

      Parameters:
      productCASNumber - CAS number for pharmaceutical products in foreign trade
    • setProdIntlTradeClassification

      public void setProdIntlTradeClassification(@Nullable String prodIntlTradeClassification)
      Constraints: Not nullable, Maximum length: 9

      Original property name from the Odata EDM: ProdIntlTradeClassification

      Parameters:
      prodIntlTradeClassification - Production statistics: PRODCOM number for foreign trade
    • getEntityCollection

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

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

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

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

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

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

    • 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
    • getCountryOfOrigin

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

      Original property name from the Odata EDM: CountryOfOrigin

      Returns:
      Country/Region of Origin of Product
    • getRegionOfOrigin

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

      Original property name from the Odata EDM: RegionOfOrigin

      Returns:
      Region of Origin
    • getConsumptionTaxCtrlCode

      @Nullable public String getConsumptionTaxCtrlCode()
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: ConsumptionTaxCtrlCode

      Returns:
      Control code for consumption taxes in foreign trade
    • getExportAndImportProductGroup

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

      Original property name from the Odata EDM: ExportAndImportProductGroup

      Returns:
      Material Group for Intrastat
    • getProductCASNumber

      @Nullable public String getProductCASNumber()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: ProductCASNumber

      Returns:
      CAS number for pharmaceutical products in foreign trade
    • getProdIntlTradeClassification

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

      Original property name from the Odata EDM: ProdIntlTradeClassification

      Returns:
      Production statistics: PRODCOM number for foreign trade
    • toString

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

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

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

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

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