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.value of message}set the value to the messageof()
factory method for an instance of DuplicateAttributeValueErrorBuilderof
(DuplicateAttributeValueError template) create builder for DuplicateAttributeValueError instance
-
Constructor Details
-
DuplicateAttributeValueErrorBuilder
public DuplicateAttributeValueErrorBuilder()
-
-
Method Details
-
message
set the value to the message- 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
value of message}- 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
-