public interface ProductVariant
The product variant that contains the image.
ProductVariant productVariant = ProductVariant.builder()
.product(productBuilder -> productBuilder)
.staged(true)
.variantId(0.3)
.build()
| 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) |
static com.fasterxml.jackson.core.type.TypeReference<ProductVariant> |
typeReference() |
default <T> T |
withProductVariant(Function<ProductVariant,T> helper) |
@NotNull @Valid @NotNull @Valid ProductReference getProduct()
The product that contains this variant.
@NotNull @NotNull Integer getVariantId()
The id of the product variant.
void setProduct(ProductReference product)
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)
static com.fasterxml.jackson.core.type.TypeReference<ProductVariant> typeReference()