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

public class StorageLocationSubstnGrp extends VdmEntity<StorageLocationSubstnGrp> implements VdmEntitySet
Storage Location Substitution Group

Original entity name from the Odata EDM: StorageLocationSubstnGrp_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setMDSubstnObjectType(@Nullable String mDSubstnObjectType)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MDSubstnObjectType

      Parameters:
      mDSubstnObjectType - SAP Object Type
    • setMDSubstnGroup

      public void setMDSubstnGroup(@Nullable String mDSubstnGroup)
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MDSubstnGroup

      Parameters:
      mDSubstnGroup - Group Name
    • setMDSubstnStatus

      public void setMDSubstnStatus(@Nullable String mDSubstnStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: MDSubstnStatus

      Parameters:
      mDSubstnStatus - Group Status
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By User
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Substitution Creation Date
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed By User
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Substitution Last Changed Date
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity StorageLocationSubstnGrp 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 StorageLocationSubstnGrpTxt entities. If not, an Option with result state empty is returned.
    • setText

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

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

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

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

    • getMDSubstnObjectType

      @Nullable public String getMDSubstnObjectType()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MDSubstnObjectType

      Returns:
      SAP Object Type
    • getMDSubstnGroup

      @Nullable public String getMDSubstnGroup()
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MDSubstnGroup

      Returns:
      Group Name
    • getMDSubstnStatus

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

      Original property name from the Odata EDM: MDSubstnStatus

      Returns:
      Group Status
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By User
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Substitution Creation Date
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By User
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Substitution Last Changed Date
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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