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

public class Prodsubstnctrl_2 extends VdmEntity<Prodsubstnctrl_2> implements VdmEntitySet
Product Substitution Control Group

Original entity name from the Odata EDM: prodsubstnctrl_Type

  • Field Details

  • Constructor Details

    • Prodsubstnctrl_2

      public Prodsubstnctrl_2()
    • Prodsubstnctrl_2

      public Prodsubstnctrl_2(@Nullable String mDSubstnObjectType, @Nullable String mDSubstnControl, @Nullable String mDSubstnGroup, @Nullable ProdSubstnCtrl to_Control)
  • Method Details

    • getType

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

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

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

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

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

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

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

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

      If the navigation property for an entity Prodsubstnctrl_2 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 _Control is already loaded, the result will contain the ProdSubstnCtrl entity. If not, an Option with result state empty is returned.
    • setControl

      public void setControl(ProdSubstnCtrl value)
      Overwrites the associated ProdSubstnCtrl entity for the loaded navigation property _Control.
      Parameters:
      value - New ProdSubstnCtrl entity.
    • builder

      @Nonnull public static Prodsubstnctrl_2.Prodsubstnctrl_2Builder 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
    • getMDSubstnGroup

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

      Original property name from the Odata EDM: MDSubstnGroup

      Returns:
      Group Name
    • toString

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

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

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

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

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