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