Class OrderEditPreviewFailureBuilder
java.lang.Object
com.commercetools.api.models.order_edit.OrderEditPreviewFailureBuilder
- All Implemented Interfaces:
Builder<OrderEditPreviewFailure>
public class OrderEditPreviewFailureBuilder
extends Object
implements Builder<OrderEditPreviewFailure>
OrderEditPreviewFailureBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderEditPreviewFailure orderEditPreviewFailure = OrderEditPreviewFailure.builder()
.plusErrors(errorsBuilder -> errorsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderEditPreviewFailure with checking for non-null required valuesbuilds OrderEditPreviewFailure without checking for non-null required valueserrors
(ErrorObject... errors) Errors returned.errors
(List<ErrorObject> errors) Errors returned.Errors returned.of()
factory method for an instance of OrderEditPreviewFailureBuilderof
(OrderEditPreviewFailure template) create builder for OrderEditPreviewFailure instanceplusErrors
(ErrorObject... errors) Errors returned.plusErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors returned.withErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors returned.
-
Constructor Details
-
OrderEditPreviewFailureBuilder
public OrderEditPreviewFailureBuilder()
-
-
Method Details
-
errors
Errors returned.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
errors
Errors returned.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
Errors returned.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
public OrderEditPreviewFailureBuilder plusErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors returned.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
withErrors
public OrderEditPreviewFailureBuilder withErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors returned.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
getErrors
Errors returned.
- Returns:
- errors
-
build
builds OrderEditPreviewFailure with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderEditPreviewFailure>
- Returns:
- OrderEditPreviewFailure
-
buildUnchecked
builds OrderEditPreviewFailure without checking for non-null required values- Returns:
- OrderEditPreviewFailure
-
of
factory method for an instance of OrderEditPreviewFailureBuilder- Returns:
- builder
-
of
create builder for OrderEditPreviewFailure instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-