/** * Sets the type of the Type of the uploaded image * * @param contentType must be one of "image/jpeg", "image/png" or "image/gif" * @return ProductImageUploadCommand the new constructed productImageUploadCommand */ public ProductImageUploadCommand withContentType(final String contentType) { final ProductImageUploadCommand productImageUploadCommand = new ProductImageUploadCommand(body, productId, variant, sku, filename, staged, givenContentType); return productImageUploadCommand; }
/** * Sets the type of the Type of the uploaded image * * @param contentType must be one of "image/jpeg", "image/png" or "image/gif" * @return ProductImageUploadCommand the new constructed productImageUploadCommand */ public ProductImageUploadCommand withContentType(final String contentType) { final ProductImageUploadCommand productImageUploadCommand = new ProductImageUploadCommand(body, productId, variant, sku, filename, staged, givenContentType); return productImageUploadCommand; }
public ProductImageUploadCommand withStaged(final Boolean newStaged) { return new ProductImageUploadCommand(body, productId, variant, sku, filename, newStaged, givenContentType); }
public static ProductImageUploadCommand ofMasterVariant(final File body, final String productId) { return new ProductImageUploadCommand(body, productId, null, null, null, null, null); }
public ProductImageUploadCommand withFilename(final String newFilename) { return new ProductImageUploadCommand(body, productId, variant, sku, newFilename, staged, givenContentType); }
public ProductImageUploadCommand withStaged(final Boolean newStaged) { return new ProductImageUploadCommand(body, productId, variant, sku, filename, newStaged, givenContentType); }
public static ProductImageUploadCommand ofProductIdAndSku(final File body, final String productId, final String sku) { return new ProductImageUploadCommand(body, productId, null, sku, null, null, null); }
public ProductImageUploadCommand withFilename(final String newFilename) { return new ProductImageUploadCommand(body, productId, variant, sku, newFilename, staged, givenContentType); }
public static ProductImageUploadCommand ofMasterVariant(final File body, final String productId) { return new ProductImageUploadCommand(body, productId, null, null, null, null, null); }
public static ProductImageUploadCommand ofProductIdAndSku(final File body, final String productId, final String sku) { return new ProductImageUploadCommand(body, productId, null, sku, null, null, null); }
public static ProductImageUploadCommand ofVariantId(final File body, final ByIdVariantIdentifier variantIdentifier) { return new ProductImageUploadCommand(body, variantIdentifier.getProductId(), variantIdentifier.getVariantId(), null, null, null, null); }
public static ProductImageUploadCommand ofVariantId(final File body, final ByIdVariantIdentifier variantIdentifier) { return new ProductImageUploadCommand(body, variantIdentifier.getProductId(), variantIdentifier.getVariantId(), null, null, null, null); }