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

public class FreightUnitDocumentReference extends VdmEntity<FreightUnitDocumentReference> implements VdmEntitySet
Freight Unit Documnet Reference

Original entity name from the Odata EDM: FreightUnitDocumentReference_Type

  • Field Details

  • Constructor Details

    • FreightUnitDocumentReference

      public FreightUnitDocumentReference()
    • FreightUnitDocumentReference

      public FreightUnitDocumentReference(@Nullable UUID transportationOrderDocRefUUID, @Nullable UUID transportationOrderUUID, @Nullable String transpOrdDocReferenceID, @Nullable String transpOrdDocReferenceType, @Nullable String transpOrdDocReferenceItmID, @Nullable String transpOrdDocReferenceItmType, @Nullable LocalDate transpOrdDocumentReferenceDate, @Nullable String transpOrdDocRefIssuerName, @Nullable FreightUnit to_FreightUnit)
  • Method Details

    • getType

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

      public void setTransportationOrderDocRefUUID(@Nullable UUID transportationOrderDocRefUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TransportationOrderDocRefUUID

      Parameters:
      transportationOrderDocRefUUID - NodeID
    • setTransportationOrderUUID

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

      Original property name from the Odata EDM: TransportationOrderUUID

      Parameters:
      transportationOrderUUID - Transportation Order UUID
    • setTranspOrdDocReferenceID

      public void setTranspOrdDocReferenceID(@Nullable String transpOrdDocReferenceID)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: TranspOrdDocReferenceID

      Parameters:
      transpOrdDocReferenceID - Bus. Trans. Document ID
    • setTranspOrdDocReferenceType

      public void setTranspOrdDocReferenceType(@Nullable String transpOrdDocReferenceType)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: TranspOrdDocReferenceType

      Parameters:
      transpOrdDocReferenceType - Document Type for Business Transaction
    • setTranspOrdDocReferenceItmID

      public void setTranspOrdDocReferenceItmID(@Nullable String transpOrdDocReferenceItmID)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: TranspOrdDocReferenceItmID

      Parameters:
      transpOrdDocReferenceItmID - Item
    • setTranspOrdDocReferenceItmType

      public void setTranspOrdDocReferenceItmType(@Nullable String transpOrdDocReferenceItmType)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: TranspOrdDocReferenceItmType

      Parameters:
      transpOrdDocReferenceItmType - Business Transaction Document Item Type Code
    • setTranspOrdDocumentReferenceDate

      public void setTranspOrdDocumentReferenceDate(@Nullable LocalDate transpOrdDocumentReferenceDate)
      Constraints: Nullable

      Original property name from the Odata EDM: TranspOrdDocumentReferenceDate

      Parameters:
      transpOrdDocumentReferenceDate - Business Transaction Document Date
    • setTranspOrdDocRefIssuerName

      public void setTranspOrdDocRefIssuerName(@Nullable String transpOrdDocRefIssuerName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: TranspOrdDocRefIssuerName

      Parameters:
      transpOrdDocRefIssuerName - Issuing Party of Business Transaction Document
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setFreightUnit(FreightUnit value)
      Overwrites the associated FreightUnit entity for the loaded navigation property _FreightUnit.
      Parameters:
      value - New FreightUnit entity.
    • builder

    • getTransportationOrderDocRefUUID

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

      Original property name from the Odata EDM: TransportationOrderDocRefUUID

      Returns:
      NodeID
    • getTransportationOrderUUID

      @Nullable public UUID getTransportationOrderUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationOrderUUID

      Returns:
      Transportation Order UUID
    • getTranspOrdDocReferenceID

      @Nullable public String getTranspOrdDocReferenceID()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: TranspOrdDocReferenceID

      Returns:
      Bus. Trans. Document ID
    • getTranspOrdDocReferenceType

      @Nullable public String getTranspOrdDocReferenceType()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: TranspOrdDocReferenceType

      Returns:
      Document Type for Business Transaction
    • getTranspOrdDocReferenceItmID

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

      Original property name from the Odata EDM: TranspOrdDocReferenceItmID

      Returns:
      Item
    • getTranspOrdDocReferenceItmType

      @Nullable public String getTranspOrdDocReferenceItmType()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: TranspOrdDocReferenceItmType

      Returns:
      Business Transaction Document Item Type Code
    • getTranspOrdDocumentReferenceDate

      @Nullable public LocalDate getTranspOrdDocumentReferenceDate()
      Constraints: Nullable

      Original property name from the Odata EDM: TranspOrdDocumentReferenceDate

      Returns:
      Business Transaction Document Date
    • getTranspOrdDocRefIssuerName

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

      Original property name from the Odata EDM: TranspOrdDocRefIssuerName

      Returns:
      Issuing Party of Business Transaction Document
    • toString

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

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

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

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

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