Interface LocalizedEnumSetField
- All Superinterfaces:
CustomField
A field with a localized enum set value.
Example to create an instance using the builder pattern
LocalizedEnumSetField localizedEnumSetField = LocalizedEnumSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for LocalizedEnumSetField -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalizedEnumSetFieldBuilderbuilder()builder factory method for LocalizedEnumSetFieldstatic LocalizedEnumSetFieldBuilderbuilder(LocalizedEnumSetField template) create builder for LocalizedEnumSetField instancecopyDeep()static LocalizedEnumSetFielddeepCopy(LocalizedEnumSetField template) factory method to create a deep copy of LocalizedEnumSetFieldgetValue()JSON array of localized enum values, each represented by its key.static LocalizedEnumSetFieldof()factory methodstatic LocalizedEnumSetFieldof(LocalizedEnumSetField template) factory method to create a shallow copy LocalizedEnumSetFieldvoidJSON array of localized enum values, each represented by its key.voidJSON array of localized enum values, each represented by its key.static com.fasterxml.jackson.core.type.TypeReference<LocalizedEnumSetField>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
LOCALIZED_ENUM_SET
discriminator value for LocalizedEnumSetField- See Also:
-
-
Method Details
-
getValue
JSON array of localized enum values, each represented by its key. Each key must match the key of an CustomFieldLocalizedEnumValue in the CustomFieldLocalizedEnumType. The order of items in the array is not fixed.
- Returns:
- value
-
setValue
JSON array of localized enum values, each represented by its key. Each key must match the key of an CustomFieldLocalizedEnumValue in the CustomFieldLocalizedEnumType. The order of items in the array is not fixed.
- Parameters:
value- values to be set
-
setValue
JSON array of localized enum values, each represented by its key. Each key must match the key of an CustomFieldLocalizedEnumValue in the CustomFieldLocalizedEnumType. The order of items in the array is not fixed.
- Parameters:
value- values to be set
-
of
factory method- Returns:
- instance of LocalizedEnumSetField
-
of
factory method to create a shallow copy LocalizedEnumSetField- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
LocalizedEnumSetField copyDeep()- Specified by:
copyDeepin interfaceCustomField
-
deepCopy
factory method to create a deep copy of LocalizedEnumSetField- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LocalizedEnumSetField- Returns:
- builder
-
builder
create builder for LocalizedEnumSetField instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withLocalizedEnumSetField
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
-