Class ImportResponseBuilder
java.lang.Object
com.commercetools.importapi.models.importrequests.ImportResponseBuilder
- All Implemented Interfaces:
Builder<ImportResponse>
ImportResponseBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImportResponse importResponse = ImportResponse.builder()
.plusOperationStatus(operationStatusBuilder -> operationStatusBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe identifiers and status of the ImportOperations created by the ImportRequest.build()
builds ImportResponse with checking for non-null required valuesbuilds ImportResponse without checking for non-null required valuesThe identifiers and status of the ImportOperations created by the ImportRequest.static ImportResponseBuilder
of()
factory method for an instance of ImportResponseBuilderstatic ImportResponseBuilder
of
(ImportResponse template) create builder for ImportResponse instanceoperationStatus
(ImportOperationStatus... operationStatus) The identifiers and status of the ImportOperations created by the ImportRequest.operationStatus
(List<ImportOperationStatus> operationStatus) The identifiers and status of the ImportOperations created by the ImportRequest.plusOperationStatus
(ImportOperationStatus... operationStatus) The identifiers and status of the ImportOperations created by the ImportRequest.The identifiers and status of the ImportOperations created by the ImportRequest.The identifiers and status of the ImportOperations created by the ImportRequest.The identifiers and status of the ImportOperations created by the ImportRequest.
-
Constructor Details
-
ImportResponseBuilder
public ImportResponseBuilder()
-
-
Method Details
-
operationStatus
The identifiers and status of the ImportOperations created by the ImportRequest.
- Parameters:
operationStatus
- value to be set- Returns:
- Builder
-
operationStatus
The identifiers and status of the ImportOperations created by the ImportRequest.
- Parameters:
operationStatus
- value to be set- Returns:
- Builder
-
plusOperationStatus
The identifiers and status of the ImportOperations created by the ImportRequest.
- Parameters:
operationStatus
- value to be set- Returns:
- Builder
-
plusOperationStatus
public ImportResponseBuilder plusOperationStatus(Function<ImportOperationStatusBuilder, ImportOperationStatusBuilder> builder) The identifiers and status of the ImportOperations created by the ImportRequest.
- Parameters:
builder
- function to build the operationStatus value- Returns:
- Builder
-
withOperationStatus
public ImportResponseBuilder withOperationStatus(Function<ImportOperationStatusBuilder, ImportOperationStatusBuilder> builder) The identifiers and status of the ImportOperations created by the ImportRequest.
- Parameters:
builder
- function to build the operationStatus value- Returns:
- Builder
-
addOperationStatus
public ImportResponseBuilder addOperationStatus(Function<ImportOperationStatusBuilder, ImportOperationStatus> builder) The identifiers and status of the ImportOperations created by the ImportRequest.
- Parameters:
builder
- function to build the operationStatus value- Returns:
- Builder
-
setOperationStatus
public ImportResponseBuilder setOperationStatus(Function<ImportOperationStatusBuilder, ImportOperationStatus> builder) The identifiers and status of the ImportOperations created by the ImportRequest.
- Parameters:
builder
- function to build the operationStatus value- Returns:
- Builder
-
getOperationStatus
The identifiers and status of the ImportOperations created by the ImportRequest.
- Returns:
- operationStatus
-
build
builds ImportResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportResponse>
- Returns:
- ImportResponse
-
buildUnchecked
builds ImportResponse without checking for non-null required values- Returns:
- ImportResponse
-
of
factory method for an instance of ImportResponseBuilder- Returns:
- builder
-
of
create builder for ImportResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-