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

public class StorageLocationSubstnCtrl extends VdmEntity<StorageLocationSubstnCtrl> implements VdmEntitySet
Storage Location Substitution Control

Original entity name from the Odata EDM: StorageLocationSubstnCtrl_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

      @Nonnull public Class<StorageLocationSubstnCtrl> getType()
      Specified by:
      getType in class VdmObject<StorageLocationSubstnCtrl>
    • 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
    • setMDSubstnControl

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

      Original property name from the Odata EDM: MDSubstnControl

      Parameters:
      mDSubstnControl - Substitution Control
    • setMDSubstnHasDefaultGroup

      public void setMDSubstnHasDefaultGroup(@Nullable Boolean mDSubstnHasDefaultGroup)
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnHasDefaultGroup

      Parameters:
      mDSubstnHasDefaultGroup - No Default Substitution Group Indicator
    • 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<StorageLocationSubstnCtrl>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity StorageLocationSubstnCtrl 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 _ControlGroup is already loaded, the result will contain the StorageLocationSubstnCtrlGrp entities. If not, an Option with result state empty is returned.
    • setControlGroup

      public void setControlGroup(@Nonnull List<StorageLocationSubstnCtrlGrp> value)
      Overwrites the list of associated StorageLocationSubstnCtrlGrp entities for the loaded navigation property _ControlGroup.

      If the navigation property _ControlGroup of a queried StorageLocationSubstnCtrl 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 StorageLocationSubstnCtrlGrp entities.
    • addControlGroup

      public void addControlGroup(StorageLocationSubstnCtrlGrp... entity)
      Adds elements to the list of associated StorageLocationSubstnCtrlGrp entities. This corresponds to the OData navigation property _ControlGroup.

      If the navigation property _ControlGroup of a queried StorageLocationSubstnCtrl 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 StorageLocationSubstnCtrlGrp entities.
    • getTextIfPresent

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

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

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

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

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

      If the navigation property _Text of a queried StorageLocationSubstnCtrl 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 StorageLocationSubstnCtrlTxt 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
    • getMDSubstnControl

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

      Original property name from the Odata EDM: MDSubstnControl

      Returns:
      Substitution Control
    • getMDSubstnHasDefaultGroup

      @Nullable public Boolean getMDSubstnHasDefaultGroup()
      Constraints: Not nullable

      Original property name from the Odata EDM: MDSubstnHasDefaultGroup

      Returns:
      No Default Substitution Group Indicator
    • 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<StorageLocationSubstnCtrl>
    • equals

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

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

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

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