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

public class FieldLogisticsShipmentVoyage extends VdmEntity<FieldLogisticsShipmentVoyage> implements VdmEntitySet
Field Logistics Shipment Voyage

Original entity name from the Odata EDM: FieldLogisticsShipmentVoyage_Type

  • Field Details

  • Constructor Details

    • FieldLogisticsShipmentVoyage

      public FieldLogisticsShipmentVoyage()
    • FieldLogisticsShipmentVoyage

      public FieldLogisticsShipmentVoyage(@Nullable UUID fldLogsShptVoyageUUID, @Nullable String fldLogsShptVoyageNumber, @Nullable String fldLogsShptVoyageTypeCode, @Nullable String fldLogsShptVoyageStatusCode, @Nullable OffsetDateTime fldLogsVoyageChangeDateTime, @Nullable Boolean fldLogsShptVoyIsExternallyMngd, @Nullable String isBusinessPurposeCompleted, @Nullable Collection<SAP__Message> _Messages, List<FieldLogisticsShipmentVoyageStage> to_Stage)
  • Method Details

    • getType

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

      public void setFldLogsShptVoyageUUID(@Nullable UUID fldLogsShptVoyageUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: FldLogsShptVoyageUUID

      Parameters:
      fldLogsShptVoyageUUID - Field Logistics: Voyage UUID
    • setFldLogsShptVoyageNumber

      public void setFldLogsShptVoyageNumber(@Nullable String fldLogsShptVoyageNumber)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: FldLogsShptVoyageNumber

      Parameters:
      fldLogsShptVoyageNumber - Field Logistics: Voyage Number
    • setFldLogsShptVoyageTypeCode

      public void setFldLogsShptVoyageTypeCode(@Nullable String fldLogsShptVoyageTypeCode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: FldLogsShptVoyageTypeCode

      Parameters:
      fldLogsShptVoyageTypeCode - Field Logistics: Voyage Type Code
    • setFldLogsShptVoyageStatusCode

      public void setFldLogsShptVoyageStatusCode(@Nullable String fldLogsShptVoyageStatusCode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: FldLogsShptVoyageStatusCode

      Parameters:
      fldLogsShptVoyageStatusCode - Field Logistics: Voyage Status Code
    • setFldLogsVoyageChangeDateTime

      public void setFldLogsVoyageChangeDateTime(@Nullable OffsetDateTime fldLogsVoyageChangeDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: FldLogsVoyageChangeDateTime

      Parameters:
      fldLogsVoyageChangeDateTime - Changed On
    • setFldLogsShptVoyIsExternallyMngd

      public void setFldLogsShptVoyIsExternallyMngd(@Nullable Boolean fldLogsShptVoyIsExternallyMngd)
      Constraints: Not nullable

      Original property name from the Odata EDM: FldLogsShptVoyIsExternallyMngd

      Parameters:
      fldLogsShptVoyIsExternallyMngd - Field Logistics: Voyage Externally managed Indicator
    • setIsBusinessPurposeCompleted

      public void setIsBusinessPurposeCompleted(@Nullable String isBusinessPurposeCompleted)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: IsBusinessPurposeCompleted

      Parameters:
      isBusinessPurposeCompleted - Business Purpose Completed Flag
    • 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<FieldLogisticsShipmentVoyage>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity FieldLogisticsShipmentVoyage 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 _Stage is already loaded, the result will contain the FieldLogisticsShipmentVoyageStage entities. If not, an Option with result state empty is returned.
    • setStage

      public void setStage(@Nonnull List<FieldLogisticsShipmentVoyageStage> value)
      Overwrites the list of associated FieldLogisticsShipmentVoyageStage entities for the loaded navigation property _Stage.

      If the navigation property _Stage of a queried FieldLogisticsShipmentVoyage 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 FieldLogisticsShipmentVoyageStage entities.
    • addStage

      public void addStage(FieldLogisticsShipmentVoyageStage... entity)
      Adds elements to the list of associated FieldLogisticsShipmentVoyageStage entities. This corresponds to the OData navigation property _Stage.

      If the navigation property _Stage of a queried FieldLogisticsShipmentVoyage 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 FieldLogisticsShipmentVoyageStage entities.
    • builder

    • getFldLogsShptVoyageUUID

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

      Original property name from the Odata EDM: FldLogsShptVoyageUUID

      Returns:
      Field Logistics: Voyage UUID
    • getFldLogsShptVoyageNumber

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

      Original property name from the Odata EDM: FldLogsShptVoyageNumber

      Returns:
      Field Logistics: Voyage Number
    • getFldLogsShptVoyageTypeCode

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

      Original property name from the Odata EDM: FldLogsShptVoyageTypeCode

      Returns:
      Field Logistics: Voyage Type Code
    • getFldLogsShptVoyageStatusCode

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

      Original property name from the Odata EDM: FldLogsShptVoyageStatusCode

      Returns:
      Field Logistics: Voyage Status Code
    • getFldLogsVoyageChangeDateTime

      @Nullable public OffsetDateTime getFldLogsVoyageChangeDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: FldLogsVoyageChangeDateTime

      Returns:
      Changed On
    • getFldLogsShptVoyIsExternallyMngd

      @Nullable public Boolean getFldLogsShptVoyIsExternallyMngd()
      Constraints: Not nullable

      Original property name from the Odata EDM: FldLogsShptVoyIsExternallyMngd

      Returns:
      Field Logistics: Voyage Externally managed Indicator
    • getIsBusinessPurposeCompleted

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

      Original property name from the Odata EDM: IsBusinessPurposeCompleted

      Returns:
      Business Purpose Completed Flag
    • 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<FieldLogisticsShipmentVoyage>
    • equals

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

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

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

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