Interface ShippingMethodUpdateAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>
- All Known Subinterfaces:
ShippingMethodAddShippingRateAction,ShippingMethodAddZoneAction,ShippingMethodChangeActiveAction,ShippingMethodChangeIsDefaultAction,ShippingMethodChangeNameAction,ShippingMethodChangeTaxCategoryAction,ShippingMethodRemoveShippingRateAction,ShippingMethodRemoveZoneAction,ShippingMethodSetCustomFieldAction,ShippingMethodSetCustomTypeAction,ShippingMethodSetDescriptionAction,ShippingMethodSetKeyAction,ShippingMethodSetLocalizedDescriptionAction,ShippingMethodSetLocalizedNameAction,ShippingMethodSetPredicateAction
public interface ShippingMethodUpdateAction
extends ResourceUpdateAction<ShippingMethodUpdateAction>
ShippingMethodUpdateAction
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
ShippingMethodUpdateAction shippingMethodUpdateAction = ShippingMethodUpdateAction.addShippingRateBuilder()
zone(zoneBuilder -> zoneBuilder)
shippingRate(shippingRateBuilder -> shippingRateBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for addShippingRate subtypebuilder for addZone subtypebuilder for changeActive subtypebuilder for changeIsDefault subtypebuilder for changeName subtypebuilder for changeTaxCategory subtypecopyDeep()static ShippingMethodUpdateActiondeepCopy(ShippingMethodUpdateAction template) factory method to create a deep copy of ShippingMethodUpdateAction@NotNull Stringbuilder for removeShippingRate subtypebuilder for removeZone subtypebuilder for setCustomField subtypebuilder for setCustomType subtypebuilder for setDescription subtypebuilder for setKey subtypebuilder for setLocalizedDescription subtypebuilder for setLocalizedName subtypebuilder for setPredicate subtypestatic com.fasterxml.jackson.core.type.TypeReference<ShippingMethodUpdateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getActionin interfaceResourceUpdateAction<ShippingMethodUpdateAction>- Returns:
- action
-
copyDeep
ShippingMethodUpdateAction copyDeep() -
deepCopy
factory method to create a deep copy of ShippingMethodUpdateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
addShippingRateBuilder
builder for addShippingRate subtype- Returns:
- builder
-
addZoneBuilder
builder for addZone subtype- Returns:
- builder
-
changeActiveBuilder
builder for changeActive subtype- Returns:
- builder
-
changeIsDefaultBuilder
builder for changeIsDefault subtype- Returns:
- builder
-
changeNameBuilder
builder for changeName subtype- Returns:
- builder
-
changeTaxCategoryBuilder
builder for changeTaxCategory subtype- Returns:
- builder
-
removeShippingRateBuilder
builder for removeShippingRate subtype- Returns:
- builder
-
removeZoneBuilder
builder for removeZone subtype- Returns:
- builder
-
setCustomFieldBuilder
builder for setCustomField subtype- Returns:
- builder
-
setCustomTypeBuilder
builder for setCustomType subtype- Returns:
- builder
-
setDescriptionBuilder
builder for setDescription subtype- Returns:
- builder
-
setKeyBuilder
builder for setKey subtype- Returns:
- builder
-
setLocalizedDescriptionBuilder
builder for setLocalizedDescription subtype- Returns:
- builder
-
setLocalizedNameBuilder
builder for setLocalizedName subtype- Returns:
- builder
-
setPredicateBuilder
builder for setPredicate subtype- Returns:
- builder
-
withShippingMethodUpdateAction
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
-