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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneSetKeyActionBuilder
builder()
builder factory method for ZoneSetKeyActionstatic ZoneSetKeyActionBuilder
builder
(ZoneSetKeyAction template) create builder for ZoneSetKeyAction instancestatic ZoneSetKeyAction
deepCopy
(ZoneSetKeyAction template) factory method to create a deep copy of ZoneSetKeyActiongetKey()
Ifkey
is absent ornull
, the existing key, if any, will be removed.static ZoneSetKeyAction
of()
factory methodstatic ZoneSetKeyAction
of
(ZoneSetKeyAction template) factory method to create a shallow copy ZoneSetKeyActionvoid
Ifkey
is 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> T
withZoneSetKeyAction
(Function<ZoneSetKeyAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods 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
key
is absent ornull
, the existing key, if any, will be removed.- Returns:
- key
-
setKey
If
key
is 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
-
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
-