Class InternalConstraintViolatedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.InternalConstraintViolatedErrorBuilder
- All Implemented Interfaces:
Builder<InternalConstraintViolatedError>
public class InternalConstraintViolatedErrorBuilder
extends Object
implements Builder<InternalConstraintViolatedError>
InternalConstraintViolatedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InternalConstraintViolatedError internalConstraintViolatedError = InternalConstraintViolatedError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds InternalConstraintViolatedError with checking for non-null required valuesbuilds InternalConstraintViolatedError without checking for non-null required valuesPlain text description of the constraints that were violated.Error-specific additional fields.Plain text description of the constraints that were violated.of()
factory method for an instance of InternalConstraintViolatedErrorBuilderof
(InternalConstraintViolatedError template) create builder for InternalConstraintViolatedError instanceError-specific additional fields.
-
Constructor Details
-
InternalConstraintViolatedErrorBuilder
public InternalConstraintViolatedErrorBuilder()
-
-
Method Details
-
message
Plain text description of the constraints that were violated.
- 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
-
getMessage
Plain text description of the constraints that were violated.
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds InternalConstraintViolatedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InternalConstraintViolatedError>
- Returns:
- InternalConstraintViolatedError
-
buildUnchecked
builds InternalConstraintViolatedError without checking for non-null required values- Returns:
- InternalConstraintViolatedError
-
of
factory method for an instance of InternalConstraintViolatedErrorBuilder- Returns:
- builder
-
of
create builder for InternalConstraintViolatedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-