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

public class FrtBkgChrgCalcRule extends VdmEntity<FrtBkgChrgCalcRule> implements VdmEntitySet
Freight Booking Charge Calculation Rule

Original entity name from the Odata EDM: A_FrtBkgChrgCalcRule_Type

  • Field Details

  • Constructor Details

    • FrtBkgChrgCalcRule

      public FrtBkgChrgCalcRule()
    • FrtBkgChrgCalcRule

      public FrtBkgChrgCalcRule(@Nullable UUID transpChrgCalcRuleUUID, @Nullable UUID transpChargeItemElementUUID, @Nullable UUID transportationOrderUUID, @Nullable String transpChrgCalculationBase, @Nullable String transpRateCalcRuleQtyUnit, @Nullable BigDecimal transpRateCalcRuleQuantity, @Nullable BigDecimal transpChrgDataSourceQuantity, @Nullable FreightBooking to_FreightBooking, @Nullable FrtBkgChrgElement to_FreightBookingChrgElmnt)
  • Method Details

    • getType

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

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

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

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

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

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

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

      If the navigation property for an entity FrtBkgChrgCalcRule 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 _FreightBooking is already loaded, the result will contain the FreightBooking entity. If not, an Option with result state empty is returned.
    • setFreightBooking

      public void setFreightBooking(FreightBooking value)
      Overwrites the associated FreightBooking entity for the loaded navigation property _FreightBooking.
      Parameters:
      value - New FreightBooking entity.
    • getFreightBookingChrgElmntIfPresent

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

      If the navigation property for an entity FrtBkgChrgCalcRule 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 _FreightBookingChrgElmnt is already loaded, the result will contain the FrtBkgChrgElement entity. If not, an Option with result state empty is returned.
    • setFreightBookingChrgElmnt

      public void setFreightBookingChrgElmnt(FrtBkgChrgElement value)
      Overwrites the associated FrtBkgChrgElement entity for the loaded navigation property _FreightBookingChrgElmnt.
      Parameters:
      value - New FrtBkgChrgElement entity.
    • builder

      @Nonnull public static FrtBkgChrgCalcRule.FrtBkgChrgCalcRuleBuilder 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<FrtBkgChrgCalcRule>
    • equals

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

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

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

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