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 valuesA plain language description of the cause of an error.The offending variant values.A plain language description of the cause of an error.of()
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
A plain language description of the cause of an error.
- 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
A plain language description of the cause of an error.
- 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
-