Package com.commercetools.api.client
Class ByProjectKeyProductsByIDImagesPostString
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyProductsByIDImagesPostString,Product>
com.commercetools.api.client.ByProjectKeyProductsByIDImagesPostString
- All Implemented Interfaces:
io.vrap.rmf.base.client.ClientRequestCommand<Product>
,io.vrap.rmf.base.client.RequestCommand<Product>
public class ByProjectKeyProductsByIDImagesPostString
extends io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyProductsByIDImagesPostString,Product>
Upload a JPEG, PNG and GIF file to a ProductVariant. The maximum file size of the image is 10MB. variant
or sku
is required to update a specific ProductVariant. The image is uploaded to the Master Variant if variant
or sku
are not included. Produces the ProductImageAdded Message when the Small
version of the image has been uploaded to the CDN.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.product.Product>> result = apiRoot
.withProjectKey("{projectKey}")
.products()
.withId("{ID}")
.images()
.post("")
.execute()
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionByProjectKeyProductsByIDImagesPostString
(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, String ID, String 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
CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<Product>>
execute
(io.vrap.rmf.base.client.ApiHttpClient client) io.vrap.rmf.base.client.ApiHttpResponse<Product>
executeBlocking
(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) getBody()
getID()
getSku()
int
hashCode()
int
void
void
setProjectKey
(String projectKey) 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, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParams
-
Constructor Details
-
ByProjectKeyProductsByIDImagesPostString
public ByProjectKeyProductsByIDImagesPostString(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, String ID, String file) -
ByProjectKeyProductsByIDImagesPostString
-
-
Method Details
-
executeBlocking
public io.vrap.rmf.base.client.ApiHttpResponse<Product> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<Product>
- Specified by:
executeBlocking
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyProductsByIDImagesPostString,
Product>
-
execute
public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<Product>> execute(io.vrap.rmf.base.client.ApiHttpClient client) - Specified by:
execute
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<Product>
- Specified by:
execute
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyProductsByIDImagesPostString,
Product>
-
getProjectKey
-
getID
-
getFilename
-
getVariant
-
getSku
-
getStaged
-
setProjectKey
-
setID
-
withFilename
set filename with the specified value- Type Parameters:
TValue
- value type- Parameters:
filename
- value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addFilename
add additional filename query parameter- Type Parameters:
TValue
- value type- Parameters:
filename
- value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withFilename
set filename with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addFilename
add additional filename query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withFilename
public ByProjectKeyProductsByIDImagesPostString withFilename(Function<StringBuilder, StringBuilder> op) set filename with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addFilename
public ByProjectKeyProductsByIDImagesPostString addFilename(Function<StringBuilder, StringBuilder> op) add additional filename query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withFilename
set filename with the specified values- Type Parameters:
TValue
- value type- Parameters:
filename
- values to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addFilename
add additional filename query parameters- Type Parameters:
TValue
- value type- Parameters:
filename
- values to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withVariant
set variant with the specified value- Type Parameters:
TValue
- value type- Parameters:
variant
- value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addVariant
add additional variant query parameter- Type Parameters:
TValue
- value type- Parameters:
variant
- value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withVariant
set variant with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addVariant
add additional variant query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withVariant
public ByProjectKeyProductsByIDImagesPostString withVariant(Function<StringBuilder, StringBuilder> op) set variant with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addVariant
public ByProjectKeyProductsByIDImagesPostString addVariant(Function<StringBuilder, StringBuilder> op) add additional variant query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withVariant
set variant with the specified values- Type Parameters:
TValue
- value type- Parameters:
variant
- values to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addVariant
add additional variant query parameters- Type Parameters:
TValue
- value type- Parameters:
variant
- values to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withSku
set sku with the specified value- Type Parameters:
TValue
- value type- Parameters:
sku
- value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addSku
add additional sku query parameter- Type Parameters:
TValue
- value type- Parameters:
sku
- value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withSku
set sku with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addSku
add additional sku query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withSku
set sku with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addSku
add additional sku query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withSku
set sku with the specified values- Type Parameters:
TValue
- value type- Parameters:
sku
- values to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addSku
add additional sku query parameters- Type Parameters:
TValue
- value type- Parameters:
sku
- values to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withStaged
set staged with the specified value- Type Parameters:
TValue
- value type- Parameters:
staged
- value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addStaged
add additional staged query parameter- Type Parameters:
TValue
- value type- Parameters:
staged
- value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withStaged
set staged with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addStaged
add additional staged query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withStaged
public ByProjectKeyProductsByIDImagesPostString withStaged(Function<StringBuilder, StringBuilder> op) set staged with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addStaged
add additional staged query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
withStaged
set staged with the specified values- Type Parameters:
TValue
- value type- Parameters:
staged
- values to be set- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
addStaged
add additional staged query parameters- Type Parameters:
TValue
- value type- Parameters:
staged
- values to be added- Returns:
- ByProjectKeyProductsByIDImagesPostString
-
getBody
- Overrides:
getBody
in classio.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyProductsByIDImagesPostString,
Product>
-
withBody
- Overrides:
withBody
in classio.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyProductsByIDImagesPostString,
Product>
-
equals
-
hashCode
-
toString
-
reflectionHashCode
public int reflectionHashCode()
-