Class DuplicateAttributeValueErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.DuplicateAttributeValueErrorBuilder
- All Implemented Interfaces:
Builder<DuplicateAttributeValueError>
public class DuplicateAttributeValueErrorBuilder
extends Object
implements Builder<DuplicateAttributeValueError>
DuplicateAttributeValueErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DuplicateAttributeValueError duplicateAttributeValueError = DuplicateAttributeValueError.builder()
.message("{message}")
.attribute(attributeBuilder -> attributeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe attribute in conflict.attribute
(Function<AttributeBuilder, Builder<? extends Attribute>> builder) The attribute in conflict.build()
builds DuplicateAttributeValueError with checking for non-null required valuesbuilds DuplicateAttributeValueError without checking for non-null required valuesThe attribute in conflict.A plain language description of the cause of an error.A plain language description of the cause of an error.of()
factory method for an instance of DuplicateAttributeValueErrorBuilderof
(DuplicateAttributeValueError template) create builder for DuplicateAttributeValueError instance
-
Constructor Details
-
DuplicateAttributeValueErrorBuilder
public DuplicateAttributeValueErrorBuilder()
-
-
Method Details
-
message
A plain language description of the cause of an error.
- Parameters:
message
- value to be set- Returns:
- Builder
-
attribute
The attribute in conflict.
- Parameters:
attribute
- value to be set- Returns:
- Builder
-
attribute
public DuplicateAttributeValueErrorBuilder attribute(Function<AttributeBuilder, Builder<? extends Attribute>> builder) The attribute in conflict.
- Parameters:
builder
- function to build the attribute value- Returns:
- Builder
-
getMessage
A plain language description of the cause of an error.
- Returns:
- message
-
getAttribute
The attribute in conflict.
- Returns:
- attribute
-
build
builds DuplicateAttributeValueError with checking for non-null required values- Specified by:
build
in interfaceBuilder<DuplicateAttributeValueError>
- Returns:
- DuplicateAttributeValueError
-
buildUnchecked
builds DuplicateAttributeValueError without checking for non-null required values- Returns:
- DuplicateAttributeValueError
-
of
factory method for an instance of DuplicateAttributeValueErrorBuilder- Returns:
- builder
-
of
create builder for DuplicateAttributeValueError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-