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

public class SalesArea extends VdmEntity<SalesArea> implements VdmEntitySet
Sales Area

Original entity name from the Odata EDM: SalesAreaType

  • Field Details

  • Constructor Details

    • SalesArea

      public SalesArea()
    • SalesArea

      public SalesArea(@Nullable String salesOrganization, @Nullable String distributionChannel, @Nullable String division)
  • Method Details

    • getType

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

      public void setSalesOrganization(@Nullable String salesOrganization)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SalesOrganization

      Parameters:
      salesOrganization - Sales Organization
    • setDistributionChannel

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

      Original property name from the Odata EDM: DistributionChannel

      Parameters:
      distributionChannel - Distribution Channel
    • setDivision

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

      Original property name from the Odata EDM: Division

      Parameters:
      division - Division
    • getEntityCollection

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

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

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<SalesArea>
    • builder

      @Nonnull public static SalesArea.SalesAreaBuilder builder()
    • getSalesOrganization

      @Nullable public String getSalesOrganization()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SalesOrganization

      Returns:
      Sales Organization
    • getDistributionChannel

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

      Original property name from the Odata EDM: DistributionChannel

      Returns:
      Distribution Channel
    • getDivision

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

      Original property name from the Odata EDM: Division

      Returns:
      Division
    • toString

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

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

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

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

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