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
-
Method Summary
Modifier and TypeMethodDescriptionstatic TextAttributeBuilder
builder()
builder factory method for TextAttributestatic TextAttributeBuilder
builder
(TextAttribute template) create builder for TextAttribute instancestatic TextAttribute
deepCopy
(TextAttribute template) factory method to create a deep copy of TextAttribute@NotNull String
getValue()
static TextAttribute
of()
factory methodstatic TextAttribute
of
(TextAttribute template) factory method to create a shallow copy TextAttributevoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<TextAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTextAttribute
(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
- Returns:
- value
-
setValue
set 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
-
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
-