Class ImportOperationStatusBuilder
java.lang.Object
com.commercetools.importapi.models.importoperations.ImportOperationStatusBuilder
- All Implemented Interfaces:
Builder<ImportOperationStatus>
ImportOperationStatusBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImportOperationStatus importOperationStatus = ImportOperationStatus.builder()
.state(ImportOperationState.PROCESSING)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ImportOperationStatus with checking for non-null required valuesbuilds ImportOperationStatus without checking for non-null required valueserrors
(ErrorObject... errors) The validation errors for the ImportOperation.errors
(List<ErrorObject> errors) The validation errors for the ImportOperation.The validation errors for the ImportOperation.The ID of the ImportOperation.getState()
The validation state of the ImportOperation.static ImportOperationStatusBuilder
of()
factory method for an instance of ImportOperationStatusBuilderstatic ImportOperationStatusBuilder
of
(ImportOperationStatus template) create builder for ImportOperationStatus instanceoperationId
(String operationId) The ID of the ImportOperation.plusErrors
(ErrorObject... errors) The validation errors for the ImportOperation.plusErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) The validation errors for the ImportOperation.state
(ImportOperationState state) The validation state of the ImportOperation.withErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) The validation errors for the ImportOperation.
-
Constructor Details
-
ImportOperationStatusBuilder
public ImportOperationStatusBuilder()
-
-
Method Details
-
operationId
The ID of the ImportOperation.
- Parameters:
operationId
- value to be set- Returns:
- Builder
-
state
The validation state of the ImportOperation.
- Parameters:
state
- value to be set- Returns:
- Builder
-
errors
The validation errors for the ImportOperation. See Errors.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
errors
The validation errors for the ImportOperation. See Errors.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
The validation errors for the ImportOperation. See Errors.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
public ImportOperationStatusBuilder plusErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) The validation errors for the ImportOperation. See Errors.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
withErrors
public ImportOperationStatusBuilder withErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) The validation errors for the ImportOperation. See Errors.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
getOperationId
The ID of the ImportOperation.
- Returns:
- operationId
-
getState
The validation state of the ImportOperation.
- Returns:
- state
-
getErrors
The validation errors for the ImportOperation. See Errors.
- Returns:
- errors
-
build
builds ImportOperationStatus with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportOperationStatus>
- Returns:
- ImportOperationStatus
-
buildUnchecked
builds ImportOperationStatus without checking for non-null required values- Returns:
- ImportOperationStatus
-
of
factory method for an instance of ImportOperationStatusBuilder- Returns:
- builder
-
of
create builder for ImportOperationStatus instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-