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

public class ProductPlantProcurement extends VdmEntity<ProductPlantProcurement> implements VdmEntitySet
Product Plant Procurement

Original entity name from the Odata EDM: ProductPlantProcurement_Type

  • Field Details

  • Constructor Details

    • ProductPlantProcurement

      public ProductPlantProcurement()
    • ProductPlantProcurement

      public ProductPlantProcurement(@Nullable String product, @Nullable String plant, @Nullable Boolean isAutoPurOrdCreationAllowed, @Nullable Boolean isSourceListRequired, @Nullable String justInTimeDeliveryScheduleCode, @Nullable String purchasingGroup, @Nullable Product to_Product, @Nullable ProductPlant to_ProductPlant)
  • Method Details

    • getType

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

      public void setIsAutoPurOrdCreationAllowed(@Nullable Boolean isAutoPurOrdCreationAllowed)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsAutoPurOrdCreationAllowed

      Parameters:
      isAutoPurOrdCreationAllowed - Indicator: "automatic purchase order allowed"
    • setIsSourceListRequired

      public void setIsSourceListRequired(@Nullable Boolean isSourceListRequired)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsSourceListRequired

      Parameters:
      isSourceListRequired - Indicator: Source list requirement
    • setJustInTimeDeliveryScheduleCode

      public void setJustInTimeDeliveryScheduleCode(@Nullable String justInTimeDeliveryScheduleCode)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: JustInTimeDeliveryScheduleCode

      Parameters:
      justInTimeDeliveryScheduleCode - JIT Delivery Schedules
    • setPurchasingGroup

      public void setPurchasingGroup(@Nullable String purchasingGroup)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PurchasingGroup

      Parameters:
      purchasingGroup - Purchasing Group
    • getEntityCollection

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

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

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

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

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

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

      @Nullable public Boolean getIsAutoPurOrdCreationAllowed()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsAutoPurOrdCreationAllowed

      Returns:
      Indicator: "automatic purchase order allowed"
    • getIsSourceListRequired

      @Nullable public Boolean getIsSourceListRequired()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsSourceListRequired

      Returns:
      Indicator: Source list requirement
    • getJustInTimeDeliveryScheduleCode

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

      Original property name from the Odata EDM: JustInTimeDeliveryScheduleCode

      Returns:
      JIT Delivery Schedules
    • getPurchasingGroup

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

      Original property name from the Odata EDM: PurchasingGroup

      Returns:
      Purchasing Group
    • toString

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

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

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

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

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