Class EditPreviewFailedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.EditPreviewFailedErrorBuilder
- All Implemented Interfaces:
Builder<EditPreviewFailedError>
public class EditPreviewFailedErrorBuilder
extends Object
implements Builder<EditPreviewFailedError>
EditPreviewFailedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
EditPreviewFailedError editPreviewFailedError = EditPreviewFailedError.builder()
.message("{message}")
.result(resultBuilder -> resultBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds EditPreviewFailedError with checking for non-null required valuesbuilds EditPreviewFailedError without checking for non-null required values"Error while applying staged actions.
State of the OrderEdit where thestagedActions
cannot be applied to the Order.Error-specific additional fields."Error while applying staged actions.
of()
factory method for an instance of EditPreviewFailedErrorBuilderof
(EditPreviewFailedError template) create builder for EditPreviewFailedError instanceresult
(OrderEditPreviewFailure result) State of the OrderEdit where thestagedActions
cannot be applied to the Order.State of the OrderEdit where thestagedActions
cannot be applied to the Order.Error-specific additional fields.State of the OrderEdit where thestagedActions
cannot be applied to the Order.
-
Constructor Details
-
EditPreviewFailedErrorBuilder
public EditPreviewFailedErrorBuilder()
-
-
Method Details
-
message
"Error while applying staged actions. ShippingMethods could not be determined."
- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
result
public EditPreviewFailedErrorBuilder result(Function<OrderEditPreviewFailureBuilder, OrderEditPreviewFailureBuilder> builder) State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Parameters:
builder
- function to build the result value- Returns:
- Builder
-
withResult
public EditPreviewFailedErrorBuilder withResult(Function<OrderEditPreviewFailureBuilder, OrderEditPreviewFailure> builder) State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Parameters:
builder
- function to build the result value- Returns:
- Builder
-
result
State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Parameters:
result
- value to be set- Returns:
- Builder
-
getMessage
"Error while applying staged actions. ShippingMethods could not be determined."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getResult
State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Returns:
- result
-
build
builds EditPreviewFailedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<EditPreviewFailedError>
- Returns:
- EditPreviewFailedError
-
buildUnchecked
builds EditPreviewFailedError without checking for non-null required values- Returns:
- EditPreviewFailedError
-
of
factory method for an instance of EditPreviewFailedErrorBuilder- Returns:
- builder
-
of
create builder for EditPreviewFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-