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 AttributeGroupUpdateBuilderbuilder()builder factory method for AttributeGroupUpdatestatic AttributeGroupUpdateBuilderbuilder(AttributeGroupUpdate template) create builder for AttributeGroupUpdate instancecopyDeep()static AttributeGroupUpdatedeepCopy(AttributeGroupUpdate template) factory method to create a deep copy of AttributeGroupUpdate@NotNull @Valid List<AttributeGroupUpdateAction>Update actions to be performed on the AttributeGroup.@NotNull LongExpected version of the AttributeGroup on which the changes should be applied.static AttributeGroupUpdateof()factory methodstatic AttributeGroupUpdateof(AttributeGroupUpdate template) factory method to create a shallow copy AttributeGroupUpdatevoidsetActions(AttributeGroupUpdateAction... actions) Update actions to be performed on the AttributeGroup.voidsetActions(List<AttributeGroupUpdateAction> actions) Update actions to be performed on the AttributeGroup.voidsetVersion(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> TwithAttributeGroupUpdate(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:
getVersionin interfaceResourceUpdate<AttributeGroupUpdate,AttributeGroupUpdateAction, AttributeGroupUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the AttributeGroup.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
AttributeGroupUpdate copyDeep() -
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
-