Class LockedFieldErrorBuilder
java.lang.Object
com.commercetools.api.models.error.LockedFieldErrorBuilder
- All Implemented Interfaces:
Builder<LockedFieldError>
LockedFieldErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LockedFieldError lockedFieldError = LockedFieldError.builder()
.message("{message}")
.field("{field}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds LockedFieldError with checking for non-null required valuesbuilds LockedFieldError without checking for non-null required valuesField that is currently locked.getField()
Field that is currently locked."'$field' is locked by another request.
Error-specific additional fields."'$field' is locked by another request.
static LockedFieldErrorBuilder
of()
factory method for an instance of LockedFieldErrorBuilderstatic LockedFieldErrorBuilder
of
(LockedFieldError template) create builder for LockedFieldError instanceError-specific additional fields.
-
Constructor Details
-
LockedFieldErrorBuilder
public LockedFieldErrorBuilder()
-
-
Method Details
-
message
"'$field' is locked by another request. Please try again later."
- 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
-
field
Field that is currently locked.
- Parameters:
field
- value to be set- Returns:
- Builder
-
getMessage
"'$field' is locked by another request. Please try again later."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getField
Field that is currently locked.
- Returns:
- field
-
build
builds LockedFieldError with checking for non-null required values- Specified by:
build
in interfaceBuilder<LockedFieldError>
- Returns:
- LockedFieldError
-
buildUnchecked
builds LockedFieldError without checking for non-null required values- Returns:
- LockedFieldError
-
of
factory method for an instance of LockedFieldErrorBuilder- Returns:
- builder
-
of
create builder for LockedFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-