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

public class SrcgProjLifecycleStatus extends VdmEntity<SrcgProjLifecycleStatus> implements VdmEntitySet
Lifecycle Status Code

Original entity name from the Odata EDM: SrcgProjLifecycleStatusType

  • Field Details

  • Constructor Details

    • SrcgProjLifecycleStatus

      public SrcgProjLifecycleStatus()
    • SrcgProjLifecycleStatus

      public SrcgProjLifecycleStatus(@Nullable String srcgProjLifecycleStatus, @Nullable String srcgProjLifecycleStatusName, List<SrcgProjLifecycleStatusText> to_SrcgProjLifecycleStatusText)
  • Method Details

    • getType

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

      public void setSrcgProjLifecycleStatus(@Nullable String srcgProjLifecycleStatus)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SrcgProjLifecycleStatus

      Parameters:
      srcgProjLifecycleStatus - Lifecycle Status of Sourcing Project
    • setSrcgProjLifecycleStatusName

      public void setSrcgProjLifecycleStatusName(@Nullable String srcgProjLifecycleStatusName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: SrcgProjLifecycleStatusName

      Parameters:
      srcgProjLifecycleStatusName - Short Text for Fixed Values
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrcgProjLifecycleStatus 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 _SrcgProjLifecycleStatusText is already loaded, the result will contain the SrcgProjLifecycleStatusText entities. If not, an Option with result state empty is returned.
    • setSrcgProjLifecycleStatusText

      public void setSrcgProjLifecycleStatusText(@Nonnull List<SrcgProjLifecycleStatusText> value)
      Overwrites the list of associated SrcgProjLifecycleStatusText entities for the loaded navigation property _SrcgProjLifecycleStatusText.

      If the navigation property _SrcgProjLifecycleStatusText of a queried SrcgProjLifecycleStatus 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 SrcgProjLifecycleStatusText entities.
    • addSrcgProjLifecycleStatusText

      public void addSrcgProjLifecycleStatusText(SrcgProjLifecycleStatusText... entity)
      Adds elements to the list of associated SrcgProjLifecycleStatusText entities. This corresponds to the OData navigation property _SrcgProjLifecycleStatusText.

      If the navigation property _SrcgProjLifecycleStatusText of a queried SrcgProjLifecycleStatus 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 SrcgProjLifecycleStatusText entities.
    • builder

    • getSrcgProjLifecycleStatus

      @Nullable public String getSrcgProjLifecycleStatus()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SrcgProjLifecycleStatus

      Returns:
      Lifecycle Status of Sourcing Project
    • getSrcgProjLifecycleStatusName

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

      Original property name from the Odata EDM: SrcgProjLifecycleStatusName

      Returns:
      Short Text for Fixed Values
    • toString

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

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

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

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

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