public class ProductVariantBuilder extends Object implements io.vrap.rmf.base.client.Builder<ProductVariant>
ProductVariant productVariant = ProductVariant.builder()
.product(productBuilder -> productBuilder)
.staged(true)
.variantId(0.3)
.build()
| Constructor and Description |
|---|
ProductVariantBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ProductVariant |
build() |
ProductVariant |
buildUnchecked()
builds ProductVariant without checking for non null required values
|
ProductReference |
getProduct() |
Boolean |
getStaged() |
Integer |
getVariantId() |
static ProductVariantBuilder |
of() |
static ProductVariantBuilder |
of(ProductVariant template) |
ProductVariantBuilder |
product(Function<ProductReferenceBuilder,ProductReferenceBuilder> builder)
The product that contains this variant.
|
ProductVariantBuilder |
product(ProductReference product)
The product that contains this variant.
|
ProductVariantBuilder |
staged(Boolean staged)
The state of the product variant.
|
ProductVariantBuilder |
variantId(Integer variantId)
The id of the product variant.
|
public ProductVariantBuilder()
public ProductVariantBuilder product(Function<ProductReferenceBuilder,ProductReferenceBuilder> builder)
The product that contains this variant.
public ProductVariantBuilder product(ProductReference product)
The product that contains this variant.
public ProductVariantBuilder staged(Boolean staged)
The state of the product variant.
public ProductVariantBuilder variantId(Integer variantId)
The id of the product variant.
public ProductReference getProduct()
public Integer getVariantId()
public ProductVariant build()
build in interface io.vrap.rmf.base.client.Builder<ProductVariant>public ProductVariant buildUnchecked()
public static ProductVariantBuilder of()
public static ProductVariantBuilder of(ProductVariant template)