Class ProjectDemandResourceRequest

java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<ProjectDemandResourceRequest>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.projectdemand.ProjectDemandResourceRequest

public class ProjectDemandResourceRequest extends VdmEntity<ProjectDemandResourceRequest>
Resource Request

Original entity name from the Odata EDM: A_ProjectDemandResourceRequest_Type

  • Field Details

  • Constructor Details

    • ProjectDemandResourceRequest

      public ProjectDemandResourceRequest()
    • ProjectDemandResourceRequest

      public ProjectDemandResourceRequest(@Nullable UUID projDmndResourceRequestUUID, @Nullable UUID projectDemandWorkUUID, @Nullable UUID projectDemandUUID, @Nullable String projectDemandRequestedResource, @Nullable String projDmndStfngInstructionText, @Nullable String projDmndRsceReqWorkAssgmtOID, @Nullable String projDmndRsceReqWrkfrcPersonOID, @Nullable LocalDateTime projDmndRsceReqStartDate, @Nullable LocalDateTime projDmndRsceReqEndDate, @Nullable String createdByUser, @Nullable ZonedDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable ZonedDateTime lastChangeDateTime, @Nullable ProjectDemandResource toWork, List<ProjDmndRsceReqDistribution> toProjDmndRsceReqDistr, @Nullable ProjectDemand toRoot)
  • Method Details

    • getType

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

      public void setProjDmndResourceRequestUUID(@Nullable UUID projDmndResourceRequestUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProjDmndResourceRequestUUID

      Parameters:
      projDmndResourceRequestUUID - Global Identification of a Resource Request
    • setProjectDemandWorkUUID

      public void setProjectDemandWorkUUID(@Nullable UUID projectDemandWorkUUID)
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandWorkUUID

      Parameters:
      projectDemandWorkUUID - Global Identification of a Resource Demand
    • setProjectDemandUUID

      public void setProjectDemandUUID(@Nullable UUID projectDemandUUID)
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandUUID

      Parameters:
      projectDemandUUID - Global Identification of a Project Demand
    • setProjectDemandRequestedResource

      public void setProjectDemandRequestedResource(@Nullable String projectDemandRequestedResource)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProjectDemandRequestedResource

      Parameters:
      projectDemandRequestedResource - Personnel Number of a Resource
    • setProjDmndStfngInstructionText

      public void setProjDmndStfngInstructionText(@Nullable String projDmndStfngInstructionText)
      Constraints: Not nullable, Maximum length: 1000

      Original property name from the Odata EDM: ProjDmndStfngInstructionText

      Parameters:
      projDmndStfngInstructionText - Staffing Instruction for a Resource Demand
    • setProjDmndRsceReqWorkAssgmtOID

      public void setProjDmndRsceReqWorkAssgmtOID(@Nullable String projDmndRsceReqWorkAssgmtOID)
      Constraints: Not nullable, Maximum length: 100

      Original property name from the Odata EDM: ProjDmndRsceReqWorkAssgmtOID

      Parameters:
      projDmndRsceReqWorkAssgmtOID - Work Assignment ID (SAP One Domain Model)
    • setProjDmndRsceReqWrkfrcPersonOID

      public void setProjDmndRsceReqWrkfrcPersonOID(@Nullable String projDmndRsceReqWrkfrcPersonOID)
      Constraints: Not nullable, Maximum length: 36

      Original property name from the Odata EDM: ProjDmndRsceReqWrkfrcPersonOID

      Parameters:
      projDmndRsceReqWrkfrcPersonOID - Workforce Person ID (SAP One Domain Model)
    • setProjDmndRsceReqStartDate

      public void setProjDmndRsceReqStartDate(@Nullable LocalDateTime projDmndRsceReqStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProjDmndRsceReqStartDate

      Parameters:
      projDmndRsceReqStartDate - Start Date of the Demand
    • setProjDmndRsceReqEndDate

      public void setProjDmndRsceReqEndDate(@Nullable LocalDateTime projDmndRsceReqEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProjDmndRsceReqEndDate

      Parameters:
      projDmndRsceReqEndDate - End Date of the Demand
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By User
    • setCreationDateTime

      public void setCreationDateTime(@Nullable ZonedDateTime creationDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Creation Date Time
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed By User
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Change Date Time
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProjectDemandResourceRequestField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> ProjectDemandResourceRequestField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<ProjectDemandResourceRequest>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<ProjectDemandResourceRequest>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<ProjectDemandResourceRequest>
    • getDefaultServicePath

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

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

      @Nullable public ProjectDemandResource fetchWork()
      Fetches the ProjectDemandResource entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Work.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated ProjectDemandResource entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getWorkOrFetch

      @Nullable public ProjectDemandResource getWorkOrFetch()
      Retrieval of associated ProjectDemandResource entity (one to one). This corresponds to the OData navigation property to_Work.

      If the navigation property to_Work of a queried ProjectDemandResourceRequest 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.

      Returns:
      List of associated ProjectDemandResource entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getWorkIfPresent

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

      If the navigation property for an entity ProjectDemandResourceRequest 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 to_Work is already loaded, the result will contain the ProjectDemandResource entity. If not, an Option with result state empty is returned.
    • setWork

      public void setWork(ProjectDemandResource value)
      Overwrites the associated ProjectDemandResource entity for the loaded navigation property to_Work.
      Parameters:
      value - New ProjectDemandResource entity.
    • fetchProjDmndRsceReqDistr

      @Nonnull public List<ProjDmndRsceReqDistribution> fetchProjDmndRsceReqDistr()
      Fetches the ProjDmndRsceReqDistribution entities (one to many) associated with this entity. This corresponds to the OData navigation property to_ProjDmndRsceReqDistr.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated ProjDmndRsceReqDistribution entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getProjDmndRsceReqDistrOrFetch

      @Nonnull public List<ProjDmndRsceReqDistribution> getProjDmndRsceReqDistrOrFetch()
      Retrieval of associated ProjDmndRsceReqDistribution entities (one to many). This corresponds to the OData navigation property to_ProjDmndRsceReqDistr.

      If the navigation property to_ProjDmndRsceReqDistr of a queried ProjectDemandResourceRequest 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.

      Returns:
      List of associated ProjDmndRsceReqDistribution entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getProjDmndRsceReqDistrIfPresent

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

      If the navigation property for an entity ProjectDemandResourceRequest 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 to_ProjDmndRsceReqDistr is already loaded, the result will contain the ProjDmndRsceReqDistribution entities. If not, an Option with result state empty is returned.
    • setProjDmndRsceReqDistr

      public void setProjDmndRsceReqDistr(@Nonnull List<ProjDmndRsceReqDistribution> value)
      Overwrites the list of associated ProjDmndRsceReqDistribution entities for the loaded navigation property to_ProjDmndRsceReqDistr.

      If the navigation property to_ProjDmndRsceReqDistr of a queried ProjectDemandResourceRequest 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 ProjDmndRsceReqDistribution entities.
    • addProjDmndRsceReqDistr

      public void addProjDmndRsceReqDistr(ProjDmndRsceReqDistribution... entity)
      Adds elements to the list of associated ProjDmndRsceReqDistribution entities. This corresponds to the OData navigation property to_ProjDmndRsceReqDistr.

      If the navigation property to_ProjDmndRsceReqDistr of a queried ProjectDemandResourceRequest 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 ProjDmndRsceReqDistribution entities.
    • fetchRoot

      @Nullable public ProjectDemand fetchRoot()
      Fetches the ProjectDemand entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Root.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated ProjectDemand entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getRootOrFetch

      @Nullable public ProjectDemand getRootOrFetch()
      Retrieval of associated ProjectDemand entity (one to one). This corresponds to the OData navigation property to_Root.

      If the navigation property to_Root of a queried ProjectDemandResourceRequest 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.

      Returns:
      List of associated ProjectDemand entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getRootIfPresent

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

      If the navigation property for an entity ProjectDemandResourceRequest 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 to_Root is already loaded, the result will contain the ProjectDemand entity. If not, an Option with result state empty is returned.
    • setRoot

      public void setRoot(ProjectDemand value)
      Overwrites the associated ProjectDemand entity for the loaded navigation property to_Root.
      Parameters:
      value - New ProjectDemand entity.
    • builder

    • getProjDmndResourceRequestUUID

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

      Original property name from the Odata EDM: ProjDmndResourceRequestUUID

      Returns:
      Global Identification of a Resource Request
    • getProjectDemandWorkUUID

      @Nullable public UUID getProjectDemandWorkUUID()
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandWorkUUID

      Returns:
      Global Identification of a Resource Demand
    • getProjectDemandUUID

      @Nullable public UUID getProjectDemandUUID()
      Constraints: none

      Original property name from the Odata EDM: ProjectDemandUUID

      Returns:
      Global Identification of a Project Demand
    • getProjectDemandRequestedResource

      @Nullable public String getProjectDemandRequestedResource()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProjectDemandRequestedResource

      Returns:
      Personnel Number of a Resource
    • getProjDmndStfngInstructionText

      @Nullable public String getProjDmndStfngInstructionText()
      Constraints: Not nullable, Maximum length: 1000

      Original property name from the Odata EDM: ProjDmndStfngInstructionText

      Returns:
      Staffing Instruction for a Resource Demand
    • getProjDmndRsceReqWorkAssgmtOID

      @Nullable public String getProjDmndRsceReqWorkAssgmtOID()
      Constraints: Not nullable, Maximum length: 100

      Original property name from the Odata EDM: ProjDmndRsceReqWorkAssgmtOID

      Returns:
      Work Assignment ID (SAP One Domain Model)
    • getProjDmndRsceReqWrkfrcPersonOID

      @Nullable public String getProjDmndRsceReqWrkfrcPersonOID()
      Constraints: Not nullable, Maximum length: 36

      Original property name from the Odata EDM: ProjDmndRsceReqWrkfrcPersonOID

      Returns:
      Workforce Person ID (SAP One Domain Model)
    • getProjDmndRsceReqStartDate

      @Nullable public LocalDateTime getProjDmndRsceReqStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProjDmndRsceReqStartDate

      Returns:
      Start Date of the Demand
    • getProjDmndRsceReqEndDate

      @Nullable public LocalDateTime getProjDmndRsceReqEndDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProjDmndRsceReqEndDate

      Returns:
      End Date of the Demand
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By User
    • getCreationDateTime

      @Nullable public ZonedDateTime getCreationDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Creation Date Time
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By User
    • getLastChangeDateTime

      @Nullable public ZonedDateTime getLastChangeDateTime()
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Change Date Time
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProjectDemandResourceRequest>