Class DuplicateVariantValuesErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.DuplicateVariantValuesErrorBuilder
- All Implemented Interfaces:
Builder<DuplicateVariantValuesError>
public class DuplicateVariantValuesErrorBuilder
extends Object
implements Builder<DuplicateVariantValuesError>
DuplicateVariantValuesErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DuplicateVariantValuesError duplicateVariantValuesError = DuplicateVariantValuesError.builder()
.message("{message}")
.variantValues(variantValuesBuilder -> variantValuesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DuplicateVariantValuesError with checking for non-null required valuesbuilds DuplicateVariantValuesError without checking for non-null required valuesvalue of message}The offending variant values.set the value to the messageof()
factory method for an instance of DuplicateVariantValuesErrorBuilderof
(DuplicateVariantValuesError template) create builder for DuplicateVariantValuesError instancevariantValues
(VariantValues variantValues) The offending variant values.The offending variant values.The offending variant values.
-
Constructor Details
-
DuplicateVariantValuesErrorBuilder
public DuplicateVariantValuesErrorBuilder()
-
-
Method Details
-
message
set the value to the message- Parameters:
message
- value to be set- Returns:
- Builder
-
variantValues
public DuplicateVariantValuesErrorBuilder variantValues(Function<VariantValuesBuilder, VariantValuesBuilder> builder) The offending variant values.
- Parameters:
builder
- function to build the variantValues value- Returns:
- Builder
-
withVariantValues
public DuplicateVariantValuesErrorBuilder withVariantValues(Function<VariantValuesBuilder, VariantValues> builder) The offending variant values.
- Parameters:
builder
- function to build the variantValues value- Returns:
- Builder
-
variantValues
The offending variant values.
- Parameters:
variantValues
- value to be set- Returns:
- Builder
-
getMessage
value of message}- Returns:
- message
-
getVariantValues
The offending variant values.
- Returns:
- variantValues
-
build
builds DuplicateVariantValuesError with checking for non-null required values- Specified by:
build
in interfaceBuilder<DuplicateVariantValuesError>
- Returns:
- DuplicateVariantValuesError
-
buildUnchecked
builds DuplicateVariantValuesError without checking for non-null required values- Returns:
- DuplicateVariantValuesError
-
of
factory method for an instance of DuplicateVariantValuesErrorBuilder- Returns:
- builder
-
of
create builder for DuplicateVariantValuesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-