public class Attachment extends VdmMediaEntity<Attachment>
Attachment

Original entity name from the Odata EDM: Attachment

  • Field Details

    • ALL_FIELDS

      public static final AttachmentSelectable ALL_FIELDS
      Selector for all available fields of Attachment.
    • ATTACHMENT_DOCUMENT_UUID

      public static final AttachmentField<UUID> ATTACHMENT_DOCUMENT_UUID
      Use with available fluent helpers to apply the AttachmentDocumentUUID field to query operations.
    • MIME_TYPE

      public static final AttachmentField<String> MIME_TYPE
      Use with available fluent helpers to apply the MimeType field to query operations.
    • FILE_NAME

      public static final AttachmentField<String> FILE_NAME
      Use with available fluent helpers to apply the FileName field to query operations.
  • Constructor Details

    • Attachment

      public Attachment()
    • Attachment

      public Attachment(@Nullable UUID attachmentDocumentUUID, @Nullable String mimeType, @Nullable String fileName)
  • Method Details

    • getType

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

      public void setAttachmentDocumentUUID(@Nullable UUID attachmentDocumentUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: AttachmentDocumentUUID

      Parameters:
      attachmentDocumentUUID - Attachment Global Identification
    • setMimeType

      public void setMimeType(@Nullable String mimeType)
      Constraints: Not nullable, Maximum length: 128

      Original property name from the Odata EDM: MimeType

      Parameters:
      mimeType - Attachment MIME Type
    • setFileName

      public void setFileName(@Nullable String fileName)
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: FileName

      Parameters:
      fileName - Attachment File Name
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> AttachmentField<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> AttachmentField<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<Attachment>
    • setServicePathForFetch

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

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

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

      @Nonnull public static Attachment.AttachmentBuilder builder()
    • getAttachmentDocumentUUID

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

      Original property name from the Odata EDM: AttachmentDocumentUUID

      Returns:
      Attachment Global Identification
    • getMimeType

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

      Original property name from the Odata EDM: MimeType

      Returns:
      Attachment MIME Type
    • getFileName

      @Nullable public String getFileName()
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: FileName

      Returns:
      Attachment File Name
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmMediaEntity<Attachment>