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

public class FrtOrdChrgCalcRule extends VdmEntity<FrtOrdChrgCalcRule> implements VdmEntitySet
Freight Order Charge Calculation Rule

Original entity name from the Odata EDM: FrtOrdChrgCalcRule_Type

  • Field Details

  • Constructor Details

    • FrtOrdChrgCalcRule

      public FrtOrdChrgCalcRule()
    • FrtOrdChrgCalcRule

      public FrtOrdChrgCalcRule(@Nullable UUID transpChrgCalcRuleUUID, @Nullable UUID transpChargeItemElementUUID, @Nullable UUID transportationOrderUUID, @Nullable String transpChrgCalculationBase, @Nullable String transpRateCalcRuleQtyUnit, @Nullable BigDecimal transpRateCalcRuleQuantity, @Nullable BigDecimal transpChrgDataSourceQuantity, @Nullable FreightOrder to_FreightOrder, @Nullable FrtOrdChrgElement to_FrtOrdChrgElement)
  • Method Details

    • getType

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

      public void setTranspChrgCalcRuleUUID(@Nullable UUID transpChrgCalcRuleUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TranspChrgCalcRuleUUID

      Parameters:
      transpChrgCalcRuleUUID - NodeID
    • setTranspChargeItemElementUUID

      public void setTranspChargeItemElementUUID(@Nullable UUID transpChargeItemElementUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspChargeItemElementUUID

      Parameters:
      transpChargeItemElementUUID - NodeID
    • setTransportationOrderUUID

      public void setTransportationOrderUUID(@Nullable UUID transportationOrderUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationOrderUUID

      Parameters:
      transportationOrderUUID - NodeID
    • setTranspChrgCalculationBase

      public void setTranspChrgCalculationBase(@Nullable String transpChrgCalculationBase)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: TranspChrgCalculationBase

      Parameters:
      transpChrgCalculationBase - Calculation Base
    • setTranspRateCalcRuleQtyUnit

      public void setTranspRateCalcRuleQtyUnit(@Nullable String transpRateCalcRuleQtyUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TranspRateCalcRuleQtyUnit

      Parameters:
      transpRateCalcRuleQtyUnit - Unit of Measure
    • setTranspRateCalcRuleQuantity

      public void setTranspRateCalcRuleQuantity(@Nullable BigDecimal transpRateCalcRuleQuantity)
      Constraints: Not nullable, Precision: 31, Scale: 14

      Original property name from the Odata EDM: TranspRateCalcRuleQuantity

      Parameters:
      transpRateCalcRuleQuantity - Quantity
    • setTranspChrgDataSourceQuantity

      public void setTranspChrgDataSourceQuantity(@Nullable BigDecimal transpChrgDataSourceQuantity)
      Constraints: Not nullable, Precision: 31, Scale: 14

      Original property name from the Odata EDM: TranspChrgDataSourceQuantity

      Parameters:
      transpChrgDataSourceQuantity - Quantity
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity FrtOrdChrgCalcRule 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 _FreightOrder is already loaded, the result will contain the FreightOrder entity. If not, an Option with result state empty is returned.
    • setFreightOrder

      public void setFreightOrder(FreightOrder value)
      Overwrites the associated FreightOrder entity for the loaded navigation property _FreightOrder.
      Parameters:
      value - New FreightOrder entity.
    • getFrtOrdChrgElementIfPresent

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

      If the navigation property for an entity FrtOrdChrgCalcRule 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 _FrtOrdChrgElement is already loaded, the result will contain the FrtOrdChrgElement entity. If not, an Option with result state empty is returned.
    • setFrtOrdChrgElement

      public void setFrtOrdChrgElement(FrtOrdChrgElement value)
      Overwrites the associated FrtOrdChrgElement entity for the loaded navigation property _FrtOrdChrgElement.
      Parameters:
      value - New FrtOrdChrgElement entity.
    • builder

      @Nonnull public static FrtOrdChrgCalcRule.FrtOrdChrgCalcRuleBuilder builder()
    • getTranspChrgCalcRuleUUID

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

      Original property name from the Odata EDM: TranspChrgCalcRuleUUID

      Returns:
      NodeID
    • getTranspChargeItemElementUUID

      @Nullable public UUID getTranspChargeItemElementUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspChargeItemElementUUID

      Returns:
      NodeID
    • getTransportationOrderUUID

      @Nullable public UUID getTransportationOrderUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationOrderUUID

      Returns:
      NodeID
    • getTranspChrgCalculationBase

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

      Original property name from the Odata EDM: TranspChrgCalculationBase

      Returns:
      Calculation Base
    • getTranspRateCalcRuleQtyUnit

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

      Original property name from the Odata EDM: TranspRateCalcRuleQtyUnit

      Returns:
      Unit of Measure
    • getTranspRateCalcRuleQuantity

      @Nullable public BigDecimal getTranspRateCalcRuleQuantity()
      Constraints: Not nullable, Precision: 31, Scale: 14

      Original property name from the Odata EDM: TranspRateCalcRuleQuantity

      Returns:
      Quantity
    • getTranspChrgDataSourceQuantity

      @Nullable public BigDecimal getTranspChrgDataSourceQuantity()
      Constraints: Not nullable, Precision: 31, Scale: 14

      Original property name from the Odata EDM: TranspChrgDataSourceQuantity

      Returns:
      Quantity
    • toString

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

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

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

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

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