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

public class CnsldtnOrderText extends VdmEntity<CnsldtnOrderText> implements VdmEntitySet
Consolidation Order - Text

Original entity name from the Odata EDM: CnsldtnOrderText_Type

  • Field Details

  • Constructor Details

    • CnsldtnOrderText

      public CnsldtnOrderText()
    • CnsldtnOrderText

      public CnsldtnOrderText(@Nullable String language, @Nullable String orderID, @Nullable String orderDescription, @Nullable Boolean cnsldtnIsAdditionalMasterData, @Nullable CnsldtnOrder to_Order)
  • Method Details

    • getType

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

      public void setOrderID(@Nullable String orderID)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: OrderID

      Parameters:
      orderID - Order
    • setOrderDescription

      public void setOrderDescription(@Nullable String orderDescription)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: OrderDescription

      Parameters:
      orderDescription - 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<CnsldtnOrderText>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity CnsldtnOrderText 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 _Order is already loaded, the result will contain the CnsldtnOrder entity. If not, an Option with result state empty is returned.
    • setOrder

      public void setOrder(CnsldtnOrder value)
      Overwrites the associated CnsldtnOrder entity for the loaded navigation property _Order.
      Parameters:
      value - New CnsldtnOrder entity.
    • builder

      @Nonnull public static CnsldtnOrderText.CnsldtnOrderTextBuilder 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
    • getOrderID

      @Nullable public String getOrderID()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: OrderID

      Returns:
      Order
    • getOrderDescription

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

      Original property name from the Odata EDM: OrderDescription

      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<CnsldtnOrderText>
    • equals

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

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

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

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