Interface ApprovalRuleUpdate
public interface ApprovalRuleUpdate
ApprovalRuleUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ApprovalRuleUpdate approvalRuleUpdate = ApprovalRuleUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApprovalRuleUpdateBuilder
builder()
builder factory method for ApprovalRuleUpdatestatic ApprovalRuleUpdateBuilder
builder
(ApprovalRuleUpdate template) create builder for ApprovalRuleUpdate instancestatic ApprovalRuleUpdate
deepCopy
(ApprovalRuleUpdate template) factory method to create a deep copy of ApprovalRuleUpdate@NotNull @Valid List<ApprovalRuleUpdateAction>
Update actions to be performed on the ApprovalRule.@NotNull Long
Expected version of the ApprovalRule to which the changes should be applied.static ApprovalRuleUpdate
of()
factory methodstatic ApprovalRuleUpdate
of
(ApprovalRuleUpdate template) factory method to create a shallow copy ApprovalRuleUpdatevoid
setActions
(ApprovalRuleUpdateAction... actions) Update actions to be performed on the ApprovalRule.void
setActions
(List<ApprovalRuleUpdateAction> actions) Update actions to be performed on the ApprovalRule.void
setVersion
(Long version) Expected version of the ApprovalRule to which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withApprovalRuleUpdate
(Function<ApprovalRuleUpdate, T> helper) accessor map function
-
Method Details
-
getVersion
Expected version of the ApprovalRule to which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Returns:
- version
-
getActions
Update actions to be performed on the ApprovalRule.
- Returns:
- actions
-
setVersion
Expected version of the ApprovalRule to which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the ApprovalRule.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the ApprovalRule.
- Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of ApprovalRuleUpdate
-
of
factory method to create a shallow copy ApprovalRuleUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ApprovalRuleUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleUpdate- Returns:
- builder
-
builder
create builder for ApprovalRuleUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleUpdate
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
-