Interface ZoneSetKeyAction
- All Superinterfaces:
ResourceUpdateAction<ZoneUpdateAction>,ZoneUpdateAction
ZoneSetKeyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ZoneSetKeyAction zoneSetKeyAction = ZoneSetKeyAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneSetKeyActionBuilderbuilder()builder factory method for ZoneSetKeyActionstatic ZoneSetKeyActionBuilderbuilder(ZoneSetKeyAction template) create builder for ZoneSetKeyAction instancecopyDeep()static ZoneSetKeyActiondeepCopy(ZoneSetKeyAction template) factory method to create a deep copy of ZoneSetKeyActiongetKey()Ifkeyis absent ornull, the existing key, if any, will be removed.static ZoneSetKeyActionof()factory methodstatic ZoneSetKeyActionof(ZoneSetKeyAction template) factory method to create a shallow copy ZoneSetKeyActionvoidIfkeyis absent ornull, the existing key, if any, will be removed.static com.fasterxml.jackson.core.type.TypeReference<ZoneSetKeyAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithZoneSetKeyAction(Function<ZoneSetKeyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.zone.ZoneUpdateAction
getAction, withZoneUpdateAction
-
Field Details
-
SET_KEY
discriminator value for ZoneSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()If
keyis absent ornull, the existing key, if any, will be removed.- Returns:
- key
-
setKey
If
keyis absent ornull, the existing key, if any, will be removed.- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of ZoneSetKeyAction
-
of
factory method to create a shallow copy ZoneSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ZoneSetKeyAction copyDeep()- Specified by:
copyDeepin interfaceZoneUpdateAction
-
deepCopy
factory method to create a deep copy of ZoneSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ZoneSetKeyAction- Returns:
- builder
-
builder
create builder for ZoneSetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withZoneSetKeyAction
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
-