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
-
Method Summary
Modifier and TypeMethodDescriptionadd the value to the operationStatus using the builder functionbuild()
builds ImportResponse with checking for non-null required valuesbuilds ImportResponse without checking for non-null required valuesvalue of operationStatus}static ImportResponseBuilder
of()
factory method for an instance of ImportResponseBuilderstatic ImportResponseBuilder
of
(ImportResponse template) create builder for ImportResponse instanceoperationStatus
(ImportOperationStatus... operationStatus) set values to the operationStatusoperationStatus
(List<ImportOperationStatus> operationStatus) set value to the operationStatusplusOperationStatus
(ImportOperationStatus... operationStatus) add values to the operationStatusadd the value to the operationStatus using the builder functionset the value to the operationStatus using the builder functionset the value to the operationStatus using the builder function
-
Constructor Details
-
ImportResponseBuilder
public ImportResponseBuilder()
-
-
Method Details
-
operationStatus
set values to the operationStatus- Parameters:
operationStatus
- value to be set- Returns:
- Builder
-
operationStatus
set value to the operationStatus- Parameters:
operationStatus
- value to be set- Returns:
- Builder
-
plusOperationStatus
add values to the operationStatus- Parameters:
operationStatus
- value to be set- Returns:
- Builder
-
plusOperationStatus
public ImportResponseBuilder plusOperationStatus(Function<ImportOperationStatusBuilder, ImportOperationStatusBuilder> builder) add the value to the operationStatus using the builder function- Parameters:
builder
- function to build the operationStatus value- Returns:
- Builder
-
withOperationStatus
public ImportResponseBuilder withOperationStatus(Function<ImportOperationStatusBuilder, ImportOperationStatusBuilder> builder) set the value to the operationStatus using the builder function- Parameters:
builder
- function to build the operationStatus value- Returns:
- Builder
-
addOperationStatus
public ImportResponseBuilder addOperationStatus(Function<ImportOperationStatusBuilder, ImportOperationStatus> builder) add the value to the operationStatus using the builder function- Parameters:
builder
- function to build the operationStatus value- Returns:
- Builder
-
setOperationStatus
public ImportResponseBuilder setOperationStatus(Function<ImportOperationStatusBuilder, ImportOperationStatus> builder) set the value to the operationStatus using the builder function- Parameters:
builder
- function to build the operationStatus value- Returns:
- Builder
-
getOperationStatus
value of operationStatus}- 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
-