Interface TextAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a string.
Example to create an instance using the builder pattern
TextAttribute textAttribute = TextAttribute.builder()
.value("{value}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TextAttributeBuilderbuilder()builder factory method for TextAttributestatic TextAttributeBuilderbuilder(TextAttribute template) create builder for TextAttribute instancecopyDeep()static TextAttributedeepCopy(TextAttribute template) factory method to create a deep copy of TextAttribute@NotNull StringgetValue()A text value.static TextAttributeof()factory methodstatic TextAttributeof(TextAttribute template) factory method to create a shallow copy TextAttributevoidA text value.static com.fasterxml.jackson.core.type.TypeReference<TextAttribute>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTextAttribute(Function<TextAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
TEXT
discriminator value for TextAttribute- See Also:
-
-
Method Details
-
getValue
A text value.
- Returns:
- value
-
setValue
A text value.
- Parameters:
value- value to be set
-
of
factory method- Returns:
- instance of TextAttribute
-
of
factory method to create a shallow copy TextAttribute- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TextAttribute copyDeep() -
deepCopy
factory method to create a deep copy of TextAttribute- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TextAttribute- Returns:
- builder
-
builder
create builder for TextAttribute instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTextAttribute
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
-