Interface TypeChangeLabelAction
- All Superinterfaces:
ResourceUpdateAction<TypeUpdateAction>
,TypeUpdateAction
TypeChangeLabelAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TypeChangeLabelAction typeChangeLabelAction = TypeChangeLabelAction.builder()
.fieldName("{fieldName}")
.label(labelBuilder -> labelBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for TypeChangeLabelAction -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeChangeLabelActionBuilder
builder()
builder factory method for TypeChangeLabelActionstatic TypeChangeLabelActionBuilder
builder
(TypeChangeLabelAction template) create builder for TypeChangeLabelAction instancestatic TypeChangeLabelAction
deepCopy
(TypeChangeLabelAction template) factory method to create a deep copy of TypeChangeLabelAction@NotNull String
Name of the Field Definition to update.@NotNull @Valid LocalizedString
getLabel()
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.static TypeChangeLabelAction
of()
factory methodstatic TypeChangeLabelAction
of
(TypeChangeLabelAction template) factory method to create a shallow copy TypeChangeLabelActionvoid
setFieldName
(String fieldName) Name of the Field Definition to update.void
setLabel
(LocalizedString label) JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.static com.fasterxml.jackson.core.type.TypeReference<TypeChangeLabelAction>
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.type.TypeUpdateAction
getAction, withTypeUpdateAction
-
Field Details
-
CHANGE_LABEL
discriminator value for TypeChangeLabelAction- See Also:
-
-
Method Details
-
getFieldName
Name of the Field Definition to update.
- Returns:
- fieldName
-
getLabel
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Returns:
- label
-
setFieldName
Name of the Field Definition to update.
- Parameters:
fieldName
- value to be set
-
setLabel
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Parameters:
label
- value to be set
-
of
factory method- Returns:
- instance of TypeChangeLabelAction
-
of
factory method to create a shallow copy TypeChangeLabelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TypeChangeLabelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TypeChangeLabelAction- Returns:
- builder
-
builder
create builder for TypeChangeLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTypeChangeLabelAction
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
-