Class ProductAssignmentMissingErrorBuilder
- All Implemented Interfaces:
Builder<ProductAssignmentMissingError>
Example to create an instance using the builder pattern
ProductAssignmentMissingError productAssignmentMissingError = ProductAssignmentMissingError.builder()
.message("{message}")
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds ProductAssignmentMissingError with checking for non-null required valuesbuilds ProductAssignmentMissingError without checking for non-null required valuesFor Product Selection of mode Individual, the message is:"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."
For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."
Reference to the Product for which the error was returned.Error-specific additional fields.For Product Selection of mode Individual, the message is:"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."
For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."
of()
factory method for an instance of ProductAssignmentMissingErrorBuilderof
(ProductAssignmentMissingError template) create builder for ProductAssignmentMissingError instanceproduct
(ProductReference product) Reference to the Product for which the error was returned.Reference to the Product for which the error was returned.Error-specific additional fields.Reference to the Product for which the error was returned.
-
Constructor Details
-
ProductAssignmentMissingErrorBuilder
public ProductAssignmentMissingErrorBuilder()
-
-
Method Details
-
message
For Product Selection of mode Individual, the message is:
"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."
For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."
- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
product
public ProductAssignmentMissingErrorBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to the Product for which the error was returned.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductAssignmentMissingErrorBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to the Product for which the error was returned.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Reference to the Product for which the error was returned.
- Parameters:
product
- value to be set- Returns:
- Builder
-
getMessage
For Product Selection of mode Individual, the message is:
"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."
For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getProduct
Reference to the Product for which the error was returned.
- Returns:
- product
-
build
builds ProductAssignmentMissingError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductAssignmentMissingError>
- Returns:
- ProductAssignmentMissingError
-
buildUnchecked
builds ProductAssignmentMissingError without checking for non-null required values- Returns:
- ProductAssignmentMissingError
-
of
factory method for an instance of ProductAssignmentMissingErrorBuilder- Returns:
- builder
-
of
create builder for ProductAssignmentMissingError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-