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
Constructors -
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."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) Error-specific additional fields.
-
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) - Parameters:
builder- function to build the product value- Returns:
- Builder
-
withProduct
public ProductAssignmentMissingErrorBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) - Parameters:
builder- function to build the product value- Returns:
- Builder
-
product
- 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
- Returns:
- product
-
build
builds ProductAssignmentMissingError with checking for non-null required values- Specified by:
buildin 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
-