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

public class RESpaceGroupType extends VdmEntity<RESpaceGroupType> implements VdmEntitySet
Real Estate Usage Enablement and Occupancy Group Type

Original entity name from the Odata EDM: RESpaceGroupType_Type

  • Field Details

  • Constructor Details

    • RESpaceGroupType

      public RESpaceGroupType()
    • RESpaceGroupType

      public RESpaceGroupType(@Nullable String rEIntegObjSpaceGroupType, @Nullable String rEIntegObjectCategory, @Nullable String rESpaceGroupDirection, @Nullable String rEIntegObjSpaceGroupTypeText, List<RESpaceGroupTypeText> to_Text)
  • Method Details

    • getType

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

      public void setREIntegObjSpaceGroupType(@Nullable String rEIntegObjSpaceGroupType)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: REIntegObjSpaceGroupType

      Parameters:
      rEIntegObjSpaceGroupType - Group Type
    • setREIntegObjectCategory

      public void setREIntegObjectCategory(@Nullable String rEIntegObjectCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: REIntegObjectCategory

      Parameters:
      rEIntegObjectCategory - Object Category
    • setRESpaceGroupDirection

      public void setRESpaceGroupDirection(@Nullable String rESpaceGroupDirection)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: RESpaceGroupDirection

      Parameters:
      rESpaceGroupDirection - Group Direction
    • setREIntegObjSpaceGroupTypeText

      public void setREIntegObjSpaceGroupTypeText(@Nullable String rEIntegObjSpaceGroupTypeText)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: REIntegObjSpaceGroupTypeText

      Parameters:
      rEIntegObjSpaceGroupTypeText - Description for Group Type
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity RESpaceGroupType 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 _Text is already loaded, the result will contain the RESpaceGroupTypeText entities. If not, an Option with result state empty is returned.
    • setText

      public void setText(@Nonnull List<RESpaceGroupTypeText> value)
      Overwrites the list of associated RESpaceGroupTypeText entities for the loaded navigation property _Text.

      If the navigation property _Text of a queried RESpaceGroupType 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 RESpaceGroupTypeText entities.
    • addText

      public void addText(RESpaceGroupTypeText... entity)
      Adds elements to the list of associated RESpaceGroupTypeText entities. This corresponds to the OData navigation property _Text.

      If the navigation property _Text of a queried RESpaceGroupType 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 RESpaceGroupTypeText entities.
    • builder

      @Nonnull public static RESpaceGroupType.RESpaceGroupTypeBuilder builder()
    • getREIntegObjSpaceGroupType

      @Nullable public String getREIntegObjSpaceGroupType()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: REIntegObjSpaceGroupType

      Returns:
      Group Type
    • getREIntegObjectCategory

      @Nullable public String getREIntegObjectCategory()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: REIntegObjectCategory

      Returns:
      Object Category
    • getRESpaceGroupDirection

      @Nullable public String getRESpaceGroupDirection()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: RESpaceGroupDirection

      Returns:
      Group Direction
    • getREIntegObjSpaceGroupTypeText

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

      Original property name from the Odata EDM: REIntegObjSpaceGroupTypeText

      Returns:
      Description for Group Type
    • toString

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

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

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

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

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