Interface ReferenceAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a key reference.
Example to create an instance using the builder pattern
ReferenceAttribute referenceAttribute = ReferenceAttribute.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceAttributeBuilder
builder()
builder factory method for ReferenceAttributestatic ReferenceAttributeBuilder
builder
(ReferenceAttribute template) create builder for ReferenceAttribute instancestatic ReferenceAttribute
deepCopy
(ReferenceAttribute template) factory method to create a deep copy of ReferenceAttribute@NotNull @Valid KeyReference
getValue()
References a resource by key.static ReferenceAttribute
of()
factory methodstatic ReferenceAttribute
of
(ReferenceAttribute template) factory method to create a shallow copy ReferenceAttributevoid
setValue
(KeyReference value) References a resource by key.static com.fasterxml.jackson.core.type.TypeReference<ReferenceAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withReferenceAttribute
(Function<ReferenceAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
REFERENCE
discriminator value for ReferenceAttribute- See Also:
-
-
Method Details
-
getValue
References a resource by key.
- Returns:
- value
-
setValue
References a resource by key.
- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of ReferenceAttribute
-
of
factory method to create a shallow copy ReferenceAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReferenceAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReferenceAttribute- Returns:
- builder
-
builder
create builder for ReferenceAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReferenceAttribute
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
-