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

public class ProjectDemandResource extends VdmEntity<ProjectDemandResource>
Resource Demand

Original entity name from the Odata EDM: A_ProjectDemandResource_Type

  • Field Details

    • ALL_FIELDS

      public static final ProjectDemandResourceSelectable ALL_FIELDS
      Selector for all available fields of ProjectDemandResource.
    • PROJECT_DEMAND_WORK_UUID

      public static final ProjectDemandResourceField<UUID> PROJECT_DEMAND_WORK_UUID
      Use with available fluent helpers to apply the ProjectDemandWorkUUID field to query operations.
    • PROJECT_DEMAND_UUID

      public static final ProjectDemandResourceField<UUID> PROJECT_DEMAND_UUID
      Use with available fluent helpers to apply the ProjectDemandUUID field to query operations.
    • COST_CENTER

      public static final ProjectDemandResourceField<String> COST_CENTER
      Use with available fluent helpers to apply the CostCenter field to query operations.
    • ACTIVITY_TYPE

      public static final ProjectDemandResourceField<String> ACTIVITY_TYPE
      Use with available fluent helpers to apply the ActivityType field to query operations.
    • PROJ_DMND_ASSGMT_STATUS

      public static final ProjectDemandResourceField<String> PROJ_DMND_ASSGMT_STATUS
      Use with available fluent helpers to apply the ProjDmndAssgmtStatus field to query operations.
    • PROJECT_ELEMENT_WORK_ITEM

      public static final ProjectDemandResourceField<String> PROJECT_ELEMENT_WORK_ITEM
      Use with available fluent helpers to apply the ProjectElementWorkItem field to query operations.
    • PROJ_DMND_BILLING_CONTROL_CATEGORY

      public static final ProjectDemandResourceField<String> PROJ_DMND_BILLING_CONTROL_CATEGORY
      Use with available fluent helpers to apply the ProjDmndBillingControlCategory field to query operations.
    • PROJ_DMND_REQUESTED_DELIVERY_ORG

      public static final ProjectDemandResourceField<String> PROJ_DMND_REQUESTED_DELIVERY_ORG
      Use with available fluent helpers to apply the ProjDmndRequestedDeliveryOrg field to query operations.
    • TO_ROOT

      public static final ProjectDemandResourceOneToOneLink<ProjectDemand> TO_ROOT
      Use with available fluent helpers to apply the to_Root navigation property to query operations.
    • TO_RESOURCE_ASSIGNMENT

      public static final ProjectDemandResourceLink<ProjDmndResourceAssignment> TO_RESOURCE_ASSIGNMENT
      Use with available fluent helpers to apply the to_ResourceAssignment navigation property to query operations.
    • TO_RESOURCE_REQUEST

      public static final ProjectDemandResourceLink<ProjectDemandResourceRequest> TO_RESOURCE_REQUEST
      Use with available fluent helpers to apply the to_ResourceRequest navigation property to query operations.
  • Constructor Details

  • Method Details

    • getType

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

      public void setProjectDemandWorkUUID(@Nullable UUID projectDemandWorkUUID)
      (Key Field) Constraints: Not nullable

      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
    • setCostCenter

      public void setCostCenter(@Nullable String costCenter)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CostCenter

      Parameters:
      costCenter - Cost Center
    • setActivityType

      public void setActivityType(@Nullable String activityType)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ActivityType

      Parameters:
      activityType - Activity Type
    • setProjDmndAssgmtStatus

      public void setProjDmndAssgmtStatus(@Nullable String projDmndAssgmtStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProjDmndAssgmtStatus

      Parameters:
      projDmndAssgmtStatus - Assignment Status of a Resource Demand
    • setProjectElementWorkItem

      public void setProjectElementWorkItem(@Nullable String projectElementWorkItem)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProjectElementWorkItem

      Parameters:
      projectElementWorkItem - ID of the Work Item to Which a Resource Demand is Related
    • setProjDmndBillingControlCategory

      public void setProjDmndBillingControlCategory(@Nullable String projDmndBillingControlCategory)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProjDmndBillingControlCategory

      Parameters:
      projDmndBillingControlCategory - Billing Control Category
    • setProjDmndRequestedDeliveryOrg

      public void setProjDmndRequestedDeliveryOrg(@Nullable String projDmndRequestedDeliveryOrg)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ProjDmndRequestedDeliveryOrg

      Parameters:
      projDmndRequestedDeliveryOrg - Delivery Organization from Which a Resource is Required
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProjectDemandResourceField<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> ProjectDemandResourceField<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<ProjectDemandResource>
    • setServicePathForFetch

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

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

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

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

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

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

      Returns:
      List containing one or more associated ProjDmndResourceAssignment 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.
    • getResourceAssignmentOrFetch

      @Nonnull public List<ProjDmndResourceAssignment> getResourceAssignmentOrFetch()
      Retrieval of associated ProjDmndResourceAssignment entities (one to many). This corresponds to the OData navigation property to_ResourceAssignment.

      If the navigation property to_ResourceAssignment of a queried ProjectDemandResource 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 ProjDmndResourceAssignment 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.
    • getResourceAssignmentIfPresent

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

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

      public void setResourceAssignment(@Nonnull List<ProjDmndResourceAssignment> value)
      Overwrites the list of associated ProjDmndResourceAssignment entities for the loaded navigation property to_ResourceAssignment.

      If the navigation property to_ResourceAssignment of a queried ProjectDemandResource 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 ProjDmndResourceAssignment entities.
    • addResourceAssignment

      public void addResourceAssignment(ProjDmndResourceAssignment... entity)
      Adds elements to the list of associated ProjDmndResourceAssignment entities. This corresponds to the OData navigation property to_ResourceAssignment.

      If the navigation property to_ResourceAssignment of a queried ProjectDemandResource 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 ProjDmndResourceAssignment entities.
    • fetchResourceRequest

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

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

      Returns:
      List containing one or more associated ProjectDemandResourceRequest 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.
    • getResourceRequestOrFetch

      @Nonnull public List<ProjectDemandResourceRequest> getResourceRequestOrFetch()
      Retrieval of associated ProjectDemandResourceRequest entities (one to many). This corresponds to the OData navigation property to_ResourceRequest.

      If the navigation property to_ResourceRequest of a queried ProjectDemandResource 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 ProjectDemandResourceRequest 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.
    • getResourceRequestIfPresent

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

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

      public void setResourceRequest(@Nonnull List<ProjectDemandResourceRequest> value)
      Overwrites the list of associated ProjectDemandResourceRequest entities for the loaded navigation property to_ResourceRequest.

      If the navigation property to_ResourceRequest of a queried ProjectDemandResource 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 ProjectDemandResourceRequest entities.
    • addResourceRequest

      public void addResourceRequest(ProjectDemandResourceRequest... entity)
      Adds elements to the list of associated ProjectDemandResourceRequest entities. This corresponds to the OData navigation property to_ResourceRequest.

      If the navigation property to_ResourceRequest of a queried ProjectDemandResource 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 ProjectDemandResourceRequest entities.
    • builder

      @Nonnull public static ProjectDemandResource.ProjectDemandResourceBuilder builder()
    • getProjectDemandWorkUUID

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

      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
    • getCostCenter

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

      Original property name from the Odata EDM: CostCenter

      Returns:
      Cost Center
    • getActivityType

      @Nullable public String getActivityType()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: ActivityType

      Returns:
      Activity Type
    • getProjDmndAssgmtStatus

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

      Original property name from the Odata EDM: ProjDmndAssgmtStatus

      Returns:
      Assignment Status of a Resource Demand
    • getProjectElementWorkItem

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

      Original property name from the Odata EDM: ProjectElementWorkItem

      Returns:
      ID of the Work Item to Which a Resource Demand is Related
    • getProjDmndBillingControlCategory

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

      Original property name from the Odata EDM: ProjDmndBillingControlCategory

      Returns:
      Billing Control Category
    • getProjDmndRequestedDeliveryOrg

      @Nullable public String getProjDmndRequestedDeliveryOrg()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ProjDmndRequestedDeliveryOrg

      Returns:
      Delivery Organization from Which a Resource is Required
    • toString

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

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

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

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