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

public class CnsldtnCustomerText extends VdmEntity<CnsldtnCustomerText> implements VdmEntitySet
Consolidation Customer - Text

Original entity name from the Odata EDM: CnsldtnCustomerText_Type

  • Field Details

  • Constructor Details

    • CnsldtnCustomerText

      public CnsldtnCustomerText()
    • CnsldtnCustomerText

      public CnsldtnCustomerText(@Nullable String language, @Nullable String customer, @Nullable String customerName, @Nullable Boolean cnsldtnIsAdditionalMasterData, @Nullable CnsldtnCustomer to_Customer)
  • Method Details

    • getType

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

      public void setCustomer(@Nullable String customer)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Customer

      Parameters:
      customer - Consolidation Customer
    • setCustomerName

      public void setCustomerName(@Nullable String customerName)
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: CustomerName

      Parameters:
      customerName - 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<CnsldtnCustomerText>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity CnsldtnCustomerText 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 _Customer is already loaded, the result will contain the CnsldtnCustomer entity. If not, an Option with result state empty is returned.
    • setCustomer

      public void setCustomer(CnsldtnCustomer value)
      Overwrites the associated CnsldtnCustomer entity for the loaded navigation property _Customer.
      Parameters:
      value - New CnsldtnCustomer entity.
    • builder

      @Nonnull public static CnsldtnCustomerText.CnsldtnCustomerTextBuilder 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
    • getCustomer

      @Nullable public String getCustomer()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Customer

      Returns:
      Consolidation Customer
    • getCustomerName

      @Nullable public String getCustomerName()
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: CustomerName

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

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

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

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

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