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

public class SalesPricingAccess extends VdmEntity<SalesPricingAccess> implements VdmEntitySet
Accesses

Original entity name from the Odata EDM: SalesPricingAccessType

  • Field Details

  • Constructor Details

    • SalesPricingAccess

      public SalesPricingAccess()
    • SalesPricingAccess

      public SalesPricingAccess(@Nullable String conditionUsage, @Nullable String conditionApplication, @Nullable String accessSequence, @Nullable String accessNumberOfAccessSequence, @Nullable String conditionTable, @Nullable String conditionRequirement, @Nullable Boolean prcgConditionAccessIsExclusive, List<SalesPricingAccessField> to_SalesPricingAccessField, @Nullable SalesPricingAccessSequence to_SalesPricingAccessSequence)
  • Method Details

    • getType

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

      public void setConditionUsage(@Nullable String conditionUsage)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ConditionUsage

      Parameters:
      conditionUsage - Usage of the condition table
    • setConditionApplication

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

      Original property name from the Odata EDM: ConditionApplication

      Parameters:
      conditionApplication - Application
    • setAccessSequence

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

      Original property name from the Odata EDM: AccessSequence

      Parameters:
      accessSequence - Access sequence
    • setAccessNumberOfAccessSequence

      public void setAccessNumberOfAccessSequence(@Nullable String accessNumberOfAccessSequence)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AccessNumberOfAccessSequence

      Parameters:
      accessNumberOfAccessSequence - Access sequence - Access number
    • setConditionTable

      public void setConditionTable(@Nullable String conditionTable)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionTable

      Parameters:
      conditionTable - Three-digit character field for IDocs
    • setConditionRequirement

      public void setConditionRequirement(@Nullable String conditionRequirement)
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: ConditionRequirement

      Parameters:
      conditionRequirement - Requirement
    • setPrcgConditionAccessIsExclusive

      public void setPrcgConditionAccessIsExclusive(@Nullable Boolean prcgConditionAccessIsExclusive)
      Constraints: Not nullable

      Original property name from the Odata EDM: PrcgConditionAccessIsExclusive

      Parameters:
      prcgConditionAccessIsExclusive - Indicator: Exclusive Condition Access
    • getEntityCollection

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

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

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

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

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

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

      @Nonnull public io.vavr.control.Option<List<SalesPricingAccessField>> getSalesPricingAccessFieldIfPresent()
      Retrieval of associated SalesPricingAccessField entities (one to many). This corresponds to the OData navigation property _SalesPricingAccessField.

      If the navigation property for an entity SalesPricingAccess 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 _SalesPricingAccessField is already loaded, the result will contain the SalesPricingAccessField entities. If not, an Option with result state empty is returned.
    • setSalesPricingAccessField

      public void setSalesPricingAccessField(@Nonnull List<SalesPricingAccessField> value)
      Overwrites the list of associated SalesPricingAccessField entities for the loaded navigation property _SalesPricingAccessField.

      If the navigation property _SalesPricingAccessField of a queried SalesPricingAccess is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of SalesPricingAccessField entities.
    • addSalesPricingAccessField

      public void addSalesPricingAccessField(SalesPricingAccessField... entity)
      Adds elements to the list of associated SalesPricingAccessField entities. This corresponds to the OData navigation property _SalesPricingAccessField.

      If the navigation property _SalesPricingAccessField of a queried SalesPricingAccess is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of SalesPricingAccessField entities.
    • getSalesPricingAccessSequenceIfPresent

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

      If the navigation property for an entity SalesPricingAccess 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 _SalesPricingAccessSequence is already loaded, the result will contain the SalesPricingAccessSequence entity. If not, an Option with result state empty is returned.
    • setSalesPricingAccessSequence

      public void setSalesPricingAccessSequence(SalesPricingAccessSequence value)
      Overwrites the associated SalesPricingAccessSequence entity for the loaded navigation property _SalesPricingAccessSequence.
      Parameters:
      value - New SalesPricingAccessSequence entity.
    • builder

      @Nonnull public static SalesPricingAccess.SalesPricingAccessBuilder builder()
    • getConditionUsage

      @Nullable public String getConditionUsage()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ConditionUsage

      Returns:
      Usage of the condition table
    • getConditionApplication

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

      Original property name from the Odata EDM: ConditionApplication

      Returns:
      Application
    • getAccessSequence

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

      Original property name from the Odata EDM: AccessSequence

      Returns:
      Access sequence
    • getAccessNumberOfAccessSequence

      @Nullable public String getAccessNumberOfAccessSequence()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AccessNumberOfAccessSequence

      Returns:
      Access sequence - Access number
    • getConditionTable

      @Nullable public String getConditionTable()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionTable

      Returns:
      Three-digit character field for IDocs
    • getConditionRequirement

      @Nullable public String getConditionRequirement()
      Constraints: Not nullable, Maximum length: 7

      Original property name from the Odata EDM: ConditionRequirement

      Returns:
      Requirement
    • getPrcgConditionAccessIsExclusive

      @Nullable public Boolean getPrcgConditionAccessIsExclusive()
      Constraints: Not nullable

      Original property name from the Odata EDM: PrcgConditionAccessIsExclusive

      Returns:
      Indicator: Exclusive Condition Access
    • toString

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

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

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

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

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