public interface MissingAttributes
| Modifier and Type | Method and Description |
|---|---|
static MissingAttributesBuilder |
builder() |
static MissingAttributesBuilder |
builder(MissingAttributes template) |
@Valid AttributeCount |
getAttributeCount() |
@Valid AttributeCoverage |
getAttributeCoverage() |
List<String> |
getMissingAttributeNames()
The names of the attributes of the product type that the variant is missing, sorted by attribute importance in descending order.
|
@NotNull List<String> |
getMissingAttributeValues()
The names of the attributes of the product type that the variant is missing, sorted by attribute importance in descending order.
|
@NotNull @Valid ProductReference |
getProduct() |
@NotNull @Valid ProductTypeReference |
getProductType() |
@NotNull Integer |
getVariantId()
ID of a ProductVariant.
|
static MissingAttributes |
of() |
static MissingAttributes |
of(MissingAttributes template) |
void |
setAttributeCount(AttributeCount attributeCount) |
void |
setAttributeCoverage(AttributeCoverage attributeCoverage) |
void |
setMissingAttributeNames(List<String> missingAttributeNames) |
void |
setMissingAttributeNames(String... missingAttributeNames) |
void |
setMissingAttributeValues(List<String> missingAttributeValues) |
void |
setMissingAttributeValues(String... missingAttributeValues) |
void |
setProduct(ProductReference product) |
void |
setProductType(ProductTypeReference productType) |
void |
setVariantId(Integer variantId) |
default <T> T |
withMissingAttributes(Function<MissingAttributes,T> helper) |
@NotNull @Valid @NotNull @Valid ProductReference getProduct()
@NotNull @Valid @NotNull @Valid ProductTypeReference getProductType()
@NotNull @NotNull Integer getVariantId()
ID of a ProductVariant.
@NotNull @NotNull List<String> getMissingAttributeValues()
The names of the attributes of the product type that the variant is missing, sorted by attribute importance in descending order.
List<String> getMissingAttributeNames()
The names of the attributes of the product type that the variant is missing, sorted by attribute importance in descending order.
@Valid @Valid AttributeCount getAttributeCount()
@Valid @Valid AttributeCoverage getAttributeCoverage()
void setProduct(ProductReference product)
void setProductType(ProductTypeReference productType)
void setVariantId(Integer variantId)
void setMissingAttributeValues(String... missingAttributeValues)
void setMissingAttributeNames(String... missingAttributeNames)
void setAttributeCount(AttributeCount attributeCount)
void setAttributeCoverage(AttributeCoverage attributeCoverage)
static MissingAttributes of()
static MissingAttributes of(MissingAttributes template)
static MissingAttributesBuilder builder()
static MissingAttributesBuilder builder(MissingAttributes template)
default <T> T withMissingAttributes(Function<MissingAttributes,T> helper)