/** * Creates a new instance of {@code ProductVariantDraftDsl} with the values of this builder. * * @return the instance */ public ProductVariantDraftDsl build() { return new ProductVariantDraftDsl(assets, attributes, images, key, prices, sku); }
/** * Creates a new object initialized with the given values. * * @return new object initialized with the given values */ public static ProductVariantDraftDsl of() { return new ProductVariantDraftDsl(null, null, null, null, null, null); }
/** * Creates a new object initialized with the fields of the template parameter. * * @param template the template * @return a new object initialized from the template */ public static ProductVariantDraftDsl of(final ProductVariantDraft template) { return new ProductVariantDraftDsl(template.getAssets(), template.getAttributes(), template.getImages(), template.getKey(), template.getPrices(), template.getSku()); } }