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

public class FrtAgrmtRateTableCalcRule extends VdmEntity<FrtAgrmtRateTableCalcRule> implements VdmEntitySet
Freight Agreement Rate Table Calc Rule

Original entity name from the Odata EDM: FrtAgrmtRateTableCalcRule_Type

  • Field Details

  • Constructor Details

    • FrtAgrmtRateTableCalcRule

      public FrtAgrmtRateTableCalcRule()
    • FrtAgrmtRateTableCalcRule

      public FrtAgrmtRateTableCalcRule(@Nullable UUID transpRateTableCalcRuleUUID, @Nullable UUID transpRateTableValidityUUID, @Nullable UUID transportationRateTableUUID, @Nullable UUID transportationAgreementUUID, @Nullable String transportationCalculationBase, @Nullable String transpRateTableCalcRuleQtyUnit, @Nullable BigDecimal transpRateCalcRulePricePerQty, @Nullable FreightAgreement to_FreightAgreement, @Nullable FrtAgrmtRateTableValidity to_FrtAgrmtRateTableValidity)
  • Method Details

    • getType

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

      public void setTranspRateTableCalcRuleUUID(@Nullable UUID transpRateTableCalcRuleUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TranspRateTableCalcRuleUUID

      Parameters:
      transpRateTableCalcRuleUUID - Transp Rate Table Cal Rule UUID
    • setTranspRateTableValidityUUID

      public void setTranspRateTableValidityUUID(@Nullable UUID transpRateTableValidityUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspRateTableValidityUUID

      Parameters:
      transpRateTableValidityUUID - Transp Rate Table Validity UUID
    • setTransportationRateTableUUID

      public void setTransportationRateTableUUID(@Nullable UUID transportationRateTableUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: TransportationRateTableUUID

      Parameters:
      transportationRateTableUUID - Transportation Rate Table UUID
    • setTransportationAgreementUUID

      public void setTransportationAgreementUUID(@Nullable UUID transportationAgreementUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationAgreementUUID

      Parameters:
      transportationAgreementUUID - Transportation Agreement UUID
    • setTransportationCalculationBase

      public void setTransportationCalculationBase(@Nullable String transportationCalculationBase)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: TransportationCalculationBase

      Parameters:
      transportationCalculationBase - Calculation Base
    • setTranspRateTableCalcRuleQtyUnit

      public void setTranspRateTableCalcRuleQtyUnit(@Nullable String transpRateTableCalcRuleQtyUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TranspRateTableCalcRuleQtyUnit

      Parameters:
      transpRateTableCalcRuleQtyUnit - Unit of Measure
    • setTranspRateCalcRulePricePerQty

      public void setTranspRateCalcRulePricePerQty(@Nullable BigDecimal transpRateCalcRulePricePerQty)
      Constraints: Not nullable, Precision: 31, Scale: 3

      Original property name from the Odata EDM: TranspRateCalcRulePricePerQty

      Parameters:
      transpRateCalcRulePricePerQty - The transpRateCalcRulePricePerQty to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity FrtAgrmtRateTableCalcRule 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 _FreightAgreement is already loaded, the result will contain the FreightAgreement entity. If not, an Option with result state empty is returned.
    • setFreightAgreement

      public void setFreightAgreement(FreightAgreement value)
      Overwrites the associated FreightAgreement entity for the loaded navigation property _FreightAgreement.
      Parameters:
      value - New FreightAgreement entity.
    • getFrtAgrmtRateTableValidityIfPresent

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

      If the navigation property for an entity FrtAgrmtRateTableCalcRule 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 _FrtAgrmtRateTableValidity is already loaded, the result will contain the FrtAgrmtRateTableValidity entity. If not, an Option with result state empty is returned.
    • setFrtAgrmtRateTableValidity

      public void setFrtAgrmtRateTableValidity(FrtAgrmtRateTableValidity value)
      Overwrites the associated FrtAgrmtRateTableValidity entity for the loaded navigation property _FrtAgrmtRateTableValidity.
      Parameters:
      value - New FrtAgrmtRateTableValidity entity.
    • builder

    • getTranspRateTableCalcRuleUUID

      @Nullable public UUID getTranspRateTableCalcRuleUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TranspRateTableCalcRuleUUID

      Returns:
      Transp Rate Table Cal Rule UUID
    • getTranspRateTableValidityUUID

      @Nullable public UUID getTranspRateTableValidityUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspRateTableValidityUUID

      Returns:
      Transp Rate Table Validity UUID
    • getTransportationRateTableUUID

      @Nullable public UUID getTransportationRateTableUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: TransportationRateTableUUID

      Returns:
      Transportation Rate Table UUID
    • getTransportationAgreementUUID

      @Nullable public UUID getTransportationAgreementUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationAgreementUUID

      Returns:
      Transportation Agreement UUID
    • getTransportationCalculationBase

      @Nullable public String getTransportationCalculationBase()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: TransportationCalculationBase

      Returns:
      Calculation Base
    • getTranspRateTableCalcRuleQtyUnit

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

      Original property name from the Odata EDM: TranspRateTableCalcRuleQtyUnit

      Returns:
      Unit of Measure
    • getTranspRateCalcRulePricePerQty

      @Nullable public BigDecimal getTranspRateCalcRulePricePerQty()
      Constraints: Not nullable, Precision: 31, Scale: 3

      Original property name from the Odata EDM: TranspRateCalcRulePricePerQty

      Returns:
      The transpRateCalcRulePricePerQty contained in this VdmEntity.
    • toString

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

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

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

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

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