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

public class ProjectBillingRequest extends VdmEntity<ProjectBillingRequest> implements VdmEntitySet
Project Billing Request

Original entity name from the Odata EDM: ProjectBillingRequest_Type

  • Field Details

  • Constructor Details

    • ProjectBillingRequest

      public ProjectBillingRequest()
    • ProjectBillingRequest

      public ProjectBillingRequest(@Nullable UUID projectBillingRequestUUID, @Nullable String projectBillingRequest, @Nullable String projectBillingRequestStatus, @Nullable String projBillgReqApprovalStatus, @Nullable String salesDocument, @Nullable String projBillgReqLastChgdBy, @Nullable OffsetDateTime projBillgReqLastChgdAtDteTme, @Nullable String projBillgReqCreatedBy, @Nullable OffsetDateTime projBillgReqCreatedAtDteTme, @Nullable UUID projectUUID, @Nullable Collection<SAP__Message> _Messages, List<ProjectBillingRequestItem> to_ProjectBillingReqItemTP)
  • Method Details

    • getType

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

      public void setProjectBillingRequestUUID(@Nullable UUID projectBillingRequestUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ProjectBillingRequestUUID

      Parameters:
      projectBillingRequestUUID - Project Billing Request UUID
    • setProjectBillingRequest

      public void setProjectBillingRequest(@Nullable String projectBillingRequest)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProjectBillingRequest

      Parameters:
      projectBillingRequest - Project Billing Request
    • setProjectBillingRequestStatus

      public void setProjectBillingRequestStatus(@Nullable String projectBillingRequestStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProjectBillingRequestStatus

      Parameters:
      projectBillingRequestStatus - Project Billing Request Status
    • setProjBillgReqApprovalStatus

      public void setProjBillgReqApprovalStatus(@Nullable String projBillgReqApprovalStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProjBillgReqApprovalStatus

      Parameters:
      projBillgReqApprovalStatus - Project Billing Request Approval Status
    • setSalesDocument

      public void setSalesDocument(@Nullable String salesDocument)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SalesDocument

      Parameters:
      salesDocument - Sales and Distribution Document Number
    • setProjBillgReqLastChgdBy

      public void setProjBillgReqLastChgdBy(@Nullable String projBillgReqLastChgdBy)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ProjBillgReqLastChgdBy

      Parameters:
      projBillgReqLastChgdBy - Project Billing Request Changed By
    • setProjBillgReqLastChgdAtDteTme

      public void setProjBillgReqLastChgdAtDteTme(@Nullable OffsetDateTime projBillgReqLastChgdAtDteTme)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: ProjBillgReqLastChgdAtDteTme

      Parameters:
      projBillgReqLastChgdAtDteTme - Project Billing Request Changed On
    • setProjBillgReqCreatedBy

      public void setProjBillgReqCreatedBy(@Nullable String projBillgReqCreatedBy)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ProjBillgReqCreatedBy

      Parameters:
      projBillgReqCreatedBy - Project Billing Request Created By
    • setProjBillgReqCreatedAtDteTme

      public void setProjBillgReqCreatedAtDteTme(@Nullable OffsetDateTime projBillgReqCreatedAtDteTme)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: ProjBillgReqCreatedAtDteTme

      Parameters:
      projBillgReqCreatedAtDteTme - Project Billing Request Created On
    • setProjectUUID

      public void setProjectUUID(@Nullable UUID projectUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: ProjectUUID

      Parameters:
      projectUUID - Entity Guid
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ProjectBillingRequest 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 _ProjectBillingReqItemTP is already loaded, the result will contain the ProjectBillingRequestItem entities. If not, an Option with result state empty is returned.
    • setProjectBillingReqItemTP

      public void setProjectBillingReqItemTP(@Nonnull List<ProjectBillingRequestItem> value)
      Overwrites the list of associated ProjectBillingRequestItem entities for the loaded navigation property _ProjectBillingReqItemTP.

      If the navigation property _ProjectBillingReqItemTP of a queried ProjectBillingRequest 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 ProjectBillingRequestItem entities.
    • addProjectBillingReqItemTP

      public void addProjectBillingReqItemTP(ProjectBillingRequestItem... entity)
      Adds elements to the list of associated ProjectBillingRequestItem entities. This corresponds to the OData navigation property _ProjectBillingReqItemTP.

      If the navigation property _ProjectBillingReqItemTP of a queried ProjectBillingRequest 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 ProjectBillingRequestItem entities.
    • createBillingDocumentRequest

      @Nonnull public static BoundAction.SingleToCollection<ProjectBillingRequest,D_PrjBlgElmCrteBillgDocReqR> createBillingDocumentRequest(@Nonnull String action, @Nonnull Boolean onAccountItemsAreIncluded)
      Action that can be applied to any entity object of this class.

      Parameters:
      action - Constraints: Not nullable

      Original parameter name from the Odata EDM: Action

      onAccountItemsAreIncluded - Constraints: Not nullable

      Original parameter name from the Odata EDM: OnAccountItemsAreIncluded

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • createBDRForPrepayment

      @Nonnull public static BoundAction.CollectionToCollection<ProjectBillingRequest,D_PrjBlgElmCrteBillgDocReqR> createBDRForPrepayment(@Nonnull String billingWBSElementInternalID, @Nonnull String prjBlgElmPlndPpaytType)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      prjBlgElmPlndPpaytType - Constraints: Not nullable, Maximum length: 2

      Original parameter name from the Odata EDM: PrjBlgElmPlndPpaytType

      billingWBSElementInternalID - Constraints: Not nullable, Maximum length: 8

      Original parameter name from the Odata EDM: BillingWBSElementInternalID

      Returns:
      Action object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • createProjectBillingRequest

      @Nonnull public static BoundAction.CollectionToSingle<ProjectBillingRequest,D_PrjBlgElmCrteProjBillgReqR> createProjectBillingRequest(@Nonnull String billingWBSElementInternalID, @Nonnull Boolean onAccountItemsAreIncluded)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      billingWBSElementInternalID - Constraints: Not nullable, Maximum length: 8

      Original parameter name from the Odata EDM: BillingWBSElementInternalID

      onAccountItemsAreIncluded - Constraints: Not nullable

      Original parameter name from the Odata EDM: OnAccountItemsAreIncluded

      Returns:
      Action object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • deleteProjectBillingRequest

      @Nonnull public static BoundAction.SingleToSingle<ProjectBillingRequest,D_ProjBillgReqDeleteR> deleteProjectBillingRequest()
      Action that can be applied to any entity object of this class.

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

      @Nonnull public static ProjectBillingRequest.ProjectBillingRequestBuilder builder()
    • getProjectBillingRequestUUID

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

      Original property name from the Odata EDM: ProjectBillingRequestUUID

      Returns:
      Project Billing Request UUID
    • getProjectBillingRequest

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

      Original property name from the Odata EDM: ProjectBillingRequest

      Returns:
      Project Billing Request
    • getProjectBillingRequestStatus

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

      Original property name from the Odata EDM: ProjectBillingRequestStatus

      Returns:
      Project Billing Request Status
    • getProjBillgReqApprovalStatus

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

      Original property name from the Odata EDM: ProjBillgReqApprovalStatus

      Returns:
      Project Billing Request Approval Status
    • getSalesDocument

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

      Original property name from the Odata EDM: SalesDocument

      Returns:
      Sales and Distribution Document Number
    • getProjBillgReqLastChgdBy

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

      Original property name from the Odata EDM: ProjBillgReqLastChgdBy

      Returns:
      Project Billing Request Changed By
    • getProjBillgReqLastChgdAtDteTme

      @Nullable public OffsetDateTime getProjBillgReqLastChgdAtDteTme()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: ProjBillgReqLastChgdAtDteTme

      Returns:
      Project Billing Request Changed On
    • getProjBillgReqCreatedBy

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

      Original property name from the Odata EDM: ProjBillgReqCreatedBy

      Returns:
      Project Billing Request Created By
    • getProjBillgReqCreatedAtDteTme

      @Nullable public OffsetDateTime getProjBillgReqCreatedAtDteTme()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: ProjBillgReqCreatedAtDteTme

      Returns:
      Project Billing Request Created On
    • getProjectUUID

      @Nullable public UUID getProjectUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: ProjectUUID

      Returns:
      Entity Guid
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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