Package com.flagright.api.types
Class BatchCompletedDetails.Builder
- java.lang.Object
-
- com.flagright.api.types.BatchCompletedDetails.Builder
-
- All Implemented Interfaces:
BatchCompletedDetails._FinalStage,BatchCompletedDetails.BatchIdStage,BatchCompletedDetails.CompletedAtStage,BatchCompletedDetails.CreatedAtStage,BatchCompletedDetails.ProcessedCountStage,BatchCompletedDetails.TotalCountStage,BatchCompletedDetails.TypeStage
- Enclosing class:
- BatchCompletedDetails
public static final class BatchCompletedDetails.Builder extends java.lang.Object implements BatchCompletedDetails.BatchIdStage, BatchCompletedDetails.TypeStage, BatchCompletedDetails.TotalCountStage, BatchCompletedDetails.ProcessedCountStage, BatchCompletedDetails.CreatedAtStage, BatchCompletedDetails.CompletedAtStage, BatchCompletedDetails._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchCompletedDetails.TypeStagebatchId(java.lang.String batchId)Unique identifier of the batchBatchCompletedDetailsbuild()BatchCompletedDetails._FinalStagecompletedAt(int completedAt)Timestamp when the batch was completed (in milliseconds)BatchCompletedDetails.CompletedAtStagecreatedAt(int createdAt)Timestamp when the batch was created (in milliseconds)BatchCompletedDetails.Builderfrom(BatchCompletedDetails other)BatchCompletedDetails.CreatedAtStageprocessedCount(int processedCount)Number of records that were processedBatchCompletedDetails.ProcessedCountStagetotalCount(int totalCount)Total number of successfully validated records in the batchBatchCompletedDetails.TotalCountStagetype(BatchCompletedDetailsType type)Type of batch entity
-
-
-
Method Detail
-
from
public BatchCompletedDetails.Builder from(BatchCompletedDetails other)
- Specified by:
fromin interfaceBatchCompletedDetails.BatchIdStage
-
batchId
public BatchCompletedDetails.TypeStage batchId(@NotNull java.lang.String batchId)
Unique identifier of the batch
- Specified by:
batchIdin interfaceBatchCompletedDetails.BatchIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public BatchCompletedDetails.TotalCountStage type(@NotNull BatchCompletedDetailsType type)
Type of batch entity
- Specified by:
typein interfaceBatchCompletedDetails.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalCount
public BatchCompletedDetails.ProcessedCountStage totalCount(int totalCount)
Total number of successfully validated records in the batch
- Specified by:
totalCountin interfaceBatchCompletedDetails.TotalCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processedCount
public BatchCompletedDetails.CreatedAtStage processedCount(int processedCount)
Number of records that were processed
- Specified by:
processedCountin interfaceBatchCompletedDetails.ProcessedCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public BatchCompletedDetails.CompletedAtStage createdAt(int createdAt)
Timestamp when the batch was created (in milliseconds)
- Specified by:
createdAtin interfaceBatchCompletedDetails.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
completedAt
public BatchCompletedDetails._FinalStage completedAt(int completedAt)
Timestamp when the batch was completed (in milliseconds)
- Specified by:
completedAtin interfaceBatchCompletedDetails.CompletedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public BatchCompletedDetails build()
- Specified by:
buildin interfaceBatchCompletedDetails._FinalStage
-
-