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

public class LegalContextCategory extends VdmEntity<LegalContextCategory> implements VdmEntitySet
Legal Context Categories

Original entity name from the Odata EDM: LegalContextCategory_Type

  • Field Details

  • Constructor Details

    • LegalContextCategory

      public LegalContextCategory()
    • LegalContextCategory

      public LegalContextCategory(@Nullable UUID lglCntntMCntxtCategoryUUID, @Nullable UUID lglCntntMCntxtParCategoryUUID, @Nullable UUID lglCntntMContextUUID, @Nullable String lglCntntMCategory, @Nullable LegalContextParentCategory to_LCMContextParentCategoryTP, @Nullable LegalContext to_LCMContextTP)
  • Method Details

    • getType

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

      public void setLglCntntMCntxtCategoryUUID(@Nullable UUID lglCntntMCntxtCategoryUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMCntxtCategoryUUID

      Parameters:
      lglCntntMCntxtCategoryUUID - Universal Unique Identifier
    • setLglCntntMCntxtParCategoryUUID

      public void setLglCntntMCntxtParCategoryUUID(@Nullable UUID lglCntntMCntxtParCategoryUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMCntxtParCategoryUUID

      Parameters:
      lglCntntMCntxtParCategoryUUID - Universal Unique Identifier
    • setLglCntntMContextUUID

      public void setLglCntntMContextUUID(@Nullable UUID lglCntntMContextUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMContextUUID

      Parameters:
      lglCntntMContextUUID - Universal Unique Identifier
    • setLglCntntMCategory

      public void setLglCntntMCategory(@Nullable String lglCntntMCategory)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: LglCntntMCategory

      Parameters:
      lglCntntMCategory - Category ID
    • getEntityCollection

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

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

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

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

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

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

      @Nonnull public io.vavr.control.Option<LegalContextParentCategory> getLCMContextParentCategoryTPIfPresent()
      Retrieval of associated LegalContextParentCategory entity (one to one). This corresponds to the OData navigation property _LCMContextParentCategoryTP.

      If the navigation property for an entity LegalContextCategory 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 _LCMContextParentCategoryTP is already loaded, the result will contain the LegalContextParentCategory entity. If not, an Option with result state empty is returned.
    • setLCMContextParentCategoryTP

      public void setLCMContextParentCategoryTP(LegalContextParentCategory value)
      Overwrites the associated LegalContextParentCategory entity for the loaded navigation property _LCMContextParentCategoryTP.
      Parameters:
      value - New LegalContextParentCategory entity.
    • getLCMContextTPIfPresent

      @Nonnull public io.vavr.control.Option<LegalContext> getLCMContextTPIfPresent()
      Retrieval of associated LegalContext entity (one to one). This corresponds to the OData navigation property _LCMContextTP.

      If the navigation property for an entity LegalContextCategory 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 _LCMContextTP is already loaded, the result will contain the LegalContext entity. If not, an Option with result state empty is returned.
    • setLCMContextTP

      public void setLCMContextTP(LegalContext value)
      Overwrites the associated LegalContext entity for the loaded navigation property _LCMContextTP.
      Parameters:
      value - New LegalContext entity.
    • builder

      @Nonnull public static LegalContextCategory.LegalContextCategoryBuilder builder()
    • getLglCntntMCntxtCategoryUUID

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

      Original property name from the Odata EDM: LglCntntMCntxtCategoryUUID

      Returns:
      Universal Unique Identifier
    • getLglCntntMCntxtParCategoryUUID

      @Nullable public UUID getLglCntntMCntxtParCategoryUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMCntxtParCategoryUUID

      Returns:
      Universal Unique Identifier
    • getLglCntntMContextUUID

      @Nullable public UUID getLglCntntMContextUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: LglCntntMContextUUID

      Returns:
      Universal Unique Identifier
    • getLglCntntMCategory

      @Nullable public String getLglCntntMCategory()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: LglCntntMCategory

      Returns:
      Category ID
    • toString

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

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

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

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

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