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

public class SPNegttnQtnItemDemandDistr extends VdmEntity<SPNegttnQtnItemDemandDistr> implements VdmEntitySet
Demand Distribution for Srcg Proj Negttn

Original entity name from the Odata EDM: SPNegttnQtnItemDemandDistr_Type

  • Field Details

  • Constructor Details

    • SPNegttnQtnItemDemandDistr

      public SPNegttnQtnItemDemandDistr()
    • SPNegttnQtnItemDemandDistr

      public SPNegttnQtnItemDemandDistr(@Nullable UUID sPNegttnQtnItemDemandDistrUUID, @Nullable UUID srcgProjNegttnQtanItemUUID, @Nullable UUID sourcingProjectNegotiationUUID, @Nullable UUID srcgProjQtnDmndDistrUUID, @Nullable String plant, @Nullable BigDecimal maxAnnualRequestedQuantity, @Nullable BigDecimal srcgProjNegttnMaxTargetQty, @Nullable BigDecimal srcgProjNegttnTotalTargetQty, @Nullable String requestedQuantityUnit, @Nullable String srcgProjNegttnItmInclusionType, @Nullable UUID srcgProjDmndDistributionUUID, @Nullable UUID sourcingProjectUUID, @Nullable UUID sourcingProjectItemUUID, @Nullable SourcingProjectNegotiation to_SourcingProjectNegotiation, List<SPNegttnQtnItmDmndDistrDet> to_SPNegttnQtnItmDmndDistrDet, @Nullable SrcgProjNegotiationQuotationItem to_SrcgProjNegttnQtanItem)
  • Method Details

    • getType

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

      public void setSPNegttnQtnItemDemandDistrUUID(@Nullable UUID sPNegttnQtnItemDemandDistrUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SPNegttnQtnItemDemandDistrUUID

      Parameters:
      sPNegttnQtnItemDemandDistrUUID - Demand Distribution UUID of Quotation Item in Negotiation
    • setSrcgProjNegttnQtanItemUUID

      public void setSrcgProjNegttnQtanItemUUID(@Nullable UUID srcgProjNegttnQtanItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjNegttnQtanItemUUID

      Parameters:
      srcgProjNegttnQtanItemUUID - UUID of Quotation Item in Negotiation
    • setSourcingProjectNegotiationUUID

      public void setSourcingProjectNegotiationUUID(@Nullable UUID sourcingProjectNegotiationUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectNegotiationUUID

      Parameters:
      sourcingProjectNegotiationUUID - Negotiation UUID
    • setSrcgProjQtnDmndDistrUUID

      public void setSrcgProjQtnDmndDistrUUID(@Nullable UUID srcgProjQtnDmndDistrUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: SrcgProjQtnDmndDistrUUID

      Parameters:
      srcgProjQtnDmndDistrUUID - Demand Distribution UUID in Quotation
    • 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
    • setSrcgProjNegttnMaxTargetQty

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

      Original property name from the Odata EDM: SrcgProjNegttnMaxTargetQty

      Parameters:
      srcgProjNegttnMaxTargetQty - Maximum Negotiation Target Quantity
    • setSrcgProjNegttnTotalTargetQty

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

      Original property name from the Odata EDM: SrcgProjNegttnTotalTargetQty

      Parameters:
      srcgProjNegttnTotalTargetQty - Total Negotiation Target 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
    • setSrcgProjNegttnItmInclusionType

      public void setSrcgProjNegttnItmInclusionType(@Nullable String srcgProjNegttnItmInclusionType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SrcgProjNegttnItmInclusionType

      Parameters:
      srcgProjNegttnItmInclusionType - Include Type Code of Negotiation Item
    • setSrcgProjDmndDistributionUUID

      public void setSrcgProjDmndDistributionUUID(@Nullable UUID srcgProjDmndDistributionUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: SrcgProjDmndDistributionUUID

      Parameters:
      srcgProjDmndDistributionUUID - Sourcing Project Demand Distribution UUID
    • setSourcingProjectUUID

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

      Original property name from the Odata EDM: SourcingProjectUUID

      Parameters:
      sourcingProjectUUID - Sourcing Project UUID
    • setSourcingProjectItemUUID

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

      Original property name from the Odata EDM: SourcingProjectItemUUID

      Parameters:
      sourcingProjectItemUUID - Sourcing Project Item UUID
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SPNegttnQtnItemDemandDistr 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 _SourcingProjectNegotiation is already loaded, the result will contain the SourcingProjectNegotiation entity. If not, an Option with result state empty is returned.
    • setSourcingProjectNegotiation

      public void setSourcingProjectNegotiation(SourcingProjectNegotiation value)
      Overwrites the associated SourcingProjectNegotiation entity for the loaded navigation property _SourcingProjectNegotiation.
      Parameters:
      value - New SourcingProjectNegotiation entity.
    • getSPNegttnQtnItmDmndDistrDetIfPresent

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

      If the navigation property for an entity SPNegttnQtnItemDemandDistr 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 _SPNegttnQtnItmDmndDistrDet is already loaded, the result will contain the SPNegttnQtnItmDmndDistrDet entities. If not, an Option with result state empty is returned.
    • setSPNegttnQtnItmDmndDistrDet

      public void setSPNegttnQtnItmDmndDistrDet(@Nonnull List<SPNegttnQtnItmDmndDistrDet> value)
      Overwrites the list of associated SPNegttnQtnItmDmndDistrDet entities for the loaded navigation property _SPNegttnQtnItmDmndDistrDet.

      If the navigation property _SPNegttnQtnItmDmndDistrDet of a queried SPNegttnQtnItemDemandDistr 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 SPNegttnQtnItmDmndDistrDet entities.
    • addSPNegttnQtnItmDmndDistrDet

      public void addSPNegttnQtnItmDmndDistrDet(SPNegttnQtnItmDmndDistrDet... entity)
      Adds elements to the list of associated SPNegttnQtnItmDmndDistrDet entities. This corresponds to the OData navigation property _SPNegttnQtnItmDmndDistrDet.

      If the navigation property _SPNegttnQtnItmDmndDistrDet of a queried SPNegttnQtnItemDemandDistr 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 SPNegttnQtnItmDmndDistrDet entities.
    • getSrcgProjNegttnQtanItemIfPresent

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

      If the navigation property for an entity SPNegttnQtnItemDemandDistr 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 _SrcgProjNegttnQtanItem is already loaded, the result will contain the SrcgProjNegotiationQuotationItem entity. If not, an Option with result state empty is returned.
    • setSrcgProjNegttnQtanItem

      public void setSrcgProjNegttnQtanItem(SrcgProjNegotiationQuotationItem value)
      Overwrites the associated SrcgProjNegotiationQuotationItem entity for the loaded navigation property _SrcgProjNegttnQtanItem.
      Parameters:
      value - New SrcgProjNegotiationQuotationItem entity.
    • builder

    • getSPNegttnQtnItemDemandDistrUUID

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

      Original property name from the Odata EDM: SPNegttnQtnItemDemandDistrUUID

      Returns:
      Demand Distribution UUID of Quotation Item in Negotiation
    • getSrcgProjNegttnQtanItemUUID

      @Nullable public UUID getSrcgProjNegttnQtanItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjNegttnQtanItemUUID

      Returns:
      UUID of Quotation Item in Negotiation
    • getSourcingProjectNegotiationUUID

      @Nullable public UUID getSourcingProjectNegotiationUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectNegotiationUUID

      Returns:
      Negotiation UUID
    • getSrcgProjQtnDmndDistrUUID

      @Nullable public UUID getSrcgProjQtnDmndDistrUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: SrcgProjQtnDmndDistrUUID

      Returns:
      Demand Distribution UUID in Quotation
    • 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
    • getSrcgProjNegttnMaxTargetQty

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

      Original property name from the Odata EDM: SrcgProjNegttnMaxTargetQty

      Returns:
      Maximum Negotiation Target Quantity
    • getSrcgProjNegttnTotalTargetQty

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

      Original property name from the Odata EDM: SrcgProjNegttnTotalTargetQty

      Returns:
      Total Negotiation Target Quantity
    • getRequestedQuantityUnit

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

      Original property name from the Odata EDM: RequestedQuantityUnit

      Returns:
      Requested Quantity Unit
    • getSrcgProjNegttnItmInclusionType

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

      Original property name from the Odata EDM: SrcgProjNegttnItmInclusionType

      Returns:
      Include Type Code of Negotiation Item
    • getSrcgProjDmndDistributionUUID

      @Nullable public UUID getSrcgProjDmndDistributionUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: SrcgProjDmndDistributionUUID

      Returns:
      Sourcing Project Demand Distribution UUID
    • getSourcingProjectUUID

      @Nullable public UUID getSourcingProjectUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: SourcingProjectUUID

      Returns:
      Sourcing Project UUID
    • getSourcingProjectItemUUID

      @Nullable public UUID getSourcingProjectItemUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: SourcingProjectItemUUID

      Returns:
      Sourcing Project Item UUID
    • toString

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

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

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

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

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