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

public class TranspRateTableValidity extends VdmEntity<TranspRateTableValidity> implements VdmEntitySet
Rate Table Validity Period

Original entity name from the Odata EDM: TranspRateTableValidity_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setTranspRateTableValidityUUID(@Nullable UUID transpRateTableValidityUUID)
      (Key Field) 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: Not nullable

      Original property name from the Odata EDM: TransportationRateTableUUID

      Parameters:
      transportationRateTableUUID - Transportation Rate Table UUID
    • setTranspRateTblValidityCurrency

      public void setTranspRateTblValidityCurrency(@Nullable String transpRateTblValidityCurrency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TranspRateTblValidityCurrency

      Parameters:
      transpRateTblValidityCurrency - Currency
    • setTranspRateTblValdtyLfcycStatus

      public void setTranspRateTblValdtyLfcycStatus(@Nullable String transpRateTblValdtyLfcycStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TranspRateTblValdtyLfcycStatus

      Parameters:
      transpRateTblValdtyLfcycStatus - Life Cycle Status
    • setTranspRateTblValidityEndDate

      public void setTranspRateTblValidityEndDate(@Nullable LocalDate transpRateTblValidityEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: TranspRateTblValidityEndDate

      Parameters:
      transpRateTblValidityEndDate - End Date of Validity
    • setTranspRateTblValidityStartDate

      public void setTranspRateTblValidityStartDate(@Nullable LocalDate transpRateTblValidityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: TranspRateTblValidityStartDate

      Parameters:
      transpRateTblValidityStartDate - Start Date of Validity
    • setTranspRateTblValidityPctUnit

      public void setTranspRateTblValidityPctUnit(@Nullable String transpRateTblValidityPctUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TranspRateTblValidityPctUnit

      Parameters:
      transpRateTblValidityPctUnit - Unit of Measurement
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity TranspRateTableValidity 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 _TransportationRateTable is already loaded, the result will contain the TransportationRateTable entity. If not, an Option with result state empty is returned.
    • setTransportationRateTable

      public void setTransportationRateTable(TransportationRateTable value)
      Overwrites the associated TransportationRateTable entity for the loaded navigation property _TransportationRateTable.
      Parameters:
      value - New TransportationRateTable entity.
    • getTranspRateTableCalcRuleIfPresent

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

      If the navigation property for an entity TranspRateTableValidity 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 _TranspRateTableCalcRule is already loaded, the result will contain the TranspRateTableCalcRule entities. If not, an Option with result state empty is returned.
    • setTranspRateTableCalcRule

      public void setTranspRateTableCalcRule(@Nonnull List<TranspRateTableCalcRule> value)
      Overwrites the list of associated TranspRateTableCalcRule entities for the loaded navigation property _TranspRateTableCalcRule.

      If the navigation property _TranspRateTableCalcRule of a queried TranspRateTableValidity 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 TranspRateTableCalcRule entities.
    • addTranspRateTableCalcRule

      public void addTranspRateTableCalcRule(TranspRateTableCalcRule... entity)
      Adds elements to the list of associated TranspRateTableCalcRule entities. This corresponds to the OData navigation property _TranspRateTableCalcRule.

      If the navigation property _TranspRateTableCalcRule of a queried TranspRateTableValidity 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 TranspRateTableCalcRule entities.
    • getTranspRateTableRateIfPresent

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

      If the navigation property for an entity TranspRateTableValidity 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 _TranspRateTableRate is already loaded, the result will contain the TranspRateTableRate entities. If not, an Option with result state empty is returned.
    • setTranspRateTableRate

      public void setTranspRateTableRate(@Nonnull List<TranspRateTableRate> value)
      Overwrites the list of associated TranspRateTableRate entities for the loaded navigation property _TranspRateTableRate.

      If the navigation property _TranspRateTableRate of a queried TranspRateTableValidity 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 TranspRateTableRate entities.
    • addTranspRateTableRate

      public void addTranspRateTableRate(TranspRateTableRate... entity)
      Adds elements to the list of associated TranspRateTableRate entities. This corresponds to the OData navigation property _TranspRateTableRate.

      If the navigation property _TranspRateTableRate of a queried TranspRateTableValidity 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 TranspRateTableRate entities.
    • setValdtyStsToInProcForRateTbl

      @Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> setValdtyStsToInProcForRateTbl()
      Action that can be applied to any entity object of this class.

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • releaseValidityForRateTable

      @Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> releaseValidityForRateTable()
      Action that can be applied to any entity object of this class.

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • updateTransportationRates

      @Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> updateTransportationRates(@Nonnull BigDecimal transpRateIncrDecrInPct, @Nonnull BigDecimal transpRateAmountInRateCrcy, @Nonnull String transpRateValidityCurrency, @Nonnull String transpRateSignIncrDecr)
      Action that can be applied to any entity object of this class.

      Parameters:
      transpRateSignIncrDecr - Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: TranspRateSignIncrDecr

      transpRateIncrDecrInPct - Constraints: Not nullable, Precision: 7, Scale: 2

      Original parameter name from the Odata EDM: TranspRateIncrDecrInPct

      transpRateValidityCurrency - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: TranspRateValidityCurrency

      transpRateAmountInRateCrcy - Constraints: Not nullable, Precision: 28, Scale: 6

      Original parameter name from the Odata EDM: TranspRateAmountInRateCrcy

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • updateTransportationRates

      @Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> updateTransportationRates(@Nonnull BigDecimal transpRateIncrDecrInPct, @Nonnull BigDecimal transpRateAmountInRateCrcy, @Nonnull String transpRateValidityCurrency, @Nonnull String transpRateSignIncrDecr, @Nonnull String transpRateValidityPctUnit)
      Action that can be applied to any entity object of this class.

      Parameters:
      transpRateSignIncrDecr - Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: TranspRateSignIncrDecr

      transpRateIncrDecrInPct - Constraints: Not nullable, Precision: 7, Scale: 2

      Original parameter name from the Odata EDM: TranspRateIncrDecrInPct

      transpRateValidityPctUnit - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: TranspRateValidityPctUnit

      transpRateValidityCurrency - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: TranspRateValidityCurrency

      transpRateAmountInRateCrcy - Constraints: Not nullable, Precision: 28, Scale: 6

      Original parameter name from the Odata EDM: TranspRateAmountInRateCrcy

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • copyValidityForRateTable

      @Nonnull public static BoundAction.SingleToSingle<TranspRateTableValidity,TranspRateTableValidity> copyValidityForRateTable(@Nullable LocalDate transpRateValidityCpyStartDate, @Nullable LocalDate transpRateValidityCpyEndDate)
      Action that can be applied to any entity object of this class.

      Parameters:
      transpRateValidityCpyEndDate - Constraints: Nullable

      Original parameter name from the Odata EDM: TranspRateValidityCpyEndDate

      transpRateValidityCpyStartDate - Constraints: Nullable

      Original parameter name from the Odata EDM: TranspRateValidityCpyStartDate

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

    • getTranspRateTableValidityUUID

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

      Original property name from the Odata EDM: TranspRateTableValidityUUID

      Returns:
      Transp Rate Table Validity UUID
    • getTransportationRateTableUUID

      @Nullable public UUID getTransportationRateTableUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationRateTableUUID

      Returns:
      Transportation Rate Table UUID
    • getTranspRateTblValidityCurrency

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

      Original property name from the Odata EDM: TranspRateTblValidityCurrency

      Returns:
      Currency
    • getTranspRateTblValdtyLfcycStatus

      @Nullable public String getTranspRateTblValdtyLfcycStatus()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TranspRateTblValdtyLfcycStatus

      Returns:
      Life Cycle Status
    • getTranspRateTblValidityEndDate

      @Nullable public LocalDate getTranspRateTblValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: TranspRateTblValidityEndDate

      Returns:
      End Date of Validity
    • getTranspRateTblValidityStartDate

      @Nullable public LocalDate getTranspRateTblValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: TranspRateTblValidityStartDate

      Returns:
      Start Date of Validity
    • getTranspRateTblValidityPctUnit

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

      Original property name from the Odata EDM: TranspRateTblValidityPctUnit

      Returns:
      Unit of Measurement
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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