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 ReviewUpdateBuilder
builder()
builder factory method for ReviewUpdatestatic ReviewUpdateBuilder
builder
(ReviewUpdate template) create builder for ReviewUpdate instancestatic ReviewUpdate
deepCopy
(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 Long
The expected version of the review on which the changes should be applied.static ReviewUpdate
of()
factory methodstatic ReviewUpdate
of
(ReviewUpdate template) factory method to create a shallow copy ReviewUpdatevoid
setActions
(ReviewUpdateAction... actions) The list of update actions to be performed on the review.void
setActions
(List<ReviewUpdateAction> actions) The list of update actions to be performed on the review.void
setVersion
(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> T
withReviewUpdate
(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:
getVersion
in interfaceResourceUpdate<ReviewUpdate,
ReviewUpdateAction, ReviewUpdateBuilder> - Returns:
- version
-
getActions
The list of update actions to be performed on the review.
- Specified by:
getActions
in 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:
setVersion
in 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:
setActions
in 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
-
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
-