Interface EnumSetField
- All Superinterfaces:
CustomField
A field with an enum set value.
Example to create an instance using the builder pattern
EnumSetField enumSetField = EnumSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSetFieldBuilder
builder()
builder factory method for EnumSetFieldstatic EnumSetFieldBuilder
builder
(EnumSetField template) create builder for EnumSetField instancestatic EnumSetField
deepCopy
(EnumSetField template) factory method to create a deep copy of EnumSetFieldgetValue()
static EnumSetField
of()
factory methodstatic EnumSetField
of
(EnumSetField template) factory method to create a shallow copy EnumSetFieldvoid
set valuevoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<EnumSetField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withEnumSetField
(Function<EnumSetField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
ENUM_SET
discriminator value for EnumSetField- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- values to be set
-
setValue
set value- Parameters:
value
- values to be set
-
of
factory method- Returns:
- instance of EnumSetField
-
of
factory method to create a shallow copy EnumSetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of EnumSetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for EnumSetField- Returns:
- builder
-
builder
create builder for EnumSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withEnumSetField
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
-