Interface StandalonePriceSetKeyAction
- All Superinterfaces:
ResourceUpdateAction<StandalonePriceUpdateAction>,StandalonePriceUpdateAction
Sets the key on a Standalone Price. Produces the StandalonePriceKeySet Message.
Example to create an instance using the builder pattern
StandalonePriceSetKeyAction standalonePriceSetKeyAction = StandalonePriceSetKeyAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StandalonePriceSetKeyActionbuilder(StandalonePriceSetKeyAction template) create builder for StandalonePriceSetKeyAction instancecopyDeep()static StandalonePriceSetKeyActiondeepCopy(StandalonePriceSetKeyAction template) factory method to create a deep copy of StandalonePriceSetKeyActiongetKey()Value to set.static StandalonePriceSetKeyActionof()factory methodstatic StandalonePriceSetKeyActionof(StandalonePriceSetKeyAction template) factory method to create a shallow copy StandalonePriceSetKeyActionvoidValue to set.static com.fasterxml.jackson.core.type.TypeReference<StandalonePriceSetKeyAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.standalone_price.StandalonePriceUpdateAction
getAction, withStandalonePriceUpdateAction
-
Field Details
-
SET_KEY
discriminator value for StandalonePriceSetKeyAction- See Also:
-
-
Method Details
-
getKey
String getKey()Value to set. Must be unique. If empty, any existing value will be removed.
- Returns:
- key
-
setKey
Value to set. Must be unique. If empty, any existing value will be removed.
- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of StandalonePriceSetKeyAction
-
of
factory method to create a shallow copy StandalonePriceSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StandalonePriceSetKeyAction copyDeep()- Specified by:
copyDeepin interfaceStandalonePriceUpdateAction
-
deepCopy
@Nullable static StandalonePriceSetKeyAction deepCopy(@Nullable StandalonePriceSetKeyAction template) factory method to create a deep copy of StandalonePriceSetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StandalonePriceSetKeyAction- Returns:
- builder
-
builder
create builder for StandalonePriceSetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStandalonePriceSetKeyAction
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
-