Package com.commercetools.api.client
Class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost,ProductTailoring,File>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
- All Implemented Interfaces:
ClientRequestCommand<ProductTailoring>
,CreateHttpRequestCommand
,HttpRequestCommand<ProductTailoring>
,RequestCommand<ProductTailoring>
public class ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
extends TypeBodyApiMethod<ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost,ProductTailoring,File>
Uploads a JPEG, PNG and GIF file to a ProductVariantTailoring. The maximum file size of the image is 10MB. Either variant
or sku
is required to update a specific ProductVariant. If neither is provided, the image is uploaded to the Master Variant of the Product.
The response status code depends on the size of the original image. If the image is small, the API responds with 200 OK
, and if the image is larger, it responds with 202 Accepted
. The Product returned with a 202 Accepted
status code contains a warnings
field with an ImageProcessingOngoing Warning.
Produces the ProductTailoringImageAdded Message.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.product_tailoring.ProductTailoring>> result = apiRoot
.withProjectKey("{projectKey}")
.inStoreKeyWithStoreKeyValue("{storeKey}")
.products()
.withProductKey("{productKey}")
.productTailoring()
.images()
.post(file)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
(ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost t) ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
(ApiHttpClient apiHttpClient, String projectKey, String storeKey, String productKey, File file) -
Method Summary
Modifier and TypeMethodDescriptionaddFilename
(Collection<TValue> filename) add additional filename query parametersadd additional filename query parameteraddFilename
(Supplier<String> supplier) add additional filename query parameteraddFilename
(TValue filename) add additional filename query parameteraddSku
(Collection<TValue> sku) add additional sku query parametersadd additional sku query parameteradd additional sku query parameteraddSku
(TValue sku) add additional sku query parameteraddStaged
(Collection<TValue> staged) add additional staged query parametersadd additional staged query parameteradd additional staged query parameteraddStaged
(TValue staged) add additional staged query parameteraddVariant
(Collection<TValue> variant) add additional variant query parametersadd additional variant query parameteraddVariant
(Supplier<Long> supplier) add additional variant query parameteraddVariant
(TValue variant) add additional variant query parameterboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getBody()
getSku()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<ProductTailoring>
void
setProductKey
(String productKey) void
setProjectKey
(String projectKey) void
setStoreKey
(String storeKey) toString()
withFilename
(Collection<TValue> filename) set filename with the specified valuesset filename with the specified valuewithFilename
(Supplier<String> supplier) set filename with the specified valuewithFilename
(TValue filename) set filename with the specified valuewithSku
(Collection<TValue> sku) set sku with the specified valuesset sku with the specified valueset sku with the specified valuewithSku
(TValue sku) set sku with the specified valuewithStaged
(Collection<TValue> staged) set staged with the specified valuesset staged with the specified valuewithStaged
(Supplier<Boolean> supplier) set staged with the specified valuewithStaged
(TValue staged) set staged with the specified valuewithVariant
(Collection<TValue> variant) set variant with the specified valuesset variant with the specified valuewithVariant
(Supplier<Long> supplier) set variant with the specified valuewithVariant
(TValue variant) set variant with the specified valueMethods inherited from class io.vrap.rmf.base.client.ApiMethod
addHeader, addQueryParam, addQueryParams, contentType, createHttpRequest, execute, execute, execute, execute, execute, execute, execute, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParams
Methods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlocking
Methods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand
createHttpRequest
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost(ApiHttpClient apiHttpClient, String projectKey, String storeKey, String productKey, File file) -
ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost(ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost t)
-
-
Method Details
-
resultType
-
executeBlocking
- Specified by:
executeBlocking
in interfaceClientRequestCommand<ProductTailoring>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost,
ProductTailoring>
-
execute
- Specified by:
execute
in interfaceClientRequestCommand<ProductTailoring>
- Specified by:
execute
in classApiMethod<ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost,
ProductTailoring>
-
getProjectKey
-
getStoreKey
-
getProductKey
-
getFilename
-
getVariant
-
getSku
-
getStaged
-
setProjectKey
-
setStoreKey
-
setProductKey
-
withFilename
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withFilename(TValue filename) set filename with the specified value- Type Parameters:
TValue
- value type- Parameters:
filename
- value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addFilename
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addFilename(TValue filename) add additional filename query parameter- Type Parameters:
TValue
- value type- Parameters:
filename
- value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withFilename
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withFilename(Supplier<String> supplier) set filename with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addFilename
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addFilename(Supplier<String> supplier) add additional filename query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withFilename
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withFilename(Function<StringBuilder, StringBuilder> op) set filename with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addFilename
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addFilename(Function<StringBuilder, StringBuilder> op) add additional filename query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withFilename
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withFilename(Collection<TValue> filename) set filename with the specified values- Type Parameters:
TValue
- value type- Parameters:
filename
- values to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addFilename
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addFilename(Collection<TValue> filename) add additional filename query parameters- Type Parameters:
TValue
- value type- Parameters:
filename
- values to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withVariant
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withVariant(TValue variant) set variant with the specified value- Type Parameters:
TValue
- value type- Parameters:
variant
- value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addVariant
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addVariant(TValue variant) add additional variant query parameter- Type Parameters:
TValue
- value type- Parameters:
variant
- value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withVariant
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withVariant(Supplier<Long> supplier) set variant with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addVariant
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addVariant(Supplier<Long> supplier) add additional variant query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withVariant
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withVariant(Function<StringBuilder, StringBuilder> op) set variant with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addVariant
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addVariant(Function<StringBuilder, StringBuilder> op) add additional variant query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withVariant
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withVariant(Collection<TValue> variant) set variant with the specified values- Type Parameters:
TValue
- value type- Parameters:
variant
- values to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addVariant
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addVariant(Collection<TValue> variant) add additional variant query parameters- Type Parameters:
TValue
- value type- Parameters:
variant
- values to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withSku
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withSku(TValue sku) set sku with the specified value- Type Parameters:
TValue
- value type- Parameters:
sku
- value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addSku
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addSku(TValue sku) add additional sku query parameter- Type Parameters:
TValue
- value type- Parameters:
sku
- value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withSku
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withSku(Supplier<String> supplier) set sku with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addSku
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addSku(Supplier<String> supplier) add additional sku query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withSku
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withSku(Function<StringBuilder, StringBuilder> op) set sku with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addSku
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addSku(Function<StringBuilder, StringBuilder> op) add additional sku query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withSku
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withSku(Collection<TValue> sku) set sku with the specified values- Type Parameters:
TValue
- value type- Parameters:
sku
- values to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addSku
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addSku(Collection<TValue> sku) add additional sku query parameters- Type Parameters:
TValue
- value type- Parameters:
sku
- values to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withStaged
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withStaged(TValue staged) set staged with the specified value- Type Parameters:
TValue
- value type- Parameters:
staged
- value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addStaged
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addStaged(TValue staged) add additional staged query parameter- Type Parameters:
TValue
- value type- Parameters:
staged
- value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withStaged
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withStaged(Supplier<Boolean> supplier) set staged with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addStaged
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addStaged(Supplier<Boolean> supplier) add additional staged query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withStaged
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withStaged(Function<StringBuilder, StringBuilder> op) set staged with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addStaged
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addStaged(Function<StringBuilder, StringBuilder> op) add additional staged query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
withStaged
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withStaged(Collection<TValue> staged) set staged with the specified values- Type Parameters:
TValue
- value type- Parameters:
staged
- values to be set- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
addStaged
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost addStaged(Collection<TValue> staged) add additional staged query parameters- Type Parameters:
TValue
- value type- Parameters:
staged
- values to be added- Returns:
- ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost
-
getBody
-
withBody
public ByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKeyProductTailoringImagesPost withBody(File file) -
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-