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 boolean
equals(Object o)
Instant
getCreatedAt()
Returns the timestamp of the process creation.Instant
getFinishedAt()
Returns the timestamp of the process end.String
getId()
Returns the id of this ingestion process.String
getIngestionConfigurationId()
Returns the ingestion configuration id.Variant
getMetadata()
Returns the process metadata.String
getResourceIngestionDefinitionId()
Returns the resource ingestion definition id.String
getStatus()
Returns the process status.String
getType()
Returns the process type.int
hashCode()
IngestionProcess
withFinishedAt(Instant newFinishedAt)
Returns a copy of this process with the specified finished at.IngestionProcess
withMetadata(Variant newMetadata)
Returns a copy of this process with the specified metadata set.IngestionProcess
withStatus(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 status
createdAt
- 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
-
-