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

public class ServiceDocumentPriority extends VdmEntity<ServiceDocumentPriority> implements VdmEntitySet
Service Transaction Priority

Original entity name from the Odata EDM: ServiceDocumentPriority_Type

  • Field Details

  • Constructor Details

    • ServiceDocumentPriority

      public ServiceDocumentPriority()
    • ServiceDocumentPriority

      public ServiceDocumentPriority(@Nullable String serviceDocumentPriority, @Nullable String serviceDocumentPriorityName, List<ServiceDocumentPriorityText> to_ServiceDocumentPriorityText)
  • Method Details

    • getType

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

      public void setServiceDocumentPriority(@Nullable String serviceDocumentPriority)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ServiceDocumentPriority

      Parameters:
      serviceDocumentPriority - Appointment priority
    • setServiceDocumentPriorityName

      public void setServiceDocumentPriorityName(@Nullable String serviceDocumentPriorityName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ServiceDocumentPriorityName

      Parameters:
      serviceDocumentPriorityName - Description
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ServiceDocumentPriority 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 _ServiceDocumentPriorityText is already loaded, the result will contain the ServiceDocumentPriorityText entities. If not, an Option with result state empty is returned.
    • setServiceDocumentPriorityText

      public void setServiceDocumentPriorityText(@Nonnull List<ServiceDocumentPriorityText> value)
      Overwrites the list of associated ServiceDocumentPriorityText entities for the loaded navigation property _ServiceDocumentPriorityText.

      If the navigation property _ServiceDocumentPriorityText of a queried ServiceDocumentPriority 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 ServiceDocumentPriorityText entities.
    • addServiceDocumentPriorityText

      public void addServiceDocumentPriorityText(ServiceDocumentPriorityText... entity)
      Adds elements to the list of associated ServiceDocumentPriorityText entities. This corresponds to the OData navigation property _ServiceDocumentPriorityText.

      If the navigation property _ServiceDocumentPriorityText of a queried ServiceDocumentPriority 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 ServiceDocumentPriorityText entities.
    • builder

    • getServiceDocumentPriority

      @Nullable public String getServiceDocumentPriority()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ServiceDocumentPriority

      Returns:
      Appointment priority
    • getServiceDocumentPriorityName

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

      Original property name from the Odata EDM: ServiceDocumentPriorityName

      Returns:
      Description
    • toString

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

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

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

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

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