java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<SAPObjectDocument>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.attachment.SAPObjectDocument

public class SAPObjectDocument extends VdmEntity<SAPObjectDocument>
Harmonized Document Types

Original entity name from the Odata EDM: SAPObjectDocumentType

  • Field Details

    • ALL_FIELDS

      public static final SAPObjectDocumentSelectable ALL_FIELDS
      Selector for all available fields of SAPObjectDocument.
    • SAP_OBJECT_TYPE

      public static final SAPObjectDocumentField<String> SAP_OBJECT_TYPE
      Use with available fluent helpers to apply the SAPObjectType field to query operations.
    • SAP_OBJECT_NODE_TYPE

      public static final SAPObjectDocumentField<String> SAP_OBJECT_NODE_TYPE
      Use with available fluent helpers to apply the SAPObjectNodeType field to query operations.
    • HARMONIZED_DOCUMENT_TYPE

      public static final SAPObjectDocumentField<String> HARMONIZED_DOCUMENT_TYPE
      Use with available fluent helpers to apply the HarmonizedDocumentType field to query operations.
    • DOCUMENT_TYPE_DESCRIPTION

      public static final SAPObjectDocumentField<String> DOCUMENT_TYPE_DESCRIPTION
      Use with available fluent helpers to apply the DocumentTypeDescription field to query operations.
    • ATTACHMENT_FRAMEWORK

      public static final SAPObjectDocumentField<String> ATTACHMENT_FRAMEWORK
      Use with available fluent helpers to apply the AttachmentFramework field to query operations.
    • DOCUMENT_TYPE_IS_DEFAULT

      public static final SAPObjectDocumentField<String> DOCUMENT_TYPE_IS_DEFAULT
      Use with available fluent helpers to apply the DocumentTypeIsDefault field to query operations.
  • Constructor Details

    • SAPObjectDocument

      public SAPObjectDocument()
    • SAPObjectDocument

      public SAPObjectDocument(@Nullable String sAPObjectType, @Nullable String sAPObjectNodeType, @Nullable String harmonizedDocumentType, @Nullable String documentTypeDescription, @Nullable String permittedArchiveLinkMimeType, @Nullable String attachmentFramework, @Nullable String documentTypeIsDefault)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: SAPObjectType

      Parameters:
      sAPObjectType - SAPObjectType
    • setSAPObjectNodeType

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

      Original property name from the Odata EDM: SAPObjectNodeType

      Parameters:
      sAPObjectNodeType - SAPObjectNodeType
    • setHarmonizedDocumentType

      public void setHarmonizedDocumentType(@Nullable String harmonizedDocumentType)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: HarmonizedDocumentType

      Parameters:
      harmonizedDocumentType - HarmonizedDocumentType
    • setDocumentTypeDescription

      public void setDocumentTypeDescription(@Nullable String documentTypeDescription)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: DocumentTypeDescription

      Parameters:
      documentTypeDescription - DocumentTypeDescription
    • setPermittedArchiveLinkMimeType

      public void setPermittedArchiveLinkMimeType(@Nullable String permittedArchiveLinkMimeType)
      Constraints: Not nullable, Maximum length: 128

      Original property name from the Odata EDM: PermittedArchiveLinkMimeType

      Parameters:
      permittedArchiveLinkMimeType - PermittedArchiveLinkMimeType
    • setAttachmentFramework

      public void setAttachmentFramework(@Nullable String attachmentFramework)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AttachmentFramework

      Parameters:
      attachmentFramework - AttachmentFramework
    • setDocumentTypeIsDefault

      public void setDocumentTypeIsDefault(@Nullable String documentTypeIsDefault)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: DocumentTypeIsDefault

      Parameters:
      documentTypeIsDefault - DocumentTypeIsDefault
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SAPObjectDocumentField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> SAPObjectDocumentField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<SAPObjectDocument>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<SAPObjectDocument>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<SAPObjectDocument>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<SAPObjectDocument>
    • builder

      @Nonnull public static SAPObjectDocument.SAPObjectDocumentBuilder builder()
    • getSAPObjectType

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

      Original property name from the Odata EDM: SAPObjectType

      Returns:
      SAPObjectType
    • getSAPObjectNodeType

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

      Original property name from the Odata EDM: SAPObjectNodeType

      Returns:
      SAPObjectNodeType
    • getHarmonizedDocumentType

      @Nullable public String getHarmonizedDocumentType()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: HarmonizedDocumentType

      Returns:
      HarmonizedDocumentType
    • getDocumentTypeDescription

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

      Original property name from the Odata EDM: DocumentTypeDescription

      Returns:
      DocumentTypeDescription
    • getPermittedArchiveLinkMimeType

      @Nullable public String getPermittedArchiveLinkMimeType()
      Constraints: Not nullable, Maximum length: 128

      Original property name from the Odata EDM: PermittedArchiveLinkMimeType

      Returns:
      PermittedArchiveLinkMimeType
    • getAttachmentFramework

      @Nullable public String getAttachmentFramework()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: AttachmentFramework

      Returns:
      AttachmentFramework
    • getDocumentTypeIsDefault

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

      Original property name from the Odata EDM: DocumentTypeIsDefault

      Returns:
      DocumentTypeIsDefault
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<SAPObjectDocument>