Interface ReferenceSetAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a set of references.
Example to create an instance using the builder pattern
ReferenceSetAttribute referenceSetAttribute = ReferenceSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ReferenceSetAttribute -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceSetAttributeBuilder
builder()
builder factory method for ReferenceSetAttributestatic ReferenceSetAttributeBuilder
builder
(ReferenceSetAttribute template) create builder for ReferenceSetAttribute instancestatic ReferenceSetAttribute
deepCopy
(ReferenceSetAttribute template) factory method to create a deep copy of ReferenceSetAttribute@NotNull @Valid List<KeyReference>
getValue()
static ReferenceSetAttribute
of()
factory methodstatic ReferenceSetAttribute
of
(ReferenceSetAttribute template) factory method to create a shallow copy ReferenceSetAttributevoid
setValue
(KeyReference... value) set valuevoid
setValue
(List<KeyReference> value) set valuestatic com.fasterxml.jackson.core.type.TypeReference<ReferenceSetAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
REFERENCE_SET
discriminator value for ReferenceSetAttribute- 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 ReferenceSetAttribute
-
of
factory method to create a shallow copy ReferenceSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReferenceSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReferenceSetAttribute- Returns:
- builder
-
builder
create builder for ReferenceSetAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReferenceSetAttribute
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
-