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

public class FrtAgrmtCalcSheetItmCalcRule extends VdmEntity<FrtAgrmtCalcSheetItmCalcRule> implements VdmEntitySet
Freight Agreement Calc Sht Itm Calc Rule

Original entity name from the Odata EDM: FrtAgrmtCalcSheetItmCalcRule_Type

  • Field Details

  • Constructor Details

    • FrtAgrmtCalcSheetItmCalcRule

      public FrtAgrmtCalcSheetItmCalcRule()
    • FrtAgrmtCalcSheetItmCalcRule

      public FrtAgrmtCalcSheetItmCalcRule(@Nullable UUID transpCalcSheetItmCalcRuleUUID, @Nullable UUID transpCalcSheetItemUUID, @Nullable UUID transportationAgreementUUID, @Nullable String transportationCalculationBase, @Nullable String transpChrgCalcRuleUnit, @Nullable BigDecimal transpChrgPricePerQuantity, @Nullable FreightAgreement to_FreightAgreement, @Nullable FrtAgrmtCalcSheetItem to_FrtAgrmtCalcSheetItem)
  • Method Details

    • getType

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

      public void setTranspCalcSheetItmCalcRuleUUID(@Nullable UUID transpCalcSheetItmCalcRuleUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TranspCalcSheetItmCalcRuleUUID

      Parameters:
      transpCalcSheetItmCalcRuleUUID - Calculation Sheet Item Calc Rule UUID
    • setTranspCalcSheetItemUUID

      public void setTranspCalcSheetItemUUID(@Nullable UUID transpCalcSheetItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspCalcSheetItemUUID

      Parameters:
      transpCalcSheetItemUUID - NodeID
    • setTransportationAgreementUUID

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

      Original property name from the Odata EDM: TransportationAgreementUUID

      Parameters:
      transportationAgreementUUID - Agreement Item 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
    • setTranspChrgCalcRuleUnit

      public void setTranspChrgCalcRuleUnit(@Nullable String transpChrgCalcRuleUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TranspChrgCalcRuleUnit

      Parameters:
      transpChrgCalcRuleUnit - Unit of Measure
    • setTranspChrgPricePerQuantity

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

      Original property name from the Odata EDM: TranspChrgPricePerQuantity

      Parameters:
      transpChrgPricePerQuantity - The transpChrgPricePerQuantity to set.
    • getEntityCollection

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

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<FrtAgrmtCalcSheetItmCalcRule>
    • 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 FrtAgrmtCalcSheetItmCalcRule 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.
    • getFrtAgrmtCalcSheetItemIfPresent

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

      If the navigation property for an entity FrtAgrmtCalcSheetItmCalcRule 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 _FrtAgrmtCalcSheetItem is already loaded, the result will contain the FrtAgrmtCalcSheetItem entity. If not, an Option with result state empty is returned.
    • setFrtAgrmtCalcSheetItem

      public void setFrtAgrmtCalcSheetItem(FrtAgrmtCalcSheetItem value)
      Overwrites the associated FrtAgrmtCalcSheetItem entity for the loaded navigation property _FrtAgrmtCalcSheetItem.
      Parameters:
      value - New FrtAgrmtCalcSheetItem entity.
    • builder

    • getTranspCalcSheetItmCalcRuleUUID

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

      Original property name from the Odata EDM: TranspCalcSheetItmCalcRuleUUID

      Returns:
      Calculation Sheet Item Calc Rule UUID
    • getTranspCalcSheetItemUUID

      @Nullable public UUID getTranspCalcSheetItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspCalcSheetItemUUID

      Returns:
      NodeID
    • getTransportationAgreementUUID

      @Nullable public UUID getTransportationAgreementUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationAgreementUUID

      Returns:
      Agreement Item UUID
    • getTransportationCalculationBase

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

      Original property name from the Odata EDM: TransportationCalculationBase

      Returns:
      Calculation Base
    • getTranspChrgCalcRuleUnit

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

      Original property name from the Odata EDM: TranspChrgCalcRuleUnit

      Returns:
      Unit of Measure
    • getTranspChrgPricePerQuantity

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

      Original property name from the Odata EDM: TranspChrgPricePerQuantity

      Returns:
      The transpChrgPricePerQuantity contained in this VdmEntity.
    • toString

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

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

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

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

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