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

public class ProjectDemandAssignmentStatus extends VdmEntity<ProjectDemandAssignmentStatus> implements VdmEntitySet
Assignment Status

Original entity name from the Odata EDM: ProjectDemandAssignmentStatus_Type

  • Field Details

  • Constructor Details

    • ProjectDemandAssignmentStatus

      public ProjectDemandAssignmentStatus()
    • ProjectDemandAssignmentStatus

      public ProjectDemandAssignmentStatus(@Nullable String projDmndAssgmtStatus, @Nullable String projDmndAssgmtStatusText, List<ProjectDemandAssignmentStatusText> to_AssignmentStatusText)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ProjDmndAssgmtStatus

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

      public void setProjDmndAssgmtStatusText(@Nullable String projDmndAssgmtStatusText)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: ProjDmndAssgmtStatusText

      Parameters:
      projDmndAssgmtStatusText - Short Text for Fixed Values
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ProjectDemandAssignmentStatus 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 _AssignmentStatusText is already loaded, the result will contain the ProjectDemandAssignmentStatusText entities. If not, an Option with result state empty is returned.
    • setAssignmentStatusText

      public void setAssignmentStatusText(@Nonnull List<ProjectDemandAssignmentStatusText> value)
      Overwrites the list of associated ProjectDemandAssignmentStatusText entities for the loaded navigation property _AssignmentStatusText.

      If the navigation property _AssignmentStatusText of a queried ProjectDemandAssignmentStatus 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 ProjectDemandAssignmentStatusText entities.
    • addAssignmentStatusText

      public void addAssignmentStatusText(ProjectDemandAssignmentStatusText... entity)
      Adds elements to the list of associated ProjectDemandAssignmentStatusText entities. This corresponds to the OData navigation property _AssignmentStatusText.

      If the navigation property _AssignmentStatusText of a queried ProjectDemandAssignmentStatus 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 ProjectDemandAssignmentStatusText entities.
    • builder

    • getProjDmndAssgmtStatus

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

      Original property name from the Odata EDM: ProjDmndAssgmtStatus

      Returns:
      Assignment Status of a Resource Demand
    • getProjDmndAssgmtStatusText

      @Nullable public String getProjDmndAssgmtStatusText()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: ProjDmndAssgmtStatusText

      Returns:
      Short Text for Fixed Values
    • toString

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

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

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

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

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