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

public class SrcgProjItmCndnValidity extends VdmEntity<SrcgProjItmCndnValidity> implements VdmEntitySet
Condition Validity

Original entity name from the Odata EDM: SrcgProjItmCndnValidity_Type

  • Field Details

  • Constructor Details

    • SrcgProjItmCndnValidity

      public SrcgProjItmCndnValidity()
    • SrcgProjItmCndnValidity

      public SrcgProjItmCndnValidity(@Nullable UUID srcgProjItemCndnValdtyUUID, @Nullable UUID sourcingProjectUUID, @Nullable UUID sourcingProjectItemUUID, @Nullable LocalDate conditionValidityStartDate, @Nullable LocalDate conditionValidityEndDate, @Nullable String procmtHubPlantUniqueID, @Nullable String conditionType, @Nullable String sourcingOrigin, @Nullable String sourcingScenario, @Nullable String conditionText, @Nullable String procmtHubPlant, @Nullable String procmtHubPlantName, @Nullable String procurementHubSourceSystem, @Nullable String procurementHubSourceSystemName, @Nullable SourcingProject to_SourcingProject, @Nullable SourcingProjectItem to_SourcingProjectItem, List<SrcgProjItmCndnAmount> to_SrcgProjItmCndnAmount)
  • Method Details

    • getType

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

      public void setSrcgProjItemCndnValdtyUUID(@Nullable UUID srcgProjItemCndnValdtyUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjItemCndnValdtyUUID

      Parameters:
      srcgProjItemCndnValdtyUUID - Condition Validity UUID in Sourcing Project
    • 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
    • setConditionValidityStartDate

      public void setConditionValidityStartDate(@Nullable LocalDate conditionValidityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ConditionValidityStartDate

      Parameters:
      conditionValidityStartDate - Validity start date of the condition record
    • setConditionValidityEndDate

      public void setConditionValidityEndDate(@Nullable LocalDate conditionValidityEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ConditionValidityEndDate

      Parameters:
      conditionValidityEndDate - Validity end date of the condition record
    • 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
    • setConditionType

      public void setConditionType(@Nullable String conditionType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ConditionType

      Parameters:
      conditionType - Condition Type
    • 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
    • setConditionText

      public void setConditionText(@Nullable String conditionText)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ConditionText

      Parameters:
      conditionText - Description
    • setProcmtHubPlant

      public void setProcmtHubPlant(@Nullable String procmtHubPlant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ProcmtHubPlant

      Parameters:
      procmtHubPlant - Connected Plant
    • setProcmtHubPlantName

      public void setProcmtHubPlantName(@Nullable String procmtHubPlantName)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ProcmtHubPlantName

      Parameters:
      procmtHubPlantName - Plant Name
    • 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
    • setProcurementHubSourceSystemName

      public void setProcurementHubSourceSystemName(@Nullable String procurementHubSourceSystemName)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ProcurementHubSourceSystemName

      Parameters:
      procurementHubSourceSystemName - Connected System Name
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrcgProjItmCndnValidity 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 _SrcgProjItmCndnAmount is already loaded, the result will contain the SrcgProjItmCndnAmount entities. If not, an Option with result state empty is returned.
    • setSrcgProjItmCndnAmount

      public void setSrcgProjItmCndnAmount(@Nonnull List<SrcgProjItmCndnAmount> value)
      Overwrites the list of associated SrcgProjItmCndnAmount entities for the loaded navigation property _SrcgProjItmCndnAmount.

      If the navigation property _SrcgProjItmCndnAmount of a queried SrcgProjItmCndnValidity 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 SrcgProjItmCndnAmount entities.
    • addSrcgProjItmCndnAmount

      public void addSrcgProjItmCndnAmount(SrcgProjItmCndnAmount... entity)
      Adds elements to the list of associated SrcgProjItmCndnAmount entities. This corresponds to the OData navigation property _SrcgProjItmCndnAmount.

      If the navigation property _SrcgProjItmCndnAmount of a queried SrcgProjItmCndnValidity 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 SrcgProjItmCndnAmount entities.
    • builder

    • getSrcgProjItemCndnValdtyUUID

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

      Original property name from the Odata EDM: SrcgProjItemCndnValdtyUUID

      Returns:
      Condition Validity UUID in Sourcing Project
    • 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
    • getConditionValidityStartDate

      @Nullable public LocalDate getConditionValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ConditionValidityStartDate

      Returns:
      Validity start date of the condition record
    • getConditionValidityEndDate

      @Nullable public LocalDate getConditionValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ConditionValidityEndDate

      Returns:
      Validity end date of the condition record
    • getProcmtHubPlantUniqueID

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

      Original property name from the Odata EDM: ProcmtHubPlantUniqueID

      Returns:
      Plant Unique ID
    • getConditionType

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

      Original property name from the Odata EDM: ConditionType

      Returns:
      Condition Type
    • 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
    • getConditionText

      @Nullable public String getConditionText()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ConditionText

      Returns:
      Description
    • getProcmtHubPlant

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

      Original property name from the Odata EDM: ProcmtHubPlant

      Returns:
      Connected Plant
    • getProcmtHubPlantName

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

      Original property name from the Odata EDM: ProcmtHubPlantName

      Returns:
      Plant Name
    • getProcurementHubSourceSystem

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

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Returns:
      Connected System ID
    • getProcurementHubSourceSystemName

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

      Original property name from the Odata EDM: ProcurementHubSourceSystemName

      Returns:
      Connected System Name
    • toString

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

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

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

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

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