Package com.collibra.dgc.core.api.model.instance

# Interface Attachment

All Superinterfaces:
  `Entity`, `Resource`, `Serializable`

public interface Attachment extends Resource
Represents an attachment

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ResourceReference`
  `getBaseResource()`
  Returns the reference to the base resource (resourceDiscriminator: "Community", "Domain", "User", "Asset", "Role", "ValidationRule", "Workflow") the file is attached to.
  `FileReference`
  `getFile()`
  Returns the reference to the file contained by this attachment.

  ### Methods inherited from interface Entity

  `getId, setId`

  ### Methods inherited from interface Resource

  `getCreatedBy, getCreatedOn, getLastModifiedBy, getLastModifiedOn, getResourceType, isSystem`

- ## Method Details

  - ### getBaseResource

    ResourceReference getBaseResource()
    Returns the reference to the base resource (resourceDiscriminator: "Community", "Domain", "User", "Asset", "Role", "ValidationRule", "Workflow") the file is attached to.
    Returns:
      the reference to the base resource the file is attached to

  - ### getFile

    FileReference getFile()
    Returns the reference to the file contained by this attachment.
    Returns:
      the reference to the file contained by this attachment