Interface ShippingMethodSetKeyAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>
,ShippingMethodUpdateAction
ShippingMethodSetKeyAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodSetKeyAction shippingMethodSetKeyAction = ShippingMethodSetKeyAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShippingMethodSetKeyActionbuilder
(ShippingMethodSetKeyAction template) create builder for ShippingMethodSetKeyAction instancestatic ShippingMethodSetKeyAction
deepCopy
(ShippingMethodSetKeyAction template) factory method to create a deep copy of ShippingMethodSetKeyActiongetKey()
Ifkey
is absent ornull
, the existing key, if any, will be removed.static ShippingMethodSetKeyAction
of()
factory methodstatic ShippingMethodSetKeyAction
of
(ShippingMethodSetKeyAction template) factory method to create a shallow copy ShippingMethodSetKeyActionstatic ShippingMethodSetKeyAction
ofUnset()
void
Ifkey
is absent ornull
, the existing key, if any, will be removed.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodSetKeyAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shipping_method.ShippingMethodUpdateAction
getAction, withShippingMethodUpdateAction
-
Field Details
-
SET_KEY
discriminator value for ShippingMethodSetKeyAction- 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 ShippingMethodSetKeyAction
-
of
factory method to create a shallow copy ShippingMethodSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ShippingMethodSetKeyAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodSetKeyAction- Returns:
- builder
-
builder
create builder for ShippingMethodSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodSetKeyAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
ofUnset
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-