Class DuplicateAttributeValuesErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.DuplicateAttributeValuesErrorBuilder
- All Implemented Interfaces:
Builder<DuplicateAttributeValuesError>
public class DuplicateAttributeValuesErrorBuilder
extends Object
implements Builder<DuplicateAttributeValuesError>
DuplicateAttributeValuesErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DuplicateAttributeValuesError duplicateAttributeValuesError = DuplicateAttributeValuesError.builder()
.message("{message}")
.plusAttributes(attributesBuilder -> attributesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributes
(Attribute... attributes) set values to the attributesattributes
(List<Attribute> attributes) set value to the attributesbuild()
builds DuplicateAttributeValuesError with checking for non-null required valuesbuilds DuplicateAttributeValuesError without checking for non-null required valuesvalue of attributes}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 DuplicateAttributeValuesErrorBuilderof
(DuplicateAttributeValuesError template) create builder for DuplicateAttributeValuesError instanceplusAttributes
(Attribute... attributes) add values to the attributesplusAttributes
(Function<AttributeBuilder, Builder<? extends Attribute>> builder) add a value to the attributes using the builder functionwithAttributes
(Function<AttributeBuilder, Builder<? extends Attribute>> builder) set the value to the attributes using the builder function
-
Constructor Details
-
DuplicateAttributeValuesErrorBuilder
public DuplicateAttributeValuesErrorBuilder()
-
-
Method Details
-
message
A plain language description of the cause of an error.
- Parameters:
message
- value to be set- Returns:
- Builder
-
attributes
set values to the attributes- Parameters:
attributes
- value to be set- Returns:
- Builder
-
attributes
set value to the attributes- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
add values to the attributes- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public DuplicateAttributeValuesErrorBuilder plusAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) add a value to the attributes using the builder function- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
withAttributes
public DuplicateAttributeValuesErrorBuilder withAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) set the value to the attributes using the builder function- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
getMessage
A plain language description of the cause of an error.
- Returns:
- message
-
getAttributes
value of attributes}- Returns:
- attributes
-
build
builds DuplicateAttributeValuesError with checking for non-null required values- Specified by:
build
in interfaceBuilder<DuplicateAttributeValuesError>
- Returns:
- DuplicateAttributeValuesError
-
buildUnchecked
builds DuplicateAttributeValuesError without checking for non-null required values- Returns:
- DuplicateAttributeValuesError
-
of
factory method for an instance of DuplicateAttributeValuesErrorBuilder- Returns:
- builder
-
of
create builder for DuplicateAttributeValuesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-