Interface ReviewUpdate
- All Superinterfaces:
ResourceUpdate<ReviewUpdate,ReviewUpdateAction, ReviewUpdateBuilder>
public interface ReviewUpdate
extends ResourceUpdate<ReviewUpdate,ReviewUpdateAction,ReviewUpdateBuilder>
ReviewUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReviewUpdate reviewUpdate = ReviewUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReviewUpdateBuilderbuilder()builder factory method for ReviewUpdatestatic ReviewUpdateBuilderbuilder(ReviewUpdate template) create builder for ReviewUpdate instancecopyDeep()static ReviewUpdatedeepCopy(ReviewUpdate template) factory method to create a deep copy of ReviewUpdate@NotNull @Valid List<ReviewUpdateAction>The list of update actions to be performed on the review.@NotNull LongThe expected version of the review on which the changes should be applied.static ReviewUpdateof()factory methodstatic ReviewUpdateof(ReviewUpdate template) factory method to create a shallow copy ReviewUpdatevoidsetActions(ReviewUpdateAction... actions) The list of update actions to be performed on the review.voidsetActions(List<ReviewUpdateAction> actions) The list of update actions to be performed on the review.voidsetVersion(Long version) The expected version of the review on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<ReviewUpdate>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithReviewUpdate(Function<ReviewUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
The expected version of the review on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict will be returned.
- Specified by:
getVersionin interfaceResourceUpdate<ReviewUpdate,ReviewUpdateAction, ReviewUpdateBuilder> - Returns:
- version
-
getActions
The list of update actions to be performed on the review.
- Specified by:
getActionsin interfaceResourceUpdate<ReviewUpdate,ReviewUpdateAction, ReviewUpdateBuilder> - Returns:
- actions
-
setVersion
The expected version of the review on which the changes should be applied. If the expected version does not match the actual version, a 409 Conflict will be returned.
- Specified by:
setVersionin interfaceResourceUpdate<ReviewUpdate,ReviewUpdateAction, ReviewUpdateBuilder> - Parameters:
version- value to be set
-
setActions
The list of update actions to be performed on the review.
- Parameters:
actions- values to be set
-
setActions
The list of update actions to be performed on the review.
- Specified by:
setActionsin interfaceResourceUpdate<ReviewUpdate,ReviewUpdateAction, ReviewUpdateBuilder> - Parameters:
actions- values to be set
-
of
factory method- Returns:
- instance of ReviewUpdate
-
of
factory method to create a shallow copy ReviewUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ReviewUpdate copyDeep() -
deepCopy
factory method to create a deep copy of ReviewUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewUpdate- Returns:
- builder
-
builder
create builder for ReviewUpdate instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withReviewUpdate
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-