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

public class FreightUnit extends VdmEntity<FreightUnit> implements VdmEntitySet
Freight Unit

Original entity name from the Odata EDM: FreightUnit_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: TransportationOrderUUID

      Parameters:
      transportationOrderUUID - Transportation Order UUID
    • setTransportationOrder

      public void setTransportationOrder(@Nullable String transportationOrder)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: TransportationOrder

      Parameters:
      transportationOrder - Document
    • setTransportationOrderType

      public void setTransportationOrderType(@Nullable String transportationOrderType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TransportationOrderType

      Parameters:
      transportationOrderType - Business Document Type
    • setTransportationOrderCategory

      public void setTransportationOrderCategory(@Nullable String transportationOrderCategory)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TransportationOrderCategory

      Parameters:
      transportationOrderCategory - Business Document Category
    • setTransportationMode

      public void setTransportationMode(@Nullable String transportationMode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TransportationMode

      Parameters:
      transportationMode - Transportation Mode
    • setTransportationModeCategory

      public void setTransportationModeCategory(@Nullable String transportationModeCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TransportationModeCategory

      Parameters:
      transportationModeCategory - Transportation Mode Category
    • setShipperUUID

      public void setShipperUUID(@Nullable UUID shipperUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: ShipperUUID

      Parameters:
      shipperUUID - Business Partner GUID
    • setShipper

      public void setShipper(@Nullable String shipper)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Shipper

      Parameters:
      shipper - Shipper
    • setShipperAddressID

      public void setShipperAddressID(@Nullable String shipperAddressID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ShipperAddressID

      Parameters:
      shipperAddressID - Unique Identifier for Address (APC_V_ADDRESS_ID)
    • setConsigneeUUID

      public void setConsigneeUUID(@Nullable UUID consigneeUUID)
      Constraints: Nullable

      Original property name from the Odata EDM: ConsigneeUUID

      Parameters:
      consigneeUUID - Business Partner GUID
    • setConsignee

      public void setConsignee(@Nullable String consignee)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Consignee

      Parameters:
      consignee - Ship-to Party
    • setConsigneeAddressID

      public void setConsigneeAddressID(@Nullable String consigneeAddressID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ConsigneeAddressID

      Parameters:
      consigneeAddressID - Unique Identifier for Address (APC_V_ADDRESS_ID)
    • setTranspOrdResponsiblePerson

      public void setTranspOrdResponsiblePerson(@Nullable String transpOrdResponsiblePerson)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: TranspOrdResponsiblePerson

      Parameters:
      transpOrdResponsiblePerson - Person Responsible
    • setTranspOrdLifeCycleStatus

      public void setTranspOrdLifeCycleStatus(@Nullable String transpOrdLifeCycleStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TranspOrdLifeCycleStatus

      Parameters:
      transpOrdLifeCycleStatus - Life Cycle Status
    • setTranspOrderDngrsGdsSts

      public void setTranspOrderDngrsGdsSts(@Nullable String transpOrderDngrsGdsSts)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TranspOrderDngrsGdsSts

      Parameters:
      transpOrderDngrsGdsSts - Dangerous Goods Status
    • setTranspOrdPlanningBlock

      public void setTranspOrdPlanningBlock(@Nullable String transpOrdPlanningBlock)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TranspOrdPlanningBlock

      Parameters:
      transpOrdPlanningBlock - Planning Block
    • setTranspOrdExecutionIsBlocked

      public void setTranspOrdExecutionIsBlocked(@Nullable Boolean transpOrdExecutionIsBlocked)
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspOrdExecutionIsBlocked

      Parameters:
      transpOrdExecutionIsBlocked - Execution Block
    • setTranspOrdGoodsMovementStatus

      public void setTranspOrdGoodsMovementStatus(@Nullable String transpOrdGoodsMovementStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TranspOrdGoodsMovementStatus

      Parameters:
      transpOrdGoodsMovementStatus - Delivery Goods Movement Status
    • setTransportationOrderCrtnType

      public void setTransportationOrderCrtnType(@Nullable String transportationOrderCrtnType)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TransportationOrderCrtnType

      Parameters:
      transportationOrderCrtnType - Creation Type
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Created on Timestamp
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Changed By
    • setChangedDateTime

      public void setChangedDateTime(@Nullable OffsetDateTime changedDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: ChangedDateTime

      Parameters:
      changedDateTime - Created on Timestamp
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity FreightUnit 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 _FreightUnitBusinessPartner is already loaded, the result will contain the FreightUnitBusinessPartner entities. If not, an Option with result state empty is returned.
    • setFreightUnitBusinessPartner

      public void setFreightUnitBusinessPartner(@Nonnull List<FreightUnitBusinessPartner> value)
      Overwrites the list of associated FreightUnitBusinessPartner entities for the loaded navigation property _FreightUnitBusinessPartner.

      If the navigation property _FreightUnitBusinessPartner of a queried FreightUnit 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 FreightUnitBusinessPartner entities.
    • addFreightUnitBusinessPartner

      public void addFreightUnitBusinessPartner(FreightUnitBusinessPartner... entity)
      Adds elements to the list of associated FreightUnitBusinessPartner entities. This corresponds to the OData navigation property _FreightUnitBusinessPartner.

      If the navigation property _FreightUnitBusinessPartner of a queried FreightUnit 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 FreightUnitBusinessPartner entities.
    • getFreightUnitDocumentReferenceIfPresent

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

      If the navigation property for an entity FreightUnit 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 _FreightUnitDocumentReference is already loaded, the result will contain the FreightUnitDocumentReference entities. If not, an Option with result state empty is returned.
    • setFreightUnitDocumentReference

      public void setFreightUnitDocumentReference(@Nonnull List<FreightUnitDocumentReference> value)
      Overwrites the list of associated FreightUnitDocumentReference entities for the loaded navigation property _FreightUnitDocumentReference.

      If the navigation property _FreightUnitDocumentReference of a queried FreightUnit 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 FreightUnitDocumentReference entities.
    • addFreightUnitDocumentReference

      public void addFreightUnitDocumentReference(FreightUnitDocumentReference... entity)
      Adds elements to the list of associated FreightUnitDocumentReference entities. This corresponds to the OData navigation property _FreightUnitDocumentReference.

      If the navigation property _FreightUnitDocumentReference of a queried FreightUnit 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 FreightUnitDocumentReference entities.
    • getFreightUnitItemIfPresent

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

      If the navigation property for an entity FreightUnit 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 _FreightUnitItem is already loaded, the result will contain the FreightUnitItem entities. If not, an Option with result state empty is returned.
    • setFreightUnitItem

      public void setFreightUnitItem(@Nonnull List<FreightUnitItem> value)
      Overwrites the list of associated FreightUnitItem entities for the loaded navigation property _FreightUnitItem.

      If the navigation property _FreightUnitItem of a queried FreightUnit 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 FreightUnitItem entities.
    • addFreightUnitItem

      public void addFreightUnitItem(FreightUnitItem... entity)
      Adds elements to the list of associated FreightUnitItem entities. This corresponds to the OData navigation property _FreightUnitItem.

      If the navigation property _FreightUnitItem of a queried FreightUnit 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 FreightUnitItem entities.
    • getFreightUnitStopIfPresent

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

      If the navigation property for an entity FreightUnit 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 _FreightUnitStop is already loaded, the result will contain the FreightUnitStop entities. If not, an Option with result state empty is returned.
    • setFreightUnitStop

      public void setFreightUnitStop(@Nonnull List<FreightUnitStop> value)
      Overwrites the list of associated FreightUnitStop entities for the loaded navigation property _FreightUnitStop.

      If the navigation property _FreightUnitStop of a queried FreightUnit 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 FreightUnitStop entities.
    • addFreightUnitStop

      public void addFreightUnitStop(FreightUnitStop... entity)
      Adds elements to the list of associated FreightUnitStop entities. This corresponds to the OData navigation property _FreightUnitStop.

      If the navigation property _FreightUnitStop of a queried FreightUnit 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 FreightUnitStop entities.
    • builder

      @Nonnull public static FreightUnit.FreightUnitBuilder builder()
    • getTransportationOrderUUID

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

      Original property name from the Odata EDM: TransportationOrderUUID

      Returns:
      Transportation Order UUID
    • getTransportationOrder

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

      Original property name from the Odata EDM: TransportationOrder

      Returns:
      Document
    • getTransportationOrderType

      @Nullable public String getTransportationOrderType()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TransportationOrderType

      Returns:
      Business Document Type
    • getTransportationOrderCategory

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

      Original property name from the Odata EDM: TransportationOrderCategory

      Returns:
      Business Document Category
    • getTransportationMode

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

      Original property name from the Odata EDM: TransportationMode

      Returns:
      Transportation Mode
    • getTransportationModeCategory

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

      Original property name from the Odata EDM: TransportationModeCategory

      Returns:
      Transportation Mode Category
    • getShipperUUID

      @Nullable public UUID getShipperUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: ShipperUUID

      Returns:
      Business Partner GUID
    • getShipper

      @Nullable public String getShipper()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Shipper

      Returns:
      Shipper
    • getShipperAddressID

      @Nullable public String getShipperAddressID()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ShipperAddressID

      Returns:
      Unique Identifier for Address (APC_V_ADDRESS_ID)
    • getConsigneeUUID

      @Nullable public UUID getConsigneeUUID()
      Constraints: Nullable

      Original property name from the Odata EDM: ConsigneeUUID

      Returns:
      Business Partner GUID
    • getConsignee

      @Nullable public String getConsignee()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Consignee

      Returns:
      Ship-to Party
    • getConsigneeAddressID

      @Nullable public String getConsigneeAddressID()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ConsigneeAddressID

      Returns:
      Unique Identifier for Address (APC_V_ADDRESS_ID)
    • getTranspOrdResponsiblePerson

      @Nullable public String getTranspOrdResponsiblePerson()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: TranspOrdResponsiblePerson

      Returns:
      Person Responsible
    • getTranspOrdLifeCycleStatus

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

      Original property name from the Odata EDM: TranspOrdLifeCycleStatus

      Returns:
      Life Cycle Status
    • getTranspOrderDngrsGdsSts

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

      Original property name from the Odata EDM: TranspOrderDngrsGdsSts

      Returns:
      Dangerous Goods Status
    • getTranspOrdPlanningBlock

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

      Original property name from the Odata EDM: TranspOrdPlanningBlock

      Returns:
      Planning Block
    • getTranspOrdExecutionIsBlocked

      @Nullable public Boolean getTranspOrdExecutionIsBlocked()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspOrdExecutionIsBlocked

      Returns:
      Execution Block
    • getTranspOrdGoodsMovementStatus

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

      Original property name from the Odata EDM: TranspOrdGoodsMovementStatus

      Returns:
      Delivery Goods Movement Status
    • getTransportationOrderCrtnType

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

      Original property name from the Odata EDM: TransportationOrderCrtnType

      Returns:
      Creation Type
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Created on Timestamp
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Changed By
    • getChangedDateTime

      @Nullable public OffsetDateTime getChangedDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: ChangedDateTime

      Returns:
      Created on Timestamp
    • toString

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

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

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

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

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