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

public class ProdSubstnGrpTxt extends VdmEntity<ProdSubstnGrpTxt> implements VdmEntitySet
Product Substitution Group Text

Original entity name from the Odata EDM: ProdSubstnGrpTxt_Type

  • Field Details

  • Constructor Details

    • ProdSubstnGrpTxt

      public ProdSubstnGrpTxt()
    • ProdSubstnGrpTxt

      public ProdSubstnGrpTxt(@Nullable String language, @Nullable String mDSubstnObjectType, @Nullable String mDSubstnGroup, @Nullable String mDSubstnGroupDescription, @Nullable ProdSubstnGrp to_Group)
  • Method Details

    • getType

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

      public void setLanguage(@Nullable String language)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Parameters:
      language - Language
    • 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
    • setMDSubstnGroupDescription

      public void setMDSubstnGroupDescription(@Nullable String mDSubstnGroupDescription)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: MDSubstnGroupDescription

      Parameters:
      mDSubstnGroupDescription - Group Description
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ProdSubstnGrpTxt 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 _Group is already loaded, the result will contain the ProdSubstnGrp entity. If not, an Option with result state empty is returned.
    • setGroup

      public void setGroup(ProdSubstnGrp value)
      Overwrites the associated ProdSubstnGrp entity for the loaded navigation property _Group.
      Parameters:
      value - New ProdSubstnGrp entity.
    • builder

      @Nonnull public static ProdSubstnGrpTxt.ProdSubstnGrpTxtBuilder builder()
    • getLanguage

      @Nullable public String getLanguage()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      Returns:
      Language
    • 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
    • getMDSubstnGroupDescription

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

      Original property name from the Odata EDM: MDSubstnGroupDescription

      Returns:
      Group Description
    • toString

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

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

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

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

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