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

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

Original entity name from the Odata EDM: SrcgProjDemandDistribution_Type

  • Field Details

  • Constructor Details

    • SrcgProjDemandDistribution

      public SrcgProjDemandDistribution()
    • SrcgProjDemandDistribution

      public SrcgProjDemandDistribution(@Nullable UUID srcgProjDmndDistributionUUID, @Nullable UUID sourcingProjectUUID, @Nullable UUID sourcingProjectItemUUID, @Nullable String procurementProject, @Nullable String plant, @Nullable String companyCode, @Nullable String purchasingOrganization, @Nullable String purchasingGroup, @Nullable String procurementHubSourceSystem, @Nullable String storageLocation, @Nullable BigDecimal maxAnnualRequestedQuantity, @Nullable BigDecimal requestedQuantity, @Nullable String procmtHubPlantUniqueID, @Nullable String srcgProjFollowOnDocumentCat, @Nullable String srcgProjFollowOnDocumentType, @Nullable String srcgProjItemDemandConfCode, @Nullable String srcgProjItemUnconfdDemandRsn, @Nullable String sourcingOrigin, @Nullable String sourcingScenario, @Nullable String requestedQuantityUnit, @Nullable String requestedQuantityISOUnit, @Nullable Collection<SAP__Message> _Messages, @Nullable SourcingProject to_SourcingProject, @Nullable SourcingProjectItem to_SourcingProjectItem, List<SrcgProjDmndDistrDetails> to_SrcgProjDmndDistrDetails)
  • Method Details

    • getType

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

      public void setSrcgProjDmndDistributionUUID(@Nullable UUID srcgProjDmndDistributionUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjDmndDistributionUUID

      Parameters:
      srcgProjDmndDistributionUUID - Sourcing Project Demand Distribution UUID
    • setSourcingProjectUUID

      public void setSourcingProjectUUID(@Nullable UUID sourcingProjectUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectUUID

      Parameters:
      sourcingProjectUUID - Sourcing Project UUID
    • setSourcingProjectItemUUID

      public void setSourcingProjectItemUUID(@Nullable UUID sourcingProjectItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectItemUUID

      Parameters:
      sourcingProjectItemUUID - Sourcing Project 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
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • 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
    • 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
    • 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
    • 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
    • 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
    • setRequestedQuantity

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

      Original property name from the Odata EDM: RequestedQuantity

      Parameters:
      requestedQuantity - Requested Quantity
    • 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
    • setSrcgProjFollowOnDocumentCat

      public void setSrcgProjFollowOnDocumentCat(@Nullable String srcgProjFollowOnDocumentCat)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SrcgProjFollowOnDocumentCat

      Parameters:
      srcgProjFollowOnDocumentCat - Follow-On Purchasing Document Category
    • setSrcgProjFollowOnDocumentType

      public void setSrcgProjFollowOnDocumentType(@Nullable String srcgProjFollowOnDocumentType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SrcgProjFollowOnDocumentType

      Parameters:
      srcgProjFollowOnDocumentType - Follow-On Purchasing Document Type
    • setSrcgProjItemDemandConfCode

      public void setSrcgProjItemDemandConfCode(@Nullable String srcgProjItemDemandConfCode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SrcgProjItemDemandConfCode

      Parameters:
      srcgProjItemDemandConfCode - Demand is Confirmed
    • setSrcgProjItemUnconfdDemandRsn

      public void setSrcgProjItemUnconfdDemandRsn(@Nullable String srcgProjItemUnconfdDemandRsn)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SrcgProjItemUnconfdDemandRsn

      Parameters:
      srcgProjItemUnconfdDemandRsn - Reason for Unconfirmed Demand for Item
    • setSourcingOrigin

      public void setSourcingOrigin(@Nullable String sourcingOrigin)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourcingOrigin

      Parameters:
      sourcingOrigin - Sourcing Origin
    • setSourcingScenario

      public void setSourcingScenario(@Nullable String sourcingScenario)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourcingScenario

      Parameters:
      sourcingScenario - Sourcing Integration Scenario
    • 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
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrcgProjDemandDistribution 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 _SourcingProject is already loaded, the result will contain the SourcingProject entity. If not, an Option with result state empty is returned.
    • setSourcingProject

      public void setSourcingProject(SourcingProject value)
      Overwrites the associated SourcingProject entity for the loaded navigation property _SourcingProject.
      Parameters:
      value - New SourcingProject entity.
    • getSourcingProjectItemIfPresent

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

      If the navigation property for an entity SrcgProjDemandDistribution 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 _SourcingProjectItem is already loaded, the result will contain the SourcingProjectItem entity. If not, an Option with result state empty is returned.
    • setSourcingProjectItem

      public void setSourcingProjectItem(SourcingProjectItem value)
      Overwrites the associated SourcingProjectItem entity for the loaded navigation property _SourcingProjectItem.
      Parameters:
      value - New SourcingProjectItem entity.
    • getSrcgProjDmndDistrDetailsIfPresent

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

      If the navigation property for an entity SrcgProjDemandDistribution 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 _SrcgProjDmndDistrDetails is already loaded, the result will contain the SrcgProjDmndDistrDetails entities. If not, an Option with result state empty is returned.
    • setSrcgProjDmndDistrDetails

      public void setSrcgProjDmndDistrDetails(@Nonnull List<SrcgProjDmndDistrDetails> value)
      Overwrites the list of associated SrcgProjDmndDistrDetails entities for the loaded navigation property _SrcgProjDmndDistrDetails.

      If the navigation property _SrcgProjDmndDistrDetails of a queried SrcgProjDemandDistribution 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 SrcgProjDmndDistrDetails entities.
    • addSrcgProjDmndDistrDetails

      public void addSrcgProjDmndDistrDetails(SrcgProjDmndDistrDetails... entity)
      Adds elements to the list of associated SrcgProjDmndDistrDetails entities. This corresponds to the OData navigation property _SrcgProjDmndDistrDetails.

      If the navigation property _SrcgProjDmndDistrDetails of a queried SrcgProjDemandDistribution 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 SrcgProjDmndDistrDetails entities.
    • confirmItemDemandDistribution

      @Nonnull public static BoundAction.SingleToSingle<SrcgProjDemandDistribution,SrcgProjDemandDistribution> confirmItemDemandDistribution()
      Action that can be applied to any entity object of this class.

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • setItemDemandDistributionToUnconfirmedWithReason

      @Nonnull public static BoundAction.SingleToSingle<SrcgProjDemandDistribution,SrcgProjDemandDistribution> setItemDemandDistributionToUnconfirmedWithReason(@Nonnull String sourcingProjectType, @Nonnull String srcgProjItemUnconfdDemandRsn)
      Action that can be applied to any entity object of this class.

      Parameters:
      sourcingProjectType - Constraints: Not nullable, Maximum length: 2

      Original parameter name from the Odata EDM: SourcingProjectType

      srcgProjItemUnconfdDemandRsn - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: SrcgProjItemUnconfdDemandRsn

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • setItemDemandDistributionToUnconfirmed

      @Nonnull public static BoundAction.SingleToSingle<SrcgProjDemandDistribution,SrcgProjDemandDistribution> setItemDemandDistributionToUnconfirmed()
      Action that can be applied to any entity object of this class.

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

    • getSrcgProjDmndDistributionUUID

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

      Original property name from the Odata EDM: SrcgProjDmndDistributionUUID

      Returns:
      Sourcing Project Demand Distribution UUID
    • getSourcingProjectUUID

      @Nullable public UUID getSourcingProjectUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectUUID

      Returns:
      Sourcing Project UUID
    • getSourcingProjectItemUUID

      @Nullable public UUID getSourcingProjectItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectItemUUID

      Returns:
      Sourcing Project Item UUID
    • getProcurementProject

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

      Original property name from the Odata EDM: ProcurementProject

      Returns:
      Procurement Project
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • 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
    • getProcurementHubSourceSystem

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

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Returns:
      Connected System ID
    • getStorageLocation

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

      Original property name from the Odata EDM: StorageLocation

      Returns:
      Storage Location
    • 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
    • getRequestedQuantity

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

      Original property name from the Odata EDM: RequestedQuantity

      Returns:
      Requested Quantity
    • getProcmtHubPlantUniqueID

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

      Original property name from the Odata EDM: ProcmtHubPlantUniqueID

      Returns:
      Plant Unique ID
    • getSrcgProjFollowOnDocumentCat

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

      Original property name from the Odata EDM: SrcgProjFollowOnDocumentCat

      Returns:
      Follow-On Purchasing Document Category
    • getSrcgProjFollowOnDocumentType

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

      Original property name from the Odata EDM: SrcgProjFollowOnDocumentType

      Returns:
      Follow-On Purchasing Document Type
    • getSrcgProjItemDemandConfCode

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

      Original property name from the Odata EDM: SrcgProjItemDemandConfCode

      Returns:
      Demand is Confirmed
    • getSrcgProjItemUnconfdDemandRsn

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

      Original property name from the Odata EDM: SrcgProjItemUnconfdDemandRsn

      Returns:
      Reason for Unconfirmed Demand for Item
    • getSourcingOrigin

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

      Original property name from the Odata EDM: SourcingOrigin

      Returns:
      Sourcing Origin
    • getSourcingScenario

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

      Original property name from the Odata EDM: SourcingScenario

      Returns:
      Sourcing Integration Scenario
    • 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
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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