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

public class SrcgProjMilestoneType extends VdmEntity<SrcgProjMilestoneType> implements VdmEntitySet
Milestone Type

Original entity name from the Odata EDM: SrcgProjMilestoneType_Type

  • Field Details

  • Constructor Details

    • SrcgProjMilestoneType

      public SrcgProjMilestoneType()
    • SrcgProjMilestoneType

      public SrcgProjMilestoneType(@Nullable String sourcingProjectMilestoneType, @Nullable String srcgProjMilestoneTypeIconURI, @Nullable String srcgProjMlstnSemanticReference, @Nullable String srcgProjMilestoneTypeText, List<SrcgProjMilestoneTypeText> to_SrcgProjMilestoneTypeText)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: SourcingProjectMilestoneType

      Parameters:
      sourcingProjectMilestoneType - Sourcing Project Milestone
    • setSrcgProjMilestoneTypeIconURI

      public void setSrcgProjMilestoneTypeIconURI(@Nullable String srcgProjMilestoneTypeIconURI)
      Constraints: Not nullable, Maximum length: 128

      Original property name from the Odata EDM: SrcgProjMilestoneTypeIconURI

      Parameters:
      srcgProjMilestoneTypeIconURI - URI of Icon for Milestone Type in Sourcing Project
    • setSrcgProjMlstnSemanticReference

      public void setSrcgProjMlstnSemanticReference(@Nullable String srcgProjMlstnSemanticReference)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SrcgProjMlstnSemanticReference

      Parameters:
      srcgProjMlstnSemanticReference - Semantic Reference
    • setSrcgProjMilestoneTypeText

      public void setSrcgProjMilestoneTypeText(@Nullable String srcgProjMilestoneTypeText)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SrcgProjMilestoneTypeText

      Parameters:
      srcgProjMilestoneTypeText - Sourcing Project Milestone Text
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrcgProjMilestoneType 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 _SrcgProjMilestoneTypeText is already loaded, the result will contain the SrcgProjMilestoneTypeText entities. If not, an Option with result state empty is returned.
    • setSrcgProjMilestoneTypeText

      public void setSrcgProjMilestoneTypeText(@Nonnull List<SrcgProjMilestoneTypeText> value)
      Overwrites the list of associated SrcgProjMilestoneTypeText entities for the loaded navigation property _SrcgProjMilestoneTypeText.

      If the navigation property _SrcgProjMilestoneTypeText of a queried SrcgProjMilestoneType 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 SrcgProjMilestoneTypeText entities.
    • addSrcgProjMilestoneTypeText

      public void addSrcgProjMilestoneTypeText(SrcgProjMilestoneTypeText... entity)
      Adds elements to the list of associated SrcgProjMilestoneTypeText entities. This corresponds to the OData navigation property _SrcgProjMilestoneTypeText.

      If the navigation property _SrcgProjMilestoneTypeText of a queried SrcgProjMilestoneType 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 SrcgProjMilestoneTypeText entities.
    • builder

      @Nonnull public static SrcgProjMilestoneType.SrcgProjMilestoneTypeBuilder builder()
    • getSourcingProjectMilestoneType

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

      Original property name from the Odata EDM: SourcingProjectMilestoneType

      Returns:
      Sourcing Project Milestone
    • getSrcgProjMilestoneTypeIconURI

      @Nullable public String getSrcgProjMilestoneTypeIconURI()
      Constraints: Not nullable, Maximum length: 128

      Original property name from the Odata EDM: SrcgProjMilestoneTypeIconURI

      Returns:
      URI of Icon for Milestone Type in Sourcing Project
    • getSrcgProjMlstnSemanticReference

      @Nullable public String getSrcgProjMlstnSemanticReference()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SrcgProjMlstnSemanticReference

      Returns:
      Semantic Reference
    • getSrcgProjMilestoneTypeText

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

      Original property name from the Odata EDM: SrcgProjMilestoneTypeText

      Returns:
      Sourcing Project Milestone Text
    • toString

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

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

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

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

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