Class VariantBulkUpdateFailResultBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantBulkUpdateFailResultBuilder
- All Implemented Interfaces:
Builder<VariantBulkUpdateFailResult>
public class VariantBulkUpdateFailResultBuilder
extends Object
implements Builder<VariantBulkUpdateFailResult>
VariantBulkUpdateFailResultBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantBulkUpdateFailResult variantBulkUpdateFailResult = VariantBulkUpdateFailResult.builder()
.plusErrors(errorsBuilder -> errorsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds VariantBulkUpdateFailResult with checking for non-null required valuesbuilds VariantBulkUpdateFailResult without checking for non-null required valueserrors(ErrorObject... errors) Errors that caused the update to fail for this Variant.errors(List<ErrorObject> errors) Errors that caused the update to fail for this Variant.Errors that caused the update to fail for this Variant.getId()Unique identifier of the Variant from the request.getKey()User-defined unique identifier of the Variant from the request.Unique identifier of the Variant from the request.User-defined unique identifier of the Variant from the request.of()factory method for an instance of VariantBulkUpdateFailResultBuilderof(VariantBulkUpdateFailResult template) create builder for VariantBulkUpdateFailResult instanceplusErrors(ErrorObject... errors) Errors that caused the update to fail for this Variant.plusErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors that caused the update to fail for this Variant.withErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors that caused the update to fail for this Variant.
-
Constructor Details
-
VariantBulkUpdateFailResultBuilder
public VariantBulkUpdateFailResultBuilder()
-
-
Method Details
-
id
Unique identifier of the Variant from the request. Present when the Variant was identified by
id.- Parameters:
id- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the Variant from the request. Present when the Variant was identified by
key.- Parameters:
key- value to be set- Returns:
- Builder
-
errors
Errors that caused the update to fail for this Variant.
- Parameters:
errors- value to be set- Returns:
- Builder
-
errors
Errors that caused the update to fail for this Variant.
- Parameters:
errors- value to be set- Returns:
- Builder
-
plusErrors
Errors that caused the update to fail for this Variant.
- Parameters:
errors- value to be set- Returns:
- Builder
-
plusErrors
public VariantBulkUpdateFailResultBuilder plusErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors that caused the update to fail for this Variant.
- Parameters:
builder- function to build the errors value- Returns:
- Builder
-
withErrors
public VariantBulkUpdateFailResultBuilder withErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors that caused the update to fail for this Variant.
- Parameters:
builder- function to build the errors value- Returns:
- Builder
-
getId
Unique identifier of the Variant from the request. Present when the Variant was identified by
id.- Returns:
- id
-
getKey
User-defined unique identifier of the Variant from the request. Present when the Variant was identified by
key.- Returns:
- key
-
getErrors
Errors that caused the update to fail for this Variant.
- Returns:
- errors
-
build
builds VariantBulkUpdateFailResult with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantBulkUpdateFailResult>- Returns:
- VariantBulkUpdateFailResult
-
buildUnchecked
builds VariantBulkUpdateFailResult without checking for non-null required values- Returns:
- VariantBulkUpdateFailResult
-
of
factory method for an instance of VariantBulkUpdateFailResultBuilder- Returns:
- builder
-
of
create builder for VariantBulkUpdateFailResult instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-