Package com.flagright.api.types
Class BatchResponse.Builder
- java.lang.Object
-
- com.flagright.api.types.BatchResponse.Builder
-
- All Implemented Interfaces:
BatchResponse._FinalStage,BatchResponse.BatchIdStage,BatchResponse.FailedStage,BatchResponse.StatusStage,BatchResponse.SuccessfulStage
- Enclosing class:
- BatchResponse
public static final class BatchResponse.Builder extends java.lang.Object implements BatchResponse.StatusStage, BatchResponse.BatchIdStage, BatchResponse.SuccessfulStage, BatchResponse.FailedStage, BatchResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchResponse.SuccessfulStagebatchId(java.lang.String batchId)BatchResponsebuild()BatchResponse._FinalStagefailed(double failed)BatchResponse._FinalStagefailedRecords(java.util.List<BatchResponseFailedRecord> failedRecords)BatchResponse._FinalStagefailedRecords(java.util.Optional<java.util.List<BatchResponseFailedRecord>> failedRecords)BatchResponse.Builderfrom(BatchResponse other)BatchResponse._FinalStagemessage(java.lang.String message)BatchResponse._FinalStagemessage(java.util.Optional<java.lang.String> message)BatchResponse.BatchIdStagestatus(BatchResponseStatus status)BatchResponse.FailedStagesuccessful(double successful)
-
-
-
Method Detail
-
from
public BatchResponse.Builder from(BatchResponse other)
- Specified by:
fromin interfaceBatchResponse.StatusStage
-
status
public BatchResponse.BatchIdStage status(@NotNull BatchResponseStatus status)
- Specified by:
statusin interfaceBatchResponse.StatusStage
-
batchId
public BatchResponse.SuccessfulStage batchId(@NotNull java.lang.String batchId)
- Specified by:
batchIdin interfaceBatchResponse.BatchIdStage
-
successful
public BatchResponse.FailedStage successful(double successful)
- Specified by:
successfulin interfaceBatchResponse.SuccessfulStage
-
failed
public BatchResponse._FinalStage failed(double failed)
- Specified by:
failedin interfaceBatchResponse.FailedStage
-
message
public BatchResponse._FinalStage message(java.lang.String message)
- Specified by:
messagein interfaceBatchResponse._FinalStage
-
message
public BatchResponse._FinalStage message(java.util.Optional<java.lang.String> message)
- Specified by:
messagein interfaceBatchResponse._FinalStage
-
failedRecords
public BatchResponse._FinalStage failedRecords(java.util.List<BatchResponseFailedRecord> failedRecords)
- Specified by:
failedRecordsin interfaceBatchResponse._FinalStage
-
failedRecords
public BatchResponse._FinalStage failedRecords(java.util.Optional<java.util.List<BatchResponseFailedRecord>> failedRecords)
- Specified by:
failedRecordsin interfaceBatchResponse._FinalStage
-
build
public BatchResponse build()
- Specified by:
buildin interfaceBatchResponse._FinalStage
-
-