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

public class FreightAgreementRateTable extends VdmEntity<FreightAgreementRateTable> implements VdmEntitySet
Freight Agreement Rate Table

Original entity name from the Odata EDM: FreightAgreementRateTable_Type

  • Field Details

  • Constructor Details

    • FreightAgreementRateTable

      public FreightAgreementRateTable()
    • FreightAgreementRateTable

      public FreightAgreementRateTable(@Nullable UUID transportationRateTableUUID, @Nullable UUID transpCalculationSheetUUID, @Nullable UUID transpCalcSheetItemUUID, @Nullable UUID transportationAgreementUUID, @Nullable String transpRateTableID, @Nullable String transpRateTableDesc, @Nullable String transpRateTableValueType, @Nullable String transpChargeType, @Nullable String transpRateTableSignType, @Nullable String transpRateTableTimeZone, @Nullable FreightAgreement to_FreightAgreement, @Nullable FrtAgrmtCalcSheetItem to_FrtAgrmtCalcSheetItem, List<FrtAgrmtRateTableScaleRef> to_FrtAgrmtRateTableScaleRef, List<FrtAgrmtRateTableValidity> to_FrtAgrmtRateTableValidity)
  • Method Details

    • getType

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

      public void setTransportationRateTableUUID(@Nullable UUID transportationRateTableUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TransportationRateTableUUID

      Parameters:
      transportationRateTableUUID - Transportation Rate Table UUID
    • setTranspCalculationSheetUUID

      public void setTranspCalculationSheetUUID(@Nullable UUID transpCalculationSheetUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: TranspCalculationSheetUUID

      Parameters:
      transpCalculationSheetUUID - NodeID
    • setTranspCalcSheetItemUUID

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

      Original property name from the Odata EDM: TranspCalcSheetItemUUID

      Parameters:
      transpCalcSheetItemUUID - Calculation Sheet Item UUID
    • setTransportationAgreementUUID

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

      Original property name from the Odata EDM: TransportationAgreementUUID

      Parameters:
      transportationAgreementUUID - Transportation Agreement UUID
    • setTranspRateTableID

      public void setTranspRateTableID(@Nullable String transpRateTableID)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: TranspRateTableID

      Parameters:
      transpRateTableID - Rate Table
    • setTranspRateTableDesc

      public void setTranspRateTableDesc(@Nullable String transpRateTableDesc)
      Constraints: Not nullable, Maximum length: 75

      Original property name from the Odata EDM: TranspRateTableDesc

      Parameters:
      transpRateTableDesc - Description
    • setTranspRateTableValueType

      public void setTranspRateTableValueType(@Nullable String transpRateTableValueType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TranspRateTableValueType

      Parameters:
      transpRateTableValueType - Value Type
    • setTranspChargeType

      public void setTranspChargeType(@Nullable String transpChargeType)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: TranspChargeType

      Parameters:
      transpChargeType - Charge Type
    • setTranspRateTableSignType

      public void setTranspRateTableSignType(@Nullable String transpRateTableSignType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TranspRateTableSignType

      Parameters:
      transpRateTableSignType - Positive/Negative
    • setTranspRateTableTimeZone

      public void setTranspRateTableTimeZone(@Nullable String transpRateTableTimeZone)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: TranspRateTableTimeZone

      Parameters:
      transpRateTableTimeZone - Time Zone
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity FreightAgreementRateTable 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 _FrtAgrmtRateTableScaleRef is already loaded, the result will contain the FrtAgrmtRateTableScaleRef entities. If not, an Option with result state empty is returned.
    • setFrtAgrmtRateTableScaleRef

      public void setFrtAgrmtRateTableScaleRef(@Nonnull List<FrtAgrmtRateTableScaleRef> value)
      Overwrites the list of associated FrtAgrmtRateTableScaleRef entities for the loaded navigation property _FrtAgrmtRateTableScaleRef.

      If the navigation property _FrtAgrmtRateTableScaleRef of a queried FreightAgreementRateTable 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 FrtAgrmtRateTableScaleRef entities.
    • addFrtAgrmtRateTableScaleRef

      public void addFrtAgrmtRateTableScaleRef(FrtAgrmtRateTableScaleRef... entity)
      Adds elements to the list of associated FrtAgrmtRateTableScaleRef entities. This corresponds to the OData navigation property _FrtAgrmtRateTableScaleRef.

      If the navigation property _FrtAgrmtRateTableScaleRef of a queried FreightAgreementRateTable 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 FrtAgrmtRateTableScaleRef entities.
    • getFrtAgrmtRateTableValidityIfPresent

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

      If the navigation property for an entity FreightAgreementRateTable 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 entities. If not, an Option with result state empty is returned.
    • setFrtAgrmtRateTableValidity

      public void setFrtAgrmtRateTableValidity(@Nonnull List<FrtAgrmtRateTableValidity> value)
      Overwrites the list of associated FrtAgrmtRateTableValidity entities for the loaded navigation property _FrtAgrmtRateTableValidity.

      If the navigation property _FrtAgrmtRateTableValidity of a queried FreightAgreementRateTable 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 FrtAgrmtRateTableValidity entities.
    • addFrtAgrmtRateTableValidity

      public void addFrtAgrmtRateTableValidity(FrtAgrmtRateTableValidity... entity)
      Adds elements to the list of associated FrtAgrmtRateTableValidity entities. This corresponds to the OData navigation property _FrtAgrmtRateTableValidity.

      If the navigation property _FrtAgrmtRateTableValidity of a queried FreightAgreementRateTable 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 FrtAgrmtRateTableValidity entities.
    • builder

    • getTransportationRateTableUUID

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

      Original property name from the Odata EDM: TransportationRateTableUUID

      Returns:
      Transportation Rate Table UUID
    • getTranspCalculationSheetUUID

      @Nullable public UUID getTranspCalculationSheetUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: TranspCalculationSheetUUID

      Returns:
      NodeID
    • getTranspCalcSheetItemUUID

      @Nullable public UUID getTranspCalcSheetItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspCalcSheetItemUUID

      Returns:
      Calculation Sheet Item UUID
    • getTransportationAgreementUUID

      @Nullable public UUID getTransportationAgreementUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationAgreementUUID

      Returns:
      Transportation Agreement UUID
    • getTranspRateTableID

      @Nullable public String getTranspRateTableID()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: TranspRateTableID

      Returns:
      Rate Table
    • getTranspRateTableDesc

      @Nullable public String getTranspRateTableDesc()
      Constraints: Not nullable, Maximum length: 75

      Original property name from the Odata EDM: TranspRateTableDesc

      Returns:
      Description
    • getTranspRateTableValueType

      @Nullable public String getTranspRateTableValueType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TranspRateTableValueType

      Returns:
      Value Type
    • getTranspChargeType

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

      Original property name from the Odata EDM: TranspChargeType

      Returns:
      Charge Type
    • getTranspRateTableSignType

      @Nullable public String getTranspRateTableSignType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TranspRateTableSignType

      Returns:
      Positive/Negative
    • getTranspRateTableTimeZone

      @Nullable public String getTranspRateTableTimeZone()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: TranspRateTableTimeZone

      Returns:
      Time Zone
    • toString

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

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

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

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

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