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

public class DocumentDef extends VdmEntity<DocumentDef> implements VdmEntitySet
Statutory Reporting Document Definition

Original entity name from the Odata EDM: DocumentDef_Type

  • Field Details

  • Constructor Details

    • DocumentDef

      public DocumentDef()
    • DocumentDef

      public DocumentDef(@Nullable String statryRptDef, @Nullable String statryRptDocumentID, @Nullable ReportDef to_ReportDef)
  • Method Details

    • getType

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

      public void setStatryRptDef(@Nullable String statryRptDef)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptDef

      Parameters:
      statryRptDef - Report Definition
    • setStatryRptDocumentID

      public void setStatryRptDocumentID(@Nullable String statryRptDocumentID)
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptDocumentID

      Parameters:
      statryRptDocumentID - Document ID
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity DocumentDef 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 _ReportDef is already loaded, the result will contain the ReportDef entity. If not, an Option with result state empty is returned.
    • setReportDef

      public void setReportDef(ReportDef value)
      Overwrites the associated ReportDef entity for the loaded navigation property _ReportDef.
      Parameters:
      value - New ReportDef entity.
    • builder

      @Nonnull public static DocumentDef.DocumentDefBuilder builder()
    • getStatryRptDef

      @Nullable public String getStatryRptDef()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptDef

      Returns:
      Report Definition
    • getStatryRptDocumentID

      @Nullable public String getStatryRptDocumentID()
      (Key Field) Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: StatryRptDocumentID

      Returns:
      Document ID
    • toString

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

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

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

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

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