Interface ProjectUpdate
- All Superinterfaces:
ResourceUpdate<ProjectUpdate,
ProjectUpdateAction, ProjectUpdateBuilder>
public interface ProjectUpdate
extends ResourceUpdate<ProjectUpdate,ProjectUpdateAction,ProjectUpdateBuilder>
ProjectUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectUpdate projectUpdate = ProjectUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectUpdateBuilder
builder()
builder factory method for ProjectUpdatestatic ProjectUpdateBuilder
builder
(ProjectUpdate template) create builder for ProjectUpdate instancestatic ProjectUpdate
deepCopy
(ProjectUpdate template) factory method to create a deep copy of ProjectUpdate@NotNull @Valid List<ProjectUpdateAction>
Update actions to be performed on the Project.@NotNull Long
Expected version of the Project on which the changes should be applied.static ProjectUpdate
of()
factory methodstatic ProjectUpdate
of
(ProjectUpdate template) factory method to create a shallow copy ProjectUpdatevoid
setActions
(ProjectUpdateAction... actions) Update actions to be performed on the Project.void
setActions
(List<ProjectUpdateAction> actions) Update actions to be performed on the Project.void
setVersion
(Long version) Expected version of the Project on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<ProjectUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProjectUpdate
(Function<ProjectUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the Project on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
getVersion
in interfaceResourceUpdate<ProjectUpdate,
ProjectUpdateAction, ProjectUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Project.
- Specified by:
getActions
in interfaceResourceUpdate<ProjectUpdate,
ProjectUpdateAction, ProjectUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the Project on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
setVersion
in interfaceResourceUpdate<ProjectUpdate,
ProjectUpdateAction, ProjectUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the Project.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the Project.
- Specified by:
setActions
in interfaceResourceUpdate<ProjectUpdate,
ProjectUpdateAction, ProjectUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of ProjectUpdate
-
of
factory method to create a shallow copy ProjectUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProjectUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProjectUpdate- Returns:
- builder
-
builder
create builder for ProjectUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProjectUpdate
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
-