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

public class ProjectProfileCode extends VdmEntity<ProjectProfileCode> implements VdmEntitySet
Project Profile

Original entity name from the Odata EDM: ProjectProfileCodeType

  • Field Details

  • Constructor Details

    • ProjectProfileCode

      public ProjectProfileCode()
    • ProjectProfileCode

      public ProjectProfileCode(@Nullable String projectProfileCode, @Nullable String projectProfileCodeText, List<ProjectProfileCodeText> to_ProjectProfileCodeText)
  • Method Details

    • getType

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

      public void setProjectProfileCode(@Nullable String projectProfileCode)
      (Key Field) Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: ProjectProfileCode

      Parameters:
      projectProfileCode - Project Profile
    • setProjectProfileCodeText

      public void setProjectProfileCodeText(@Nullable String projectProfileCodeText)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectProfileCodeText

      Parameters:
      projectProfileCodeText - Text for Profile
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ProjectProfileCode 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 _ProjectProfileCodeText is already loaded, the result will contain the ProjectProfileCodeText entities. If not, an Option with result state empty is returned.
    • setProjectProfileCodeText

      public void setProjectProfileCodeText(@Nonnull List<ProjectProfileCodeText> value)
      Overwrites the list of associated ProjectProfileCodeText entities for the loaded navigation property _ProjectProfileCodeText.

      If the navigation property _ProjectProfileCodeText of a queried ProjectProfileCode 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 ProjectProfileCodeText entities.
    • addProjectProfileCodeText

      public void addProjectProfileCodeText(ProjectProfileCodeText... entity)
      Adds elements to the list of associated ProjectProfileCodeText entities. This corresponds to the OData navigation property _ProjectProfileCodeText.

      If the navigation property _ProjectProfileCodeText of a queried ProjectProfileCode 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 ProjectProfileCodeText entities.
    • builder

      @Nonnull public static ProjectProfileCode.ProjectProfileCodeBuilder builder()
    • getProjectProfileCode

      @Nullable public String getProjectProfileCode()
      (Key Field) Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: ProjectProfileCode

      Returns:
      Project Profile
    • getProjectProfileCodeText

      @Nullable public String getProjectProfileCodeText()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectProfileCodeText

      Returns:
      Text for Profile
    • toString

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

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

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

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

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