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

public class SourcingProjectType extends VdmEntity<SourcingProjectType> implements VdmEntitySet
Sourcing Project Type

Original entity name from the Odata EDM: SourcingProjectTypeType

  • Field Details

  • Constructor Details

    • SourcingProjectType

      public SourcingProjectType()
    • SourcingProjectType

      public SourcingProjectType(@Nullable String sourcingProjectType, @Nullable String sourcingProjectTypeText, @Nullable String srcgProjItemUnconfdDmndRsnGrp, @Nullable String srcPrjSuplrPartcipnDclnRsnGrp, @Nullable String srcgProjQtnItemExcludingRsnGrp, @Nullable String srcgProjSuplrUnlockingRsnGroup, @Nullable String srcgProjVersioningReasonGroup, @Nullable String srcgProjContactGroup, @Nullable String srcgProjFollowOnDocumentGroup, @Nullable String srcgProjMilestoneGroup, @Nullable String srcgProjPhaseGroup, @Nullable String sourcingScenario, @Nullable Boolean srcgProjItmConfDmndHasEnabled, List<SourcingProjectTypeText> to_SourcingProjectTypeText)
  • Method Details

    • getType

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

      public void setSourcingProjectType(@Nullable String sourcingProjectType)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourcingProjectType

      Parameters:
      sourcingProjectType - Sourcing Project Type
    • setSourcingProjectTypeText

      public void setSourcingProjectTypeText(@Nullable String sourcingProjectTypeText)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SourcingProjectTypeText

      Parameters:
      sourcingProjectTypeText - Short Description of Sourcing Project Type
    • setSrcgProjItemUnconfdDmndRsnGrp

      public void setSrcgProjItemUnconfdDmndRsnGrp(@Nullable String srcgProjItemUnconfdDmndRsnGrp)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SrcgProjItemUnconfdDmndRsnGrp

      Parameters:
      srcgProjItemUnconfdDmndRsnGrp - Reason Group used in Sourcing Project
    • setSrcPrjSuplrPartcipnDclnRsnGrp

      public void setSrcPrjSuplrPartcipnDclnRsnGrp(@Nullable String srcPrjSuplrPartcipnDclnRsnGrp)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SrcPrjSuplrPartcipnDclnRsnGrp

      Parameters:
      srcPrjSuplrPartcipnDclnRsnGrp - Group of Reasons f. Declined Participation in Sourcing Proj
    • setSrcgProjQtnItemExcludingRsnGrp

      public void setSrcgProjQtnItemExcludingRsnGrp(@Nullable String srcgProjQtnItemExcludingRsnGrp)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SrcgProjQtnItemExcludingRsnGrp

      Parameters:
      srcgProjQtnItemExcludingRsnGrp - Group of Reasons for Excluding Item in Supplier Quotation
    • setSrcgProjSuplrUnlockingRsnGroup

      public void setSrcgProjSuplrUnlockingRsnGroup(@Nullable String srcgProjSuplrUnlockingRsnGroup)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SrcgProjSuplrUnlockingRsnGroup

      Parameters:
      srcgProjSuplrUnlockingRsnGroup - Group of Reasons for Unlocking Supplier in Sourcing Project
    • setSrcgProjVersioningReasonGroup

      public void setSrcgProjVersioningReasonGroup(@Nullable String srcgProjVersioningReasonGroup)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SrcgProjVersioningReasonGroup

      Parameters:
      srcgProjVersioningReasonGroup - Group of Reasons for New Version of Sourcing Project
    • setSrcgProjContactGroup

      public void setSrcgProjContactGroup(@Nullable String srcgProjContactGroup)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SrcgProjContactGroup

      Parameters:
      srcgProjContactGroup - Contact Category Group for Supplier Quotation (SP)
    • setSrcgProjFollowOnDocumentGroup

      public void setSrcgProjFollowOnDocumentGroup(@Nullable String srcgProjFollowOnDocumentGroup)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SrcgProjFollowOnDocumentGroup

      Parameters:
      srcgProjFollowOnDocumentGroup - Follow-On Document Group for Sourcing Project Quotation
    • setSrcgProjMilestoneGroup

      public void setSrcgProjMilestoneGroup(@Nullable String srcgProjMilestoneGroup)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SrcgProjMilestoneGroup

      Parameters:
      srcgProjMilestoneGroup - Sourcing Project Milestone Group
    • setSrcgProjPhaseGroup

      public void setSrcgProjPhaseGroup(@Nullable String srcgProjPhaseGroup)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SrcgProjPhaseGroup

      Parameters:
      srcgProjPhaseGroup - Sourcing Project Phase Group
    • 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
    • setSrcgProjItmConfDmndHasEnabled

      public void setSrcgProjItmConfDmndHasEnabled(@Nullable Boolean srcgProjItmConfDmndHasEnabled)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjItmConfDmndHasEnabled

      Parameters:
      srcgProjItmConfDmndHasEnabled - Demand Confirmation Enablement
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SourcingProjectType 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 _SourcingProjectTypeText is already loaded, the result will contain the SourcingProjectTypeText entities. If not, an Option with result state empty is returned.
    • setSourcingProjectTypeText

      public void setSourcingProjectTypeText(@Nonnull List<SourcingProjectTypeText> value)
      Overwrites the list of associated SourcingProjectTypeText entities for the loaded navigation property _SourcingProjectTypeText.

      If the navigation property _SourcingProjectTypeText of a queried SourcingProjectType 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 SourcingProjectTypeText entities.
    • addSourcingProjectTypeText

      public void addSourcingProjectTypeText(SourcingProjectTypeText... entity)
      Adds elements to the list of associated SourcingProjectTypeText entities. This corresponds to the OData navigation property _SourcingProjectTypeText.

      If the navigation property _SourcingProjectTypeText of a queried SourcingProjectType 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 SourcingProjectTypeText entities.
    • builder

      @Nonnull public static SourcingProjectType.SourcingProjectTypeBuilder builder()
    • getSourcingProjectType

      @Nullable public String getSourcingProjectType()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourcingProjectType

      Returns:
      Sourcing Project Type
    • getSourcingProjectTypeText

      @Nullable public String getSourcingProjectTypeText()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SourcingProjectTypeText

      Returns:
      Short Description of Sourcing Project Type
    • getSrcgProjItemUnconfdDmndRsnGrp

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

      Original property name from the Odata EDM: SrcgProjItemUnconfdDmndRsnGrp

      Returns:
      Reason Group used in Sourcing Project
    • getSrcPrjSuplrPartcipnDclnRsnGrp

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

      Original property name from the Odata EDM: SrcPrjSuplrPartcipnDclnRsnGrp

      Returns:
      Group of Reasons f. Declined Participation in Sourcing Proj
    • getSrcgProjQtnItemExcludingRsnGrp

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

      Original property name from the Odata EDM: SrcgProjQtnItemExcludingRsnGrp

      Returns:
      Group of Reasons for Excluding Item in Supplier Quotation
    • getSrcgProjSuplrUnlockingRsnGroup

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

      Original property name from the Odata EDM: SrcgProjSuplrUnlockingRsnGroup

      Returns:
      Group of Reasons for Unlocking Supplier in Sourcing Project
    • getSrcgProjVersioningReasonGroup

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

      Original property name from the Odata EDM: SrcgProjVersioningReasonGroup

      Returns:
      Group of Reasons for New Version of Sourcing Project
    • getSrcgProjContactGroup

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

      Original property name from the Odata EDM: SrcgProjContactGroup

      Returns:
      Contact Category Group for Supplier Quotation (SP)
    • getSrcgProjFollowOnDocumentGroup

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

      Original property name from the Odata EDM: SrcgProjFollowOnDocumentGroup

      Returns:
      Follow-On Document Group for Sourcing Project Quotation
    • getSrcgProjMilestoneGroup

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

      Original property name from the Odata EDM: SrcgProjMilestoneGroup

      Returns:
      Sourcing Project Milestone Group
    • getSrcgProjPhaseGroup

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

      Original property name from the Odata EDM: SrcgProjPhaseGroup

      Returns:
      Sourcing Project Phase Group
    • getSourcingScenario

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

      Original property name from the Odata EDM: SourcingScenario

      Returns:
      Sourcing Integration Scenario
    • getSrcgProjItmConfDmndHasEnabled

      @Nullable public Boolean getSrcgProjItmConfDmndHasEnabled()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjItmConfDmndHasEnabled

      Returns:
      Demand Confirmation Enablement
    • toString

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

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

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

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

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