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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceAttributeBuilderbuilder()builder factory method for ReferenceAttributestatic ReferenceAttributeBuilderbuilder(ReferenceAttribute template) create builder for ReferenceAttribute instancecopyDeep()static ReferenceAttributedeepCopy(ReferenceAttribute template) factory method to create a deep copy of ReferenceAttribute@NotNull @Valid KeyReferencegetValue()References a resource by key.static ReferenceAttributeof()factory methodstatic ReferenceAttributeof(ReferenceAttribute template) factory method to create a shallow copy ReferenceAttributevoidsetValue(KeyReference value) References a resource by key.static com.fasterxml.jackson.core.type.TypeReference<ReferenceAttribute>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithReferenceAttribute(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
-
copyDeep
ReferenceAttribute copyDeep() -
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
-