Package com.commercetools.api.client
Class ByProjectKeyVariantsBulkPostString
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<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyVariantsBulkPostString,VariantBulkUpdateResponse>
com.commercetools.api.client.ByProjectKeyVariantsBulkPostString
- All Implemented Interfaces:
ClientRequestCommand<VariantBulkUpdateResponse>,CreateHttpRequestCommand,HttpRequestCommand<VariantBulkUpdateResponse>,RequestCommand<VariantBulkUpdateResponse>
public class ByProjectKeyVariantsBulkPostString
extends StringBodyApiMethod<ByProjectKeyVariantsBulkPostString,VariantBulkUpdateResponse>
Applies update actions to multiple Variants in a single request. Returns a 207 Multi-Status response with the result for each Variant. Each Variant is updated independently, so some may succeed while others fail.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.variant.VariantBulkUpdateResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.variants()
.bulk()
.post("")
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyVariantsBulkPostString(ApiHttpClient apiHttpClient, String projectKey, String variantBulkUpdate) -
Method Summary
Modifier and TypeMethodDescription<TValue> ByProjectKeyVariantsBulkPostStringaddVersionControl(Collection<TValue> versionControl) add additional versionControl query parametersadd additional versionControl query parameteraddVersionControl(Supplier<String> supplier) add additional versionControl query parameter<TValue> ByProjectKeyVariantsBulkPostStringaddVersionControl(TValue versionControl) add additional versionControl query parameterbooleanexecute(ApiHttpClient client) executeBlocking(ApiHttpClient client, Duration timeout) getBody()inthashCode()inttools.jackson.core.type.TypeReference<VariantBulkUpdateResponse>voidsetProjectKey(String projectKey) toString()<TValue> ByProjectKeyVariantsBulkPostStringwithVersionControl(Collection<TValue> versionControl) set versionControl with the specified valuesset versionControl with the specified valuewithVersionControl(Supplier<String> supplier) set versionControl with the specified value<TValue> ByProjectKeyVariantsBulkPostStringwithVersionControl(TValue versionControl) set versionControl 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, withQueryParamsMethods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlockingMethods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand
createHttpRequestMethods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyVariantsBulkPostString
public ByProjectKeyVariantsBulkPostString(ApiHttpClient apiHttpClient, String projectKey, String variantBulkUpdate) -
ByProjectKeyVariantsBulkPostString
-
-
Method Details
-
resultType
-
executeBlocking
public ApiHttpResponse<VariantBulkUpdateResponse> executeBlocking(ApiHttpClient client, Duration timeout) - Specified by:
executeBlockingin interfaceClientRequestCommand<VariantBulkUpdateResponse>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyVariantsBulkPostString,VariantBulkUpdateResponse>
-
execute
- Specified by:
executein interfaceClientRequestCommand<VariantBulkUpdateResponse>- Specified by:
executein classApiMethod<ByProjectKeyVariantsBulkPostString,VariantBulkUpdateResponse>
-
getProjectKey
-
getVersionControl
-
setProjectKey
-
withVersionControl
set versionControl with the specified value- Type Parameters:
TValue- value type- Parameters:
versionControl- value to be set- Returns:
- ByProjectKeyVariantsBulkPostString
-
addVersionControl
add additional versionControl query parameter- Type Parameters:
TValue- value type- Parameters:
versionControl- value to be added- Returns:
- ByProjectKeyVariantsBulkPostString
-
withVersionControl
set versionControl with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyVariantsBulkPostString
-
addVersionControl
add additional versionControl query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyVariantsBulkPostString
-
withVersionControl
public ByProjectKeyVariantsBulkPostString withVersionControl(Function<StringBuilder, StringBuilder> op) set versionControl with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyVariantsBulkPostString
-
addVersionControl
public ByProjectKeyVariantsBulkPostString addVersionControl(Function<StringBuilder, StringBuilder> op) add additional versionControl query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyVariantsBulkPostString
-
withVersionControl
public <TValue> ByProjectKeyVariantsBulkPostString withVersionControl(Collection<TValue> versionControl) set versionControl with the specified values- Type Parameters:
TValue- value type- Parameters:
versionControl- values to be set- Returns:
- ByProjectKeyVariantsBulkPostString
-
addVersionControl
public <TValue> ByProjectKeyVariantsBulkPostString addVersionControl(Collection<TValue> versionControl) add additional versionControl query parameters- Type Parameters:
TValue- value type- Parameters:
versionControl- values to be added- Returns:
- ByProjectKeyVariantsBulkPostString
-
getBody
- Overrides:
getBodyin classStringBodyApiMethod<ByProjectKeyVariantsBulkPostString,VariantBulkUpdateResponse>
-
withBody
- Overrides:
withBodyin classStringBodyApiMethod<ByProjectKeyVariantsBulkPostString,VariantBulkUpdateResponse>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-