@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.products.ProductVariantDraft") public final class ProductVariantDraftDsl extends Base implements ProductVariantDraft
ProductVariantDraft
.Modifier and Type | Method and Description |
---|---|
List<AssetDraft> |
getAssets() |
List<AttributeDraft> |
getAttributes() |
List<Image> |
getImages() |
String |
getKey() |
List<PriceDraft> |
getPrices() |
String |
getSku() |
ProductVariantDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static ProductVariantDraftDsl |
of()
Creates a new object initialized with the given values.
|
static ProductVariantDraftDsl |
of(ProductVariantDraft template)
Creates a new object initialized with the fields of the template parameter.
|
ProductVariantDraftDsl |
withAssets(List<AssetDraft> assets) |
ProductVariantDraftDsl |
withAttributes(List<AttributeDraft> attributes) |
ProductVariantDraftDsl |
withImages(List<Image> images) |
ProductVariantDraftDsl |
withKey(String key) |
ProductVariantDraftDsl |
withPrices(List<PriceDraft> prices) |
ProductVariantDraftDsl |
withSku(String sku) |
@Nullable public List<AssetDraft> getAssets()
getAssets
in interface ProductVariantDraft
@Nullable public List<AttributeDraft> getAttributes()
getAttributes
in interface ProductVariantDraft
@Nullable public List<Image> getImages()
getImages
in interface ProductVariantDraft
@Nullable public String getKey()
getKey
in interface ProductVariantDraft
@Nullable public List<PriceDraft> getPrices()
getPrices
in interface ProductVariantDraft
@Nullable public String getSku()
getSku
in interface ProductVariantDraft
public ProductVariantDraftBuilder newBuilder()
public ProductVariantDraftDsl withAssets(@Nullable List<AssetDraft> assets)
public ProductVariantDraftDsl withAttributes(@Nullable List<AttributeDraft> attributes)
public ProductVariantDraftDsl withImages(@Nullable List<Image> images)
public ProductVariantDraftDsl withKey(@Nullable String key)
public ProductVariantDraftDsl withPrices(@Nullable List<PriceDraft> prices)
public ProductVariantDraftDsl withSku(@Nullable String sku)
public static ProductVariantDraftDsl of()
public static ProductVariantDraftDsl of(ProductVariantDraft template)
template
- the template