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

public class SrcgProjQtnDmndDistr extends VdmEntity<SrcgProjQtnDmndDistr> implements VdmEntitySet
Demand Distribution

Original entity name from the Odata EDM: SrcgProjQtnDmndDistr_Type

  • Field Details

  • Constructor Details

    • SrcgProjQtnDmndDistr

      public SrcgProjQtnDmndDistr()
    • SrcgProjQtnDmndDistr

      public SrcgProjQtnDmndDistr(@Nullable UUID srcgProjQtnDmndDistrUUID, @Nullable UUID sourcingProjectQuotationUUID, @Nullable UUID srcgProjQtnItemUUID, @Nullable String procurementProject, @Nullable String procurementHubSourceSystem, @Nullable String companyCode, @Nullable String plant, @Nullable BigDecimal maxAnnualRequestedQuantity, @Nullable String requestedQuantityUnit, @Nullable String requestedQuantityISOUnit, @Nullable BigDecimal srcgProjQtnTotOfferedQuantity, @Nullable String purchasingOrganization, @Nullable String purchasingGroup, @Nullable String storageLocation, @Nullable String procmtHubPlantUniqueID, @Nullable SourcingProjectQuotation to_SourcingProjectQuotation, List<SrcgProjQtnDmndDistrDetails> to_SrcgProjQtnDmndDistrDets, @Nullable SrcgProjQtnItem to_SrcgProjQtnItem)
  • Method Details

    • getType

      @Nonnull public Class<SrcgProjQtnDmndDistr> getType()
      Specified by:
      getType in class VdmObject<SrcgProjQtnDmndDistr>
    • setSrcgProjQtnDmndDistrUUID

      public void setSrcgProjQtnDmndDistrUUID(@Nullable UUID srcgProjQtnDmndDistrUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnDmndDistrUUID

      Parameters:
      srcgProjQtnDmndDistrUUID - Demand Distribution UUID in Quotation
    • setSourcingProjectQuotationUUID

      public void setSourcingProjectQuotationUUID(@Nullable UUID sourcingProjectQuotationUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectQuotationUUID

      Parameters:
      sourcingProjectQuotationUUID - Supplier Quotation UUID
    • setSrcgProjQtnItemUUID

      public void setSrcgProjQtnItemUUID(@Nullable UUID srcgProjQtnItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItemUUID

      Parameters:
      srcgProjQtnItemUUID - Supplier Quotation Item UUID
    • setProcurementProject

      public void setProcurementProject(@Nullable String procurementProject)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProcurementProject

      Parameters:
      procurementProject - Procurement Project
    • setProcurementHubSourceSystem

      public void setProcurementHubSourceSystem(@Nullable String procurementHubSourceSystem)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Parameters:
      procurementHubSourceSystem - Connected System ID
    • setCompanyCode

      public void setCompanyCode(@Nullable String companyCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setMaxAnnualRequestedQuantity

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

      Original property name from the Odata EDM: MaxAnnualRequestedQuantity

      Parameters:
      maxAnnualRequestedQuantity - Maximum Annually Requested Quantity
    • setRequestedQuantityUnit

      public void setRequestedQuantityUnit(@Nullable String requestedQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: RequestedQuantityUnit

      Parameters:
      requestedQuantityUnit - Requested Quantity Unit
    • setRequestedQuantityISOUnit

      public void setRequestedQuantityISOUnit(@Nullable String requestedQuantityISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: RequestedQuantityISOUnit

      Parameters:
      requestedQuantityISOUnit - ISO Unit Code for Requested Quantity
    • setSrcgProjQtnTotOfferedQuantity

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

      Original property name from the Odata EDM: SrcgProjQtnTotOfferedQuantity

      Parameters:
      srcgProjQtnTotOfferedQuantity - Total Offered Quantity Supplier Quotation
    • setPurchasingOrganization

      public void setPurchasingOrganization(@Nullable String purchasingOrganization)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PurchasingOrganization

      Parameters:
      purchasingOrganization - Purchasing Organization
    • 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
    • setStorageLocation

      public void setStorageLocation(@Nullable String storageLocation)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: StorageLocation

      Parameters:
      storageLocation - Storage Location
    • setProcmtHubPlantUniqueID

      public void setProcmtHubPlantUniqueID(@Nullable String procmtHubPlantUniqueID)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ProcmtHubPlantUniqueID

      Parameters:
      procmtHubPlantUniqueID - Plant Unique ID
    • getEntityCollection

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

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<SrcgProjQtnDmndDistr>
    • getSourcingProjectQuotationIfPresent

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

      If the navigation property for an entity SrcgProjQtnDmndDistr 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 _SourcingProjectQuotation is already loaded, the result will contain the SourcingProjectQuotation entity. If not, an Option with result state empty is returned.
    • setSourcingProjectQuotation

      public void setSourcingProjectQuotation(SourcingProjectQuotation value)
      Overwrites the associated SourcingProjectQuotation entity for the loaded navigation property _SourcingProjectQuotation.
      Parameters:
      value - New SourcingProjectQuotation entity.
    • getSrcgProjQtnDmndDistrDetsIfPresent

      @Nonnull public io.vavr.control.Option<List<SrcgProjQtnDmndDistrDetails>> getSrcgProjQtnDmndDistrDetsIfPresent()
      Retrieval of associated SrcgProjQtnDmndDistrDetails entities (one to many). This corresponds to the OData navigation property _SrcgProjQtnDmndDistrDets.

      If the navigation property for an entity SrcgProjQtnDmndDistr 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 _SrcgProjQtnDmndDistrDets is already loaded, the result will contain the SrcgProjQtnDmndDistrDetails entities. If not, an Option with result state empty is returned.
    • setSrcgProjQtnDmndDistrDets

      public void setSrcgProjQtnDmndDistrDets(@Nonnull List<SrcgProjQtnDmndDistrDetails> value)
      Overwrites the list of associated SrcgProjQtnDmndDistrDetails entities for the loaded navigation property _SrcgProjQtnDmndDistrDets.

      If the navigation property _SrcgProjQtnDmndDistrDets of a queried SrcgProjQtnDmndDistr is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of SrcgProjQtnDmndDistrDetails entities.
    • addSrcgProjQtnDmndDistrDets

      public void addSrcgProjQtnDmndDistrDets(SrcgProjQtnDmndDistrDetails... entity)
      Adds elements to the list of associated SrcgProjQtnDmndDistrDetails entities. This corresponds to the OData navigation property _SrcgProjQtnDmndDistrDets.

      If the navigation property _SrcgProjQtnDmndDistrDets of a queried SrcgProjQtnDmndDistr is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of SrcgProjQtnDmndDistrDetails entities.
    • getSrcgProjQtnItemIfPresent

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

      If the navigation property for an entity SrcgProjQtnDmndDistr 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 _SrcgProjQtnItem is already loaded, the result will contain the SrcgProjQtnItem entity. If not, an Option with result state empty is returned.
    • setSrcgProjQtnItem

      public void setSrcgProjQtnItem(SrcgProjQtnItem value)
      Overwrites the associated SrcgProjQtnItem entity for the loaded navigation property _SrcgProjQtnItem.
      Parameters:
      value - New SrcgProjQtnItem entity.
    • builder

      @Nonnull public static SrcgProjQtnDmndDistr.SrcgProjQtnDmndDistrBuilder builder()
    • getSrcgProjQtnDmndDistrUUID

      @Nullable public UUID getSrcgProjQtnDmndDistrUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnDmndDistrUUID

      Returns:
      Demand Distribution UUID in Quotation
    • getSourcingProjectQuotationUUID

      @Nullable public UUID getSourcingProjectQuotationUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectQuotationUUID

      Returns:
      Supplier Quotation UUID
    • getSrcgProjQtnItemUUID

      @Nullable public UUID getSrcgProjQtnItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItemUUID

      Returns:
      Supplier Quotation Item UUID
    • getProcurementProject

      @Nullable public String getProcurementProject()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProcurementProject

      Returns:
      Procurement Project
    • getProcurementHubSourceSystem

      @Nullable public String getProcurementHubSourceSystem()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Returns:
      Connected System ID
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getMaxAnnualRequestedQuantity

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

      Original property name from the Odata EDM: MaxAnnualRequestedQuantity

      Returns:
      Maximum Annually Requested Quantity
    • getRequestedQuantityUnit

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

      Original property name from the Odata EDM: RequestedQuantityUnit

      Returns:
      Requested Quantity Unit
    • getRequestedQuantityISOUnit

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

      Original property name from the Odata EDM: RequestedQuantityISOUnit

      Returns:
      ISO Unit Code for Requested Quantity
    • getSrcgProjQtnTotOfferedQuantity

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

      Original property name from the Odata EDM: SrcgProjQtnTotOfferedQuantity

      Returns:
      Total Offered Quantity Supplier Quotation
    • getPurchasingOrganization

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

      Original property name from the Odata EDM: PurchasingOrganization

      Returns:
      Purchasing Organization
    • getPurchasingGroup

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

      Original property name from the Odata EDM: PurchasingGroup

      Returns:
      Purchasing Group
    • getStorageLocation

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

      Original property name from the Odata EDM: StorageLocation

      Returns:
      Storage Location
    • getProcmtHubPlantUniqueID

      @Nullable public String getProcmtHubPlantUniqueID()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ProcmtHubPlantUniqueID

      Returns:
      Plant Unique ID
    • toString

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

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

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

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

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