Interface ReferenceSetField
- All Superinterfaces:
CustomField
A field with a reference set value.
Example to create an instance using the builder pattern
ReferenceSetField referenceSetField = ReferenceSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceSetFieldBuilder
builder()
builder factory method for ReferenceSetFieldstatic ReferenceSetFieldBuilder
builder
(ReferenceSetField template) create builder for ReferenceSetField instancestatic ReferenceSetField
deepCopy
(ReferenceSetField template) factory method to create a deep copy of ReferenceSetField@NotNull @Valid List<KeyReference>
getValue()
static ReferenceSetField
of()
factory methodstatic ReferenceSetField
of
(ReferenceSetField template) factory method to create a shallow copy ReferenceSetFieldvoid
setValue
(KeyReference... value) set valuevoid
setValue
(List<KeyReference> value) set valuestatic com.fasterxml.jackson.core.type.TypeReference<ReferenceSetField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReferenceSetField
(Function<ReferenceSetField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
REFERENCE_SET
discriminator value for ReferenceSetField- 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 ReferenceSetField
-
of
factory method to create a shallow copy ReferenceSetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReferenceSetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReferenceSetField- Returns:
- builder
-
builder
create builder for ReferenceSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReferenceSetField
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
-