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

public class ServiceDocumentType extends VdmEntity<ServiceDocumentType> implements VdmEntitySet
Service Transaction Type

Original entity name from the Odata EDM: ServiceDocumentType_Type

  • Field Details

  • Constructor Details

    • ServiceDocumentType

      public ServiceDocumentType()
    • ServiceDocumentType

      public ServiceDocumentType(@Nullable String serviceDocumentType, @Nullable String serviceObjectType, @Nullable String businessObjectTypeName, @Nullable String serviceDocumentTypeName, List<ServiceDocumentTypeText> to_ServiceDocumentTypeText)
  • Method Details

    • getType

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

      public void setServiceDocumentType(@Nullable String serviceDocumentType)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ServiceDocumentType

      Parameters:
      serviceDocumentType - Business Transaction Type
    • setServiceObjectType

      public void setServiceObjectType(@Nullable String serviceObjectType)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ServiceObjectType

      Parameters:
      serviceObjectType - Leading Business Transaction Category
    • setBusinessObjectTypeName

      public void setBusinessObjectTypeName(@Nullable String businessObjectTypeName)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: BusinessObjectTypeName

      Parameters:
      businessObjectTypeName - Name
    • setServiceDocumentTypeName

      public void setServiceDocumentTypeName(@Nullable String serviceDocumentTypeName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ServiceDocumentTypeName

      Parameters:
      serviceDocumentTypeName - Description
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ServiceDocumentType 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 _ServiceDocumentTypeText is already loaded, the result will contain the ServiceDocumentTypeText entities. If not, an Option with result state empty is returned.
    • setServiceDocumentTypeText

      public void setServiceDocumentTypeText(@Nonnull List<ServiceDocumentTypeText> value)
      Overwrites the list of associated ServiceDocumentTypeText entities for the loaded navigation property _ServiceDocumentTypeText.

      If the navigation property _ServiceDocumentTypeText of a queried ServiceDocumentType 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 ServiceDocumentTypeText entities.
    • addServiceDocumentTypeText

      public void addServiceDocumentTypeText(ServiceDocumentTypeText... entity)
      Adds elements to the list of associated ServiceDocumentTypeText entities. This corresponds to the OData navigation property _ServiceDocumentTypeText.

      If the navigation property _ServiceDocumentTypeText of a queried ServiceDocumentType 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 ServiceDocumentTypeText entities.
    • builder

      @Nonnull public static ServiceDocumentType.ServiceDocumentTypeBuilder builder()
    • getServiceDocumentType

      @Nullable public String getServiceDocumentType()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ServiceDocumentType

      Returns:
      Business Transaction Type
    • getServiceObjectType

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

      Original property name from the Odata EDM: ServiceObjectType

      Returns:
      Leading Business Transaction Category
    • getBusinessObjectTypeName

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

      Original property name from the Odata EDM: BusinessObjectTypeName

      Returns:
      Name
    • getServiceDocumentTypeName

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

      Original property name from the Odata EDM: ServiceDocumentTypeName

      Returns:
      Description
    • toString

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

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

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

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

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