public interface ProductVariant
The product variant that contains the image.
| Modifier and Type | Method and Description |
|---|---|
static ProductVariantBuilder |
builder() |
static ProductVariantBuilder |
builder(ProductVariant template) |
@NotNull @Valid ProductReference |
getProduct()
The product that contains this variant.
|
@NotNull Boolean |
getStaged()
The state of the product variant.
|
@NotNull Integer |
getVariantId()
The id of the product variant.
|
static ProductVariant |
of() |
static ProductVariant |
of(ProductVariant template) |
void |
setProduct(ProductReference product) |
void |
setStaged(Boolean staged) |
void |
setVariantId(Integer variantId) |
default <T> T |
withProductVariant(Function<ProductVariant,T> helper) |
@NotNull @Valid @NotNull @Valid ProductReference getProduct()
The product that contains this variant.
@NotNull @NotNull Boolean getStaged()
The state of the product variant.
@NotNull @NotNull Integer getVariantId()
The id of the product variant.
void setProduct(ProductReference product)
void setStaged(Boolean staged)
void setVariantId(Integer variantId)
static ProductVariant of()
static ProductVariant of(ProductVariant template)
static ProductVariantBuilder builder()
static ProductVariantBuilder builder(ProductVariant template)
default <T> T withProductVariant(Function<ProductVariant,T> helper)