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

public class CnsldtnProductText extends VdmEntity<CnsldtnProductText> implements VdmEntitySet
Consolidation Product - Text

Original entity name from the Odata EDM: CnsldtnProductText_Type

  • Field Details

  • Constructor Details

    • CnsldtnProductText

      public CnsldtnProductText()
    • CnsldtnProductText

      public CnsldtnProductText(@Nullable String language, @Nullable String product, @Nullable String productName, @Nullable Boolean cnsldtnIsAdditionalMasterData, @Nullable CnsldtnProduct to_Product)
  • Method Details

    • getType

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

      public void setProduct(@Nullable String product)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product
    • setProductName

      public void setProductName(@Nullable String productName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProductName

      Parameters:
      productName - Description
    • setCnsldtnIsAdditionalMasterData

      public void setCnsldtnIsAdditionalMasterData(@Nullable Boolean cnsldtnIsAdditionalMasterData)
      Constraints: Not nullable

      Original property name from the Odata EDM: CnsldtnIsAdditionalMasterData

      Parameters:
      cnsldtnIsAdditionalMasterData - Is Additional Master Data
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity CnsldtnProductText 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 _Product is already loaded, the result will contain the CnsldtnProduct entity. If not, an Option with result state empty is returned.
    • setProduct

      public void setProduct(CnsldtnProduct value)
      Overwrites the associated CnsldtnProduct entity for the loaded navigation property _Product.
      Parameters:
      value - New CnsldtnProduct entity.
    • builder

      @Nonnull public static CnsldtnProductText.CnsldtnProductTextBuilder builder()
    • getLanguage

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

      Original property name from the Odata EDM: Language

      Returns:
      Language Key
    • getProduct

      @Nullable public String getProduct()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Product

      Returns:
      Product
    • getProductName

      @Nullable public String getProductName()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProductName

      Returns:
      Description
    • getCnsldtnIsAdditionalMasterData

      @Nullable public Boolean getCnsldtnIsAdditionalMasterData()
      Constraints: Not nullable

      Original property name from the Odata EDM: CnsldtnIsAdditionalMasterData

      Returns:
      Is Additional Master Data
    • toString

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

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

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

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

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