Class IngestionProcess
- java.lang.Object
-
- com.snowflake.connectors.application.ingestion.process.IngestionProcess
-
public class IngestionProcess extends Object
Representation of an ingestion process.
-
-
Constructor Summary
Constructors Constructor Description IngestionProcess(String id, String resourceIngestionDefinitionId, String ingestionConfigurationId, String type, String status, Instant createdAt, Instant finishedAt, Variant metadata)Creates a newIngestionProcess.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)InstantgetCreatedAt()Returns the timestamp of the process creation.InstantgetFinishedAt()Returns the timestamp of the process end.StringgetId()Returns the id of this ingestion process.StringgetIngestionConfigurationId()Returns the ingestion configuration id.VariantgetMetadata()Returns the process metadata.StringgetResourceIngestionDefinitionId()Returns the resource ingestion definition id.StringgetStatus()Returns the process status.StringgetType()Returns the process type.inthashCode()IngestionProcesswithFinishedAt(Instant newFinishedAt)Returns a copy of this process with the specified finished at.IngestionProcesswithMetadata(Variant newMetadata)Returns a copy of this process with the specified metadata set.IngestionProcesswithStatus(String newStatus)Returns a copy of this process with the specified status set.
-
-
-
Constructor Detail
-
IngestionProcess
public IngestionProcess(String id, String resourceIngestionDefinitionId, String ingestionConfigurationId, String type, String status, Instant createdAt, Instant finishedAt, Variant metadata)
Creates a newIngestionProcess.- Parameters:
id- ingestion process idresourceIngestionDefinitionId- resource ingestion definition idingestionConfigurationId- ingestion configuration idtype- process typestatus-process statuscreatedAt- timestamp of the process creationfinishedAt- timestamp of the process endmetadata- 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
-
-