Class IngestionProcess


  • public class IngestionProcess
    extends Object
    Representation of an ingestion process.
    • Constructor Detail

      • IngestionProcess

        public IngestionProcess​(String id,
                                String resourceIngestionDefinitionId,
                                String ingestionConfigurationId,
                                String type,
                                String status,
                                Instant createdAt,
                                Instant finishedAt,
                                Variant metadata)
        Creates a new IngestionProcess.
        Parameters:
        id - ingestion process id
        resourceIngestionDefinitionId - resource ingestion definition id
        ingestionConfigurationId - ingestion configuration id
        type - process type
        status - process status
        createdAt - timestamp of the process creation
        finishedAt - timestamp of the process end
        metadata - additional process metadata
    • Method Detail

      • getId

        public String getId()
        Returns the id of this ingestion process.
        Returns:
        id of this ingestion process
      • getResourceIngestionDefinitionId

        public String getResourceIngestionDefinitionId()
        Returns the resource ingestion definition id.
        Returns:
        resource ingestion definition id
      • getIngestionConfigurationId

        public String getIngestionConfigurationId()
        Returns the ingestion configuration id.
        Returns:
        ingestion configuration id
      • getType

        public String getType()
        Returns the process type.
        Returns:
        process type
      • getStatus

        public String getStatus()
        Returns the process status.
        Returns:
        process status.
      • getCreatedAt

        public Instant getCreatedAt()
        Returns the timestamp of the process creation.
        Returns:
        timestamp of the process creation
      • getFinishedAt

        public Instant getFinishedAt()
        Returns the timestamp of the process end.
        Returns:
        timestamp of the process end
      • getMetadata

        public Variant getMetadata()
        Returns the process metadata.
        Returns:
        process metadata
      • withStatus

        public IngestionProcess withStatus​(String newStatus)
        Returns a copy of this process with the specified status set.
        Parameters:
        newStatus - new process status
        Returns:
        a copy of this process with the specified status set
      • withMetadata

        public IngestionProcess withMetadata​(Variant newMetadata)
        Returns a copy of this process with the specified metadata set.
        Parameters:
        newMetadata - new process metadata
        Returns:
        a copy of this process with the specified metadata set
      • withFinishedAt

        public IngestionProcess withFinishedAt​(Instant newFinishedAt)
        Returns a copy of this process with the specified finished at.
        Parameters:
        newFinishedAt - new process finished at date
        Returns:
        a copy of this process with the specified finished at
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object